September 18, 2026

What Is Molar Mass, and How Do You Calculate It?

  • basics
  • calculations

If you’ve started balancing chemical equations or working out how much of a reactant you need for a reaction, you’ve almost certainly run into molar mass. It’s one of those concepts that’s simple once it clicks, but easy to get tangled up in if you first meet it as a wall of formulas.

The core idea

A mole is just a counting unit — like “dozen,” but for an almost unimaginably large number of particles (6.022 × 10²³ of them, known as Avogadro’s number). Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol).

Conveniently, an element’s molar mass in g/mol is numerically the same as its standard atomic weight in atomic mass units (u) — the number you see listed on every entry in our periodic table. Carbon’s atomic weight is about 12.011 u, so one mole of carbon atoms has a mass of about 12.011 grams. That equivalence is what makes molar mass so useful: it’s the bridge between “how many atoms/molecules” (which chemistry is really about) and “how many grams” (which is what you can actually weigh on a scale).

Calculating it for a compound

For a compound, molar mass is just the sum of the molar masses of every atom in its formula. Take water, H₂O:

  • 2 hydrogen atoms × 1.008 g/mol = 2.016 g/mol
  • 1 oxygen atom × 15.999 g/mol = 15.999 g/mol
  • Total: 18.015 g/mol

For anything with parentheses, multiply everything inside by the subscript outside before adding it up. Calcium hydroxide, Ca(OH)₂, has two oxygens and two hydrogens, not one of each — the “2” applies to the whole group in parentheses.

Hydrates need an extra step

Some compounds crystallize with water molecules locked into their structure, shown with a raised dot: copper(II) sulfate pentahydrate is written CuSO₄·5H₂O. The “5” only multiplies what comes after the dot — you work out CuSO₄ and 5×H₂O separately, then add both totals together:

  • CuSO₄: 159.61 g/mol
  • 5 × H₂O: 5 × 18.015 = 90.08 g/mol
  • Total: 249.68 g/mol

Why it matters: mass percent and stoichiometry

Once you have a compound’s molar mass, you can work out mass percent composition — how much of the total mass comes from each element — by dividing each element’s contribution by the total and multiplying by 100. In water, hydrogen contributes 2.016 ÷ 18.015 ≈ 11.19%, and oxygen makes up the remaining 88.81%. This is exactly how you’d verify an unknown compound’s formula from lab data, or work out how many grams of a reactant you need for a given number of moles in a synthesis.

Skip the arithmetic

Doing this by hand is genuinely useful the first few times — it’s how the concept sinks in. After that, there’s no reason to re-derive it every time. Our molar mass calculator parses any formula, parentheses and hydrates included, and gives you the full per-element breakdown instantly.