Molar mass calculator

Find grams per mole from a formula or a compound in the catalog.

Try a catalog name like caffeine, or enter a formula with case-sensitive element symbols. Use a middle dot for hydrates and a caret for charges. For example, CuSO4·5H2O or SO42−.

How it works

Multiply each atom count by its CIAAW abridged standard atomic weight and add the contributions. The calculator accepts nested parentheses and brackets, coefficients and pasted subscripts. It uses the full table values and displays calculated masses to three decimals and percentages to two. Rounding and different atomic-weight tables can change the last digits compared with PubChem. A leading coefficient scales the counts and total. Omit it for the molar mass of one formula unit.

Worked examples

Water
H2O · 2 × 1.008 + 15.999 = 18.015 g/mol
Glucose
C6H12O6 · 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol
Calcium hydroxide
Ca(OH)2 · 40.078 + 2 × (15.999 + 1.008) = 74.092 g/mol
Copper(II) sulfate pentahydrate
CuSO4·5H2O · 63.546 + 32.06 + 9 × 15.999 + 10 × 1.008 = 249.677 g/mol
Ammonium phosphate
(NH4)3PO4 · 3 × 14.007 + 12 × 1.008 + 30.974 + 4 × 15.999 = 149.087 g/mol