Find the molar mass of a compound from its chemical formula.
Last updated: November 2026 · Free estimates, no sign-up
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.
Multiply each element’s atomic mass by the number of its atoms, then add them. Brackets multiply everything inside them.
Water, H2O: 2 × 1.008 + 15.999 = 18.015 g/mol.
About 18.015 g/mol.
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.
This calculator gives estimates for general use. It is not financial or medical advice.
Enter your numbers, then press Calculate.