Free tools for the numbers that matter · No signup needed

Molecular Weight Calculator

Enter a chemical formula such as H2O or Ca(OH)2 to see its estimated molar mass in grams per mole. Element counts and nested parentheses are supported.

How it works

Read each element symbol and multiply its atomic weight by the following atom count. Parentheses multiply every atom inside the group; nested groups are processed from the inside out. Add the resulting masses to estimate molar mass.

Worked example

H2O is about 18.015 g/mol. For Ca(OH)2, one calcium plus two oxygen and two hydrogen atoms gives about 74.092 g/mol.

Keep in mind

Uses rounded atomic weights for the supported elements only. Isotopic composition can change actual atomic weight. Charges, hydrate dots, square brackets, and elements outside the supported set are not included.

How are parentheses handled?

A number after a closing parenthesis multiplies every atom inside. For Ca(OH)2, the two applies to both O and H. Nested groups follow the same rule from the inside out.

Which elements can I use?

The current set includes H, Li, B, C, N, O, F, Na, Mg, Al, Si, P, S, Cl, K, Ca, Cr, Mn, Fe, Co, Ni, Cu, Zn, Br, Ag, I, Ba, and Au. Unsupported symbols produce an error instead of an invented mass.

Further reading

Browse all other calculators