The Basic Conversion: Divide Grams by Molar Mass
To convert grams to moles, you divide the number of grams by the molar mass of the substance. Molar mass is the weight of one mole of a substance, measured in grams per mole (g/mol). Every element and compound has its own molar mass, which you can find on the periodic table or in a chemistry reference.
The formula is straightforward: moles = grams ÷ molar mass. If you have 18 grams of water (H₂O) and the molar mass of water is 18 g/mol, then 18 ÷ 18 = 1 mole of water. The units cancel out, leaving you with moles as your answer.
Key Takeaways
- Molar mass is the sum of the atomic masses of all atoms in a molecule, found on the periodic table and expressed in g/mol.
- The conversion formula is moles = grams divided by molar mass, and the calculation takes only one step once you have the molar mass.
- You must identify the exact substance you are converting, because different compounds have different molar masses even if they contain the same elements.
- Molar mass for elements comes directly from the periodic table; for compounds, you add up the molar masses of each atom in the molecule.
Finding the Molar Mass of an Element
For single elements, the molar mass is the atomic mass shown on the periodic table, converted to grams per mole. Hydrogen has an atomic mass of about 1, so its molar mass is 1 g/mol. Carbon is about 12, so its molar mass is 12 g/mol. Oxygen is about 16, so its molar mass is 16 g/mol.
If you have 32 grams of oxygen gas (O₂), you first need the molar mass of O₂, not just O. Since each oxygen atom is 16 g/mol and there are two atoms, O₂ has a molar mass of 32 g/mol. Then 32 grams ÷ 32 g/mol = 1 mole of oxygen gas.
Finding the Molar Mass of a Compound
For compounds made of multiple elements, add the molar mass of each atom. Water (H₂O) contains two hydrogen atoms and one oxygen atom. Hydrogen is 1 g/mol, oxygen is 16 g/mol, so water is (1 × 2) + 16 = 18 g/mol.
Sodium chloride (NaCl) contains one sodium atom and one chlorine atom. Sodium is 23 g/mol, chlorine is 35.5 g/mol, so NaCl is 23 + 35.5 = 58.5 g/mol. If you have 117 grams of NaCl, then 117 ÷ 58.5 = 2 moles of sodium chloride.
When a compound has multiple atoms of the same element, multiply the atomic mass by the number of atoms. Glucose (C₆H₁₂O₆) has six carbon atoms, twelve hydrogen atoms, and six oxygen atoms. The molar mass is (6 × 12) + (12 × 1) + (6 × 16) = 72 + 12 + 96 = 180 g/mol.
Working Through a Complete Example
Suppose you have 50 grams of calcium carbonate (CaCO₃) and need to know how many moles that is. First, find the molar mass: calcium is 40 g/mol, carbon is 12 g/mol, and oxygen is 16 g/mol. CaCO₃ contains one calcium, one carbon, and three oxygen atoms, so the molar mass is 40 + 12 + (3 × 16) = 40 + 12 + 48 = 100 g/mol.
Now divide: 50 grams ÷ 100 g/mol = 0.5 moles of calcium carbonate. The grams cancel with the grams in the denominator of molar mass, leaving moles as your unit. This same process works for any substance once you have calculated or looked up the molar mass.
Common Mistakes to Avoid
The most frequent error is using the wrong molar mass. Oxygen gas (O₂) is not the same as a single oxygen atom (O), and they have different molar masses. Always check whether the substance is an element by itself, a diatomic molecule like O₂ or N₂, or a compound with multiple elements.
Another mistake is forgetting to multiply when an atom appears more than once. In H₂O, there are two hydrogens, so you must use 1 × 2, not just 1. In glucose (C₆H₁₂O₆), the six carbons mean you multiply 12 × 6, not just 12. Rounding too early can also throw off your answer—keep at least one decimal place through your calculation, then round only at the end.
When You Know Moles and Need Grams Instead
The reverse calculation works the same way. If you have 2 moles of sodium (Na) and want to know the mass in grams, multiply moles by molar mass: 2 moles × 23 g/mol = 46 grams of sodium. This is useful when a recipe or experiment tells you how many moles you need, but you have to measure out grams on a scale.
The direction of the conversion does not change the method—you are always multiplying or dividing by molar mass. The only difference is whether molar mass ends up in the numerator or denominator of your calculation.
Frequently Asked Questions
Where do I find the molar mass if it is not on the periodic table?
For elements, the molar mass is always on the periodic table as the atomic mass. For compounds, you calculate it by adding the molar masses of each atom. Chemistry textbooks and online databases like PubChem also list molar masses for common compounds if you need to double-check your math.
Do I round the atomic masses from the periodic table?
For most high school and introductory chemistry work, rounding to the nearest whole number is fine. For more precise work, use the values to one decimal place. Hydrogen is 1.01, carbon is 12.01, nitrogen is 14.01, oxygen is 16.00, and sodium is 22.99. Check your textbook or assignment to see what precision is expected.
What if the substance has a decimal number of atoms in its formula?
Some compounds, called hydrates, include water molecules in their structure. Copper sulfate pentahydrate is CuSO₄·5H₂O, meaning one copper sulfate molecule plus five water molecules. Calculate the molar mass of CuSO₄ and the molar mass of 5H₂O separately, then add them together.
Can I convert grams to moles without knowing what the substance is?
No. You must know the exact substance because different compounds have different molar masses. Fifty grams of water is not the same number of moles as fifty grams of salt, even though both are measured in grams. Always identify the substance first, then look up or calculate its molar mass.