Tools · Calculators · Chemistry Last update: Nov 9, 2026

Molar Mass Calculator

Calculate the molar mass (molecular weight) of any chemical formula – including brackets and hydrates – with the mass percent of every element.

Try:
—

How to enter a formula

Type the formula with correct capital letters: H2O, Ca(OH)2, Al2(SO4)3, K4[Fe(CN)6]. For hydrates use a dot or an asterisk: CuSO4·5H2O or CuSO4*5H2O. Capitals matter: Co is cobalt, CO is carbon monoxide.

How molar mass is calculated

Multiply the atomic mass of each element by the number of its atoms and add everything up:

M = Σ (number of atoms × atomic mass)

Glucose, C6H12O6: 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol.

More examples

  • Water, H2O: 18.015 g/mol
  • Carbon dioxide, CO2: 44.009 g/mol
  • Sodium chloride, NaCl: 58.44 g/mol
  • Sulfuric acid, H2SO4: 98.072 g/mol
  • Calcium phosphate, Ca3(PO4)2: 310.174 g/mol
  • Copper(II) sulfate pentahydrate, CuSO4·5H2O: 249.677 g/mol

Molar mass, molecular weight and molecular mass

The molar mass is the mass of one mole of a substance, in g/mol. The molecular weight (relative molecular mass, Mr) is the same number without a unit. The mass of a single molecule in daltons (u) is again the same number – glucose weighs 180.156 u.

Mass percent of each element

The table under the result shows how much of the mass comes from each element – glucose is 40.0% carbon, 6.7% hydrogen and 53.3% oxygen. This is the composition used in elemental analysis.

Frequently asked questions

How do I calculate molar mass?

Add up the atomic masses of all atoms in the formula. For H2O: 2 × 1.008 + 15.999 = 18.015 g/mol.

Is molecular weight the same as molar mass?

Numerically yes. Molar mass has the unit g/mol; molecular weight (relative molecular mass) has no unit.

How do I enter a hydrate?

Use a dot or an asterisk between the parts, with the number of water molecules in front: CuSO4·5H2O or CuSO4*5H2O.