← All tools/Calculators/Chemistry/Molar Mass Calculator

Molar Mass Calculator

Type a chemical formula — H2O, CO2, H2SO4 or Ca(OH)2 — and see its molar mass, with the atom-by-atom breakdown.

Molar mass

18.015 g/mol

H2O — 3 atoms in total

H
2.016
O
15.999
ElementAtomsAtomic weightContribution
H21.0082.016
O115.99915.999
Total atoms3 atoms
Heaviest elementO (15.999 g/mol)

How it works

Molar mass = Σ (atoms of each element × atomic weight)
H2O = 2 × 1.008 + 1 × 15.999 = 18.015 g/mol
CO2 = 1 × 12.011 + 2 × 15.999 = 44.009 g/mol

Water H2O has 2 hydrogen atoms (2 × 1.008 = 2.016) and 1 oxygen atom (15.999), so its molar mass is 18.015 g/mol. Carbon dioxide CO2 is 12.011 + 2 × 15.999 = 44.009 g/mol. Sulfuric acid H2SO4 is 2 × 1.008 + 32.06 + 4 × 15.999 = 98.072 g/mol, and glucose C6H12O6 is 180.156 g/mol.

Frequently asked questions

What is molar mass?

Molar mass is the mass of one mole of a substance, in grams per mole (g/mol). One mole of water weighs 18.015 g, because a water molecule weighs 18.015 atomic mass units.

Does it handle brackets, like Ca(OH)2?

Yes. Groups in brackets are multiplied by the number after them: Ca(OH)2 is one calcium plus two lots of (O + H), giving 40.078 + 2 × (15.999 + 1.008) = 74.092 g/mol.

Which atomic weights does it use?

Standard atomic weights: H 1.008, C 12.011, N 14.007, O 15.999, S 32.06, Ca 40.078, Fe 55.845 and the other common elements. The breakdown table shows the weight used for each element.

Why is the molar mass of water 18.015 and not 18?

Because atoms do not weigh whole numbers. Hydrogen weighs 1.008 and oxygen 15.999, so 2 × 1.008 + 15.999 = 18.015. Rounding to 18 is fine for rough work, but 18.015 is the precise figure.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.