Molecular Weight Calculator

Type any chemical formula — H2O, C6H12O6, Ca(OH)2 — and get its molar mass plus the mass percentage of every element.

100% FreeNo sign-upPrivate — runs in your browser
—

molar mass (g/mol)

Composition (largest first)
—
Copied to clipboard

How to use this tool

1
Type the formula

Use element symbols with counts, e.g. H2SO4, and parentheses for groups, e.g. Ca(OH)2.

2
Read the molar mass

The headline number is the mass of one mole of the substance, in grams per mole.

3
Check the composition

Each element’s share of the total mass is listed, largest first — useful for percent-composition homework.

4
Try hydrates and salts

Formulas such as CuSO4.5H2O are not supported; enter the anhydrous formula or expand the water separately.

Formula & worked example

Molar mass = Σ (count of each element × its standard atomic weight). Percent composition of an element = (its total mass ÷ molar mass) × 100.

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. Water, H2O: 18.015 g/mol.

Limitations — read this before you rely on it

Atomic weights are standard average weights (e.g. Cl 35.45), so results are average molar masses, not single-isotope masses. Hydrate dots (·5H2O) and charges are not parsed; unknown element symbols are refused with an explanation.

Frequently asked questions

The mass of one mole of a substance: the sum of the atomic weights of every atom in its formula, in grams per mole.

Put a group in brackets and follow it with its count: Ca(OH)2 means one calcium plus two OH groups. Nested parentheses work too.

Because natural chlorine is a mix of isotopes; 35.45 is the abundance-weighted average. For single-isotope masses use the average atomic mass calculator.

No — charges are ignored by design here; enter the neutral formula (SO4) for the mass of the group.

The common elements from hydrogen to lead, including Fe, Cu, Zn, Br, I, Ag, Au and Hg. Rare or synthetic elements are not in the table.