To convert grams to atoms first convert the mass of the element from grams to moles by dividing the given mass by its molar mass, then multiply the number of moles by Avogadro's number which is 6.02 x 10²3 atoms per mole.