Grams to Moles Calculator

To convert grams to moles, divide the mass by the molar mass: n = m ÷ M. Type a chemical formula such as H2O, Ca(OH)2 or CuSO4.5H2O and the calculator finds the molar mass from standard atomic weights, converts grams to moles (or moles to grams), and shows the number of particles.

ChemistryStepsFree
g/mol

Grams to moles formula

n = m ÷ M, where n is the amount in moles, m is the mass in grams and M is the molar mass in grams per mole. To go the other way, m = n × M.

How to convert grams to moles in three steps

  1. Write the chemical formula and count the atoms of each element.
  2. Add the atomic masses to get the molar mass M (g/mol).
  3. Divide the mass in grams by M.

Example 1: 36 g of water

M(H₂O) = 2 × 1.008 + 15.999 = 18.015 g/mol. n = 36 ÷ 18.015 ≈ 2.00 mol.

Example 2: 100 g of calcium carbonate, CaCO₃

M = 40.078 + 12.011 + 3 × 15.999 = 100.086 g/mol. n = 100 ÷ 100.086 ≈ 0.999 mol.

Example 3: 0.25 mol of NaCl to grams

M = 22.990 + 35.45 = 58.44 g/mol. m = 0.25 × 58.44 = 14.61 g.

Molar masses of common compounds

Substance Formula Molar mass (g/mol)
Water H₂O 18.015
Carbon dioxide CO₂ 44.009
Sodium chloride NaCl 58.44
Glucose C₆H₁₂O₆ 180.156
Sulfuric acid H₂SO₄ 98.07
Ammonia NH₃ 17.031
Calcium carbonate CaCO₃ 100.086
Oxygen gas O₂ 31.998

Entering formulas

  • Use capital letters exactly: Co is cobalt, but CO is carbon monoxide.
  • Parentheses multiply a group: Ca(OH)₂ has 1 Ca, 2 O and 2 H.
  • Write hydrates with a dot: CuSO4.5H2O.
  • Atomic masses are the IUPAC standard values, rounded for everyday chemistry.

From moles to particles

One mole contains exactly 6.02214076 × 10²³ particles (Avogadro’s number). The calculator also shows the number of molecules or formula units: 2 mol of water is about 1.204 × 10²⁴ molecules.

For molar mass breakdowns use the molar mass calculator; for concentrations use the molarity calculator.

Grams to moles quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. How many moles are in 18.015 g of water?

Found a mistake? Let us know!

2. Molar mass of CO₂ (C = 12.011, O = 15.999)?

Found a mistake? Let us know!

3. How many grams are 2 mol of NaCl (58.44 g/mol)?

Found a mistake? Let us know!

4. How many moles are in 88 g of CO₂ (44 g/mol)?

Found a mistake? Let us know!

5. How many O atoms are in Ca(OH)₂?

Found a mistake? Let us know!

6. The formula n = m ÷ M gives n in:

Found a mistake? Let us know!

7. About how many molecules are in 0.5 mol of a substance?

Found a mistake? Let us know!

8. Glucose is 180.16 g/mol. How many moles are 90.08 g?

Found a mistake? Let us know!

9. Which formula is cobalt?

Found a mistake? Let us know!

10. Molar mass of O₂ (O = 15.999)?

Found a mistake? Let us know!

Frequently asked questions

How do you convert grams to moles?

Divide the mass in grams by the molar mass in g/mol: n = m ÷ M. For 36 g of water, 36 ÷ 18.015 ≈ 2 mol.

How do you find molar mass?

Add the atomic masses of all atoms in the formula. H₂O = 2(1.008) + 15.999 = 18.015 g/mol.

How do you convert moles to grams?

Multiply moles by molar mass: m = n × M.

How many molecules are in a mole?

6.02214076 × 10²³, Avogadro’s number, which is exact by definition in the SI.

Why does capitalization matter in formulas?

Element symbols start with a capital letter and may have one lowercase letter. Co (cobalt) and CO (carbon monoxide) are different substances.

Sources

Related calculators

Browse all calculators

Related to This Article

What people say about "Grams to Moles Calculator - Effortless Math"?

No one replied yet.

Leave a Reply