Overview

Molar mass is the mass of one mole of a substance, in grams per mole. Enter how many atoms of each element are in the formula.

It covers the 12 most common elements in chemistry class. For glucose, C₆H₁₂O₆, enter 6, 12 and 6.

Worked examples

InputsResult
C atoms6H atoms12N atoms0O atoms6Na atoms0Cl atoms0S atoms0P atoms0K atoms0Ca atoms0Fe atoms0Mg atoms0Molar mass: 180.156 g/molFormula: C₆H₁₂O₆C: 40% by massH: 6.71% by massO: 53.28% by mass
Show 2 more examples
C atoms0H atoms2N atoms0O atoms1Na atoms0Cl atoms0S atoms0P atoms0K atoms0Ca atoms0Fe atoms0Mg atoms0Molar mass: 18.015 g/molFormula: H₂OH: 11.19% by massO: 88.81% by mass
C atoms1H atoms0N atoms0O atoms3Na atoms0Cl atoms0S atoms0P atoms0K atoms0Ca atoms1Fe atoms0Mg atoms0Molar mass: 100.086 g/molFormula: CO₃CaC: 12% by massO: 47.96% by massCa: 40.04% by mass

Molar mass by o atoms

With the calculator's starting values, the molar mass is 180.156 g/mol. The table shows how it changes with the o atoms.

O atomsMolar mass (g/mol)
3132.159 g/mol
4148.158 g/mol
5164.157 g/mol
6starting value180.156 g/mol
7196.155 g/mol
8212.154 g/mol
9228.153 g/mol

Other inputs: C atoms: 6 · H atoms: 12 · N atoms: 0 · Na atoms: 0 · Cl atoms: 0 · S atoms: 0 · P atoms: 0 · K atoms: 0 · Ca atoms: 0 · Fe atoms: 0 · Mg atoms: 0. Change them in the calculator above for your own numbers.

How it works

Multiply each element’s atomic mass by its atom count, and add them. It also shows each element’s share of the total mass. Use it with our mole calculator to convert between grams and moles.

The formula

M = Σ (atoms × atomic mass)
atomic massFrom the periodic table, in g/mol

Practical tips

  • Glucose is 180.156 g/mol, and water is 18.015 g/mol.
  • Multiply brackets out first, so Ca(OH)₂ has 1 Ca, 2 O and 2 H.
  • Published values can differ slightly depending on the atomic mass table used.

Frequently asked questions

Is molar mass the same as molecular weight?

They have the same number, but molar mass has units of g/mol, while molecular weight is often unitless.

What about hydrates?

Include the water, so CuSO₄·5H₂O adds 10 H and 5 O.