Loading your view…

Molar mass calculator

From a chemical formula to every atom’s contribution.

Periodic table

Start with a formula

Use the element symbols exactly as they appear in the table.

Supports parentheses, nested groups, and hydrates, such as CuSO4·5H2O. Counts must be positive whole numbers.

Try a formula
Calculated molar mass Calculated
H2O
18.015g/mol
3 atoms in the formula2 elements

The mass of one mole of this formula’s atoms.

Elemental composition

Composition of H2O

Elemental composition of H2O: atom counts, atomic mass, total mass contribution, and percentage by mass
ElementAtomsAtomic mass (u)Contribution (g/mol)Mass percentage
HHydrogenAtomic number 121.0082.016
11.19%
OOxygenAtomic number 8115.99915.999
88.81%
Total3—18.015100.00%

How the calculation works

Multiply each element’s atomic mass by its atom count, then add the contributions. Group counts apply to every atom inside the group.

Molar massΣ (atomic mass × atom count)

Values use this atlas’s atomic masses and are rounded only for display. Representative isotope masses are used where an element has no stable isotopes.