How to calculate molar mass
Updated on June 30, 2026 · by Rafael Rossi
Molar mass is the mass of one mole of a substance, in grams per mole (g/mol). Calculating it means adding up the atomic masses in the formula — the easy part. The part that actually matters is understanding what it is for: converting between what you weigh on a balance and what reacts in the flask.
What a mole is
A mole is a fixed quantity of entities: 6.022 × 1023 — Avogadro's constant. Just as "a dozen" is always 12 objects, "a mole" is always 6.022 × 10²³ atoms, molecules or ions.
Its usefulness is this: chemical reactions happen in ratios of particles, but laboratories and factories work with scales. The mole bridges the two worlds, and molar mass is the conversion factor.
How to calculate it
Add the atomic mass of each element, multiplied by how many atoms appear in the formula. Atomic masses come from the periodic table.
Water (H₂O):
- 2 hydrogens: 2 × 1.008 = 2.016
- 1 oxygen: 1 × 15.999 = 15.999
- Total: 18.015 g/mol
So 18.015 grams of water contain 6.022 × 10²³ molecules.
Common examples
| Substance | Formula | Molar mass |
|---|---|---|
| Water | H₂O | 18.02 g/mol |
| Table salt | NaCl | 58.44 g/mol |
| Carbon dioxide | CO₂ | 44.01 g/mol |
| Glucose | C₆H₁₂O₆ | 180.16 g/mol |
| Calcium carbonate | CaCO₃ | 100.09 g/mol |
| Sulfuric acid | H₂SO₄ | 98.07 g/mol |
The two conversions that solve almost everything
moles = mass (g) ÷ molar mass (g/mol)
mass (g) = moles × molar mass (g/mol)
Example: how many moles are in 90 g of glucose? 90 ÷ 180.16 = 0.4996 mol, essentially half a mole — about 3 × 10²³ molecules.
The other way: to prepare 250 mL of 0.5 mol/L NaCl solution you need 0.5 × 0.25 = 0.125 mol, which as mass is 0.125 × 58.44 = 7.30 g.
What this is for: stoichiometry
Molar mass is what lets you answer "how much A do I need to consume all of B" — the central question of any reaction, from the lab to the kitchen.
A household example: sodium bicarbonate (NaHCO₃, 84.01 g/mol) reacts with the acetic acid in vinegar (CH₃COOH, 60.05 g/mol) in a 1 mole to 1 mole ratio.
Half a litre of 5% vinegar contains about 25 g of acetic acid. Converting:
- 25 ÷ 60.05 = 0.416 mol of acid
- 0.416 mol of bicarbonate is required
- 0.416 × 84.01 = 35 g of bicarbonate
Notice that the ratio by mass is not 1:1 — it takes 35 g of bicarbonate for 25 g of acid, because the molecules have different masses. Ignoring that and "measuring equal amounts" is the error that leaves reagent unreacted, industrially or at home.
Where errors show up
- Ignoring the subscript outside a parenthesis. Ca(OH)₂ contains two oxygens and two hydrogens, not one of each. The subscript multiplies everything inside.
- Forgetting water of crystallisation. CuSO₄·5H₂O has a far larger molar mass than pure CuSO₄ — the difference is five waters, 90 g/mol. Weighing the hydrate using the anhydrous mass gets the concentration wrong by more than a third.
- Confusing molar mass with atomic mass. They are numerically equal, but atomic mass is dimensionless (in atomic mass units) and molar mass carries g/mol. The distinction matters when you set the calculation up with units.
- Using the empirical formula instead of the molecular one. Glucose's empirical formula is CH₂O (30.03 g/mol); the molecular formula is C₆H₁₂O₆ (180.16 g/mol). A factor of six apart.
Frequently asked questions
Why are atomic masses not whole numbers? Because the periodic table lists the weighted average of the element's natural isotopes. Chlorine reads 35.45 because nature mixes chlorine-35 and chlorine-37 in roughly 76% and 24% proportions.
What is the difference between molar mass and molecular mass? In practice the numeric value is identical. Molecular mass refers to one molecule (in u); molar mass to one mole of them (in g/mol). For ionic compounds such as NaCl, which form no molecules, the correct term is formula mass.
How do I find the molar mass of a mixture? Use the average weighted by mole fractions. That is how the apparent molar mass of air, about 28.96 g/mol, is derived from its nitrogen, oxygen and argon content.
Do I need to memorise atomic masses? No. It is worth recognising the frequent ones — H ≈ 1, C = 12, N = 14, O = 16, Na = 23, S = 32, Cl = 35.5 — because they let you estimate the order of magnitude and notice immediately when a calculation has gone absurd.