Grams to Moles Formula & How to Convert
In this article
The formula to convert grams to moles is moles = mass (in grams) ÷ molar mass (in g/mol). Simply divide the mass of the substance by its molar mass (the mass of one mole, read from the periodic table) to get the number of moles.
What Is a Mole and Why Convert?
A mole is a counting unit in chemistry, equal to Avogadro's number: 6.022 × 1023 particles (atoms, molecules, ions, or formula units). Chemists use moles because atoms and molecules are far too small to count individually; weighing them in grams is practical. The conversion between grams and moles is essential for stoichiometry, preparing solutions, and interpreting chemical equations, since balanced equations express reactions in moles, not grams.
For example, if a recipe calls for 2 moles of sodium chloride, you can't weigh out “2 moles” directly—you weigh 116.88 g (2 × 58.44 g/mol). The grams-to-moles formula bridges that gap.
The Formula and Its Variables
The relationship is expressed as:
n = m / M
- n = number of moles (unit: mol)
- m = mass of the substance (unit: grams, g)
- M = molar mass (unit: grams per mole, g/mol)
Molar mass is numerically equal to the atomic or molecular weight from the periodic table, but expressed in grams per mole. For a compound, you add up the atomic masses of all atoms in its formula. For example, water (H2O) has a molar mass of 18.015 g/mol (2 × 1.008 + 15.999).
How to Find Molar Mass
To use the formula, you first need the molar mass of the substance. Follow these steps:
- Write the chemical formula of the substance (e.g., CO2).
- Look up the atomic mass of each element from the periodic table (e.g., C = 12.01, O = 16.00).
- Multiply each atomic mass by the number of atoms of that element in the formula.
- Add all the results together to get the molar mass.
For CO2: 12.01 + (2 × 16.00) = 44.01 g/mol. For glucose (C6H12O6): (6 × 12.01) + (12 × 1.008) + (6 × 16.00) = 180.16 g/mol.
Step-by-Step Example: Water
Suppose you have 36.03 grams of water (H2O) and want to know how many moles that is.
- Find the molar mass of water: 2(1.008) + 15.999 = 18.015 g/mol.
- Apply the formula: moles = 36.03 g ÷ 18.015 g/mol.
- Calculate: 36.03 ÷ 18.015 = 2.00 mol.
So, 36.03 g of water is exactly 2 moles. This matches the expected result because 18.015 g is one mole, and 36.03 g is double that.
Common Mistakes and How to Avoid Them
- Using atomic mass instead of molar mass for compounds: For a molecule like NaCl, you must add the masses of Na (22.99) and Cl (35.45) to get 58.44 g/mol—not use just one element.
- Forgetting units: Always ensure mass is in grams and molar mass is in g/mol. If mass is given in kilograms or milligrams, convert to grams first (1 kg = 1000 g, 1 mg = 0.001 g).
- Rounding too early: Keep at least 4 significant figures during intermediate steps, then round at the end to the correct number of significant figures.
- Confusing moles with molecules: One mole is 6.022 × 1023 particles. To convert moles to number of particles, multiply by Avogadro's number—not part of the grams-to-moles formula.
Converting Moles Back to Grams
The reverse calculation uses the same relationship: mass (g) = moles × molar mass (g/mol). For example, to find the mass of 0.75 moles of sodium hydroxide (NaOH, molar mass 40.00 g/mol):
mass = 0.75 mol × 40.00 g/mol = 30.00 g.
This is just a rearrangement of the formula, and it's equally common in lab work when you need to weigh out a specific number of moles.
When You Need the Molar Mass of a Gas or Solution
For gases, molar mass can be found from the ideal gas law (PV = nRT) if you know pressure, volume, temperature, and mass. For solutions, molarity (mol/L) relates moles to volume, but you still need to convert grams to moles first using the molar mass of the solute. In both cases, the grams-to-moles formula remains the core step.
Frequently Asked Questions
How do I convert grams to moles without a calculator?
You can do it by hand using the formula n = m / M. Write down the mass and the molar mass, then divide. For example, 10 g of carbon (molar mass 12.01 g/mol) is 10 ÷ 12.01 ≈ 0.833 mol. A simple long division or a rough estimate works for most school problems.
What is the difference between molar mass and molecular weight?
They are numerically identical but have different units. Molecular weight is a dimensionless quantity (e.g., 18.015 for water), while molar mass has units of g/mol (e.g., 18.015 g/mol). In practice, you use the same number in the formula.
Why do I need to convert grams to moles in chemistry?
Chemical reactions happen in fixed mole ratios, not mass ratios. For example, 2H2 + O2 → 2H2O means 2 moles of hydrogen react with 1 mole of oxygen. To know how much of each substance to use, you must work in moles, which requires converting from the mass you can weigh.
Can I convert grams to moles for any substance?
Yes, as long as you know the chemical formula and can calculate its molar mass. This works for elements, compounds, ions, and even mixtures if you treat them as a single formula unit (e.g., a salt hydrate). For mixtures, you need the average molar mass based on composition.
What if I have a hydrate like CuSO4·5H2O?
Include the water molecules in the molar mass. For copper(II) sulfate pentahydrate, add the mass of CuSO4 (159.61 g/mol) plus 5 × 18.015 g/mol (water) to get 249.69 g/mol. Then use that value in the formula.
How many significant figures should I use?
Use the same number of significant figures as the least precise measurement. If your mass is 25.0 g (3 sig figs) and the molar mass is 44.01 g/mol (4 sig figs), your answer should have 3 significant figures: 0.568 mol. In practice, use at least 4 sig figs for molar mass from the periodic table to avoid rounding errors.