Skip to content
Calculator Tools
Chemistry Calculators

Molar Mass Calculator

Molar mass of any chemical formula in g/mol, with a full element-by-element breakdown.

Enter values

Results update as you type.

Result

Molar mass

180.156 g/mol

Atoms per molecule
24
Different elements
3
Step-by-stepShow
  1. O: 6 × 15.999 = 95.9940 g/mol
  2. C: 6 × 12.011 = 72.0660 g/mol
  3. H: 12 × 1.008 = 12.0960 g/mol

Composition by element

ElementNameAtomsAtomic massMass (g/mol)Percent
OOxygen615.99995.99453.284%
CCarbon612.01172.06640.002%
HHydrogen121.00812.0966.714%

About the Molar Mass Calculator

Molar mass is the mass of one mole of a substance in grams. Add up the atomic mass of every atom in the formula and you have it. This calculator parses brackets, hydrates and nested groups — type something like Ca(OH)2 or CuSO4·5H2O and it gives the molar mass plus the mass contributed by each element.

Also known as: molecular weight calculator, molar mass of a compound, formula mass, molecular mass, gram formula mass, mw calculator.

How to use this calculator

  1. Type the formula exactly as written — capital letters start an element, lowercase continue it.
  2. Use brackets for groups, e.g. Al2(SO4)3.
  3. Use a dot for hydrates, e.g. CuSO4·5H2O or CuSO4.5H2O.

Formula

M = Σ (atoms of each element × atomic mass)

Worked example

Using the values pre-filled in the calculator above:

  • Chemical formula: C6H12O6
  • Sample mass (optional) = 0 g

the calculator returns:

  • Molar mass: 180.156 g/mol
  • Atoms per molecule: 24
  • Different elements: 3

Working

  1. O: 6 × 15.999 = 95.9940 g/mol
  2. C: 6 × 12.011 = 72.0660 g/mol
  3. H: 12 × 1.008 = 12.0960 g/mol

Frequently asked questions

What is the difference between molar mass and molecular weight?

Numerically they are the same. Molecular weight is a relative, unitless number; molar mass carries the units g/mol.

How do I type a hydrate?

Use a dot or a full stop before the water part: CuSO4·5H2O or CuSO4.5H2O both work.

Why does my textbook give a slightly different value?

Atomic masses are periodically revised and some books round differently. Differences are normally in the third decimal place.