Molecular weight calculator

Find the molar mass of a compound from its chemical formula.

Last updated: November 2026 · Free estimates, no sign-up

What molecular weight is

Molecular weight (molar mass) is the total mass of all atoms in one molecule, in grams per mole. Chemists use it to convert between grams and moles.

The method

Multiply each element’s atomic mass by the number of its atoms, then add them. Brackets multiply everything inside them.

Worked example

Water, H2O: 2 × 1.008 + 15.999 = 18.015 g/mol.

Frequently asked questions

The numbers are the same. Molar mass is in g/mol.

In Ca(OH)2 the OH group is counted twice.

The 29 most common elements. More can be added.

Related articles

Related calculators

Note

This calculator gives estimates for general use. It is not financial or medical advice.

Molecular weight calculator

Enter your numbers, then press Calculate.