How to convert grams to atoms

To convert grams to atoms, divide the mass by the molar mass to get moles, then multiply by Avogadro's number, 6.022 × 10²³. For 10.0 g of iron: 10.0 g ÷ 55.845 g/mol = 0.179 mol, and 0.179 mol × 6.022 × 10²³ = 1.08 × 10²³ atoms.

There's no direct step from grams to atoms. Moles are always the bridge in the middle: grams → moles → particles.

The two steps

As one line: atoms = grams ÷ molar mass × 6.022 × 10²³. Check the units as you go: g ÷ (g/mol) leaves mol, and mol × (particles/mol) leaves particles.

Atoms, molecules or formula units?

Avogadro's number counts whatever particles the substance is made of. An element like iron is made of atoms, so you get atoms. A molecular compound like water gives molecules, and an ionic compound like NaCl gives formula units.

If the question asks for atoms in a compound, there's one more step: multiply the number of molecules by how many of that atom are in each molecule. Each H2O molecule has 2 hydrogen atoms and 1 oxygen atom, 3 atoms in all.

Going the other way, and a sense check

To go from atoms to grams, reverse each step: divide by 6.022 × 10²³ to get moles, then multiply by the molar mass.

A few grams of anything contains an enormous number of particles, usually between 10²² and 10²⁴. If your answer is a tiny number like 10⁻²³, you divided by Avogadro's number when you should have multiplied.

Worked example: atoms in iron, and atoms in water

  1. 10.0 g of Fe: 10.0 g ÷ 55.845 g/mol = 0.179 mol.
  2. 0.179 mol × 6.022 × 10²³ atoms/mol = 1.08 × 10²³ atoms of iron.
  3. 36.03 g of H2O: 36.03 g ÷ 18.015 g/mol = 2.000 mol of water.
  4. 2.000 mol × 6.022 × 10²³ molecules/mol = 1.204 × 10²⁴ molecules.
  5. Hydrogen atoms: 2 per molecule, so 2 × 2.000 mol × 6.022 × 10²³ = 2.409 × 10²⁴ H atoms. (Doubling the rounded 1.204 × 10²⁴ would give 2.408: round only at the end.)

Common mistakes

Check yourself

Three questions from the Mole Conversions Lab, Stage 2. Work each one out, then open the answer.

  1. How many moles are in 52.5 g of H₂O?

    Show the answer

    Answer: 2.91 mol mol

    1. Molar mass of H₂O = 2 × 1.008 + 1 × 15.999 = 18.015 g/mol
    2. moles = 52.5 g ÷ 18.015 g/mol = 2.91 mol
    3. Grams cancel, leaving moles.

    moles = grams ÷ molar mass. The molar mass of H2O is 18.015 g/mol.

  2. How many moles are in 23.7 g of H₂O?

    Show the answer

    Answer: 1.32 mol mol

    1. Molar mass of H₂O = 2 × 1.008 + 1 × 15.999 = 18.015 g/mol
    2. moles = 23.7 g ÷ 18.015 g/mol = 1.32 mol
    3. Grams cancel, leaving moles.

    moles = grams ÷ molar mass. The molar mass of H2O is 18.015 g/mol.

  3. How many moles are in 91.5 g of KNO₃?

    Show the answer

    Answer: 0.905 mol mol

    1. Molar mass of KNO₃ = 1 × 39.098 + 1 × 14.007 + 3 × 15.999 = 101.102 g/mol
    2. moles = 91.5 g ÷ 101.102 g/mol = 0.905 mol
    3. Grams cancel, leaving moles.

    moles = grams ÷ molar mass. The molar mass of KNO3 is 101.102 g/mol.

Try it in the lab

Questions students ask

What is Avogadro's number?

6.022 × 10²³: the number of particles in one mole of anything.

How many atoms are in 1.00 g of carbon?

1.00 g ÷ 12.011 g/mol = 0.0833 mol, and 0.0833 mol × 6.022 × 10²³ = 5.01 × 10²² atoms.

How do I enter 6.022 × 10²³ on a calculator?

Type 6.022, then the EE (or EXP, or ×10ˣ) key, then 23. Typing × 10 ^ 23 by hand works too, but put it in brackets inside a longer calculation.

Is converting grams to molecules the same?

Yes. For a molecular compound the same two steps give molecules; just use the compound's molar mass.

Related calculators

More guides on this topic

Teaching mole conversions? Poll your class on it

A live poll shows you in seconds who has the idea and who doesn't. Every student answers the same question on their phone, the big screen shows the spread of answers without any names, and you see where the class is before you explain.

Ready-made questions: the three checks in each stage of the Mole Conversions Lab work well as poll questions. They're built around the slips students make most with mole conversions: multiplying by the molar mass when they should divide, dividing by Avogadro's number when they should multiply and mixing up molecules and atoms. Stage 2: Grams to moles is a good place to start.

How Classroom Polls work →

Students join at pollwithali.com with the code on the screen; no account needed. Presenter accounts are by invitation during the pilot.