Type a chemical formula and get its molar mass in grams per mole, along with a full breakdown of what that mass is made of. The calculator reads ordinary chemical notation, including brackets and hydrates — Ca(OH)₂, K₄[Fe(CN)₆] and CuSO₄·5H₂O all parse correctly — and tells you plainly what is wrong...
Brackets and hydrates are understood — try Ca(OH)2, K4[Fe(CN)6] or CuSO4·5H2O.
COMMON COMPOUNDS
MOLAR MASS
18.015 g/mol
One mole of H2O weighs 18.015 grams and contains 6.022 × 10²³ formula units.
ELEMENT BREAKDOWN
ELEMENT
ATOMS
ATOMIC
MASS
% BY MASS
O
Z 8
1
15.999
15.999
88.81%
H
Z 1
2
1.008
2.016
11.19%
TOTAL
3
18.015
100.00%
MASS TO MOLES
Amount of substance
0.55509 mol
Formula units
3.3428e+23
STEPS
Count the atoms: O×1, H×2
Multiply each by its standard atomic weight: 15.999×1 + 1.008×2
Add them: molar mass = 18.0150 g/mol
WHAT IT IS MADE OF
Atom count and mass share are different things. H2O has 3 atoms in all, but O alone accounts for 88.8% of the weight. Heavy elements dominate the mass even when only a few atoms are present, which is why the largest slice is rarely the most numerous atom.
THE MOLE, IN CONTEXT
Molar mass
18.015 g/mol
Mass of one unit
2.991e-23 g
Units in 1 gram
3.343e+22
Avogadro constant
6.02214076 × 10²³
IUPAC 2021 standard atomic weights · updates as you type
Type a chemical formula into the box using ordinary notation — element symbols with a capital first letter, subscripts as plain numbers. H2O, C6H12O6 and NaCl all work as written.
Brackets and hydrates are understood. Ca(OH)2 multiplies the bracketed group, K4[Fe(CN)6] handles nesting, and CuSO4·5H2O treats the water of crystallisation as five separate water molecules. A middle dot, a full stop or an asterisk all work as the hydrate separator.
Read the molar mass in the black box, then the element breakdown beneath it — atom count, standard atomic weight, mass contributed and percentage by mass for each element, with the totals checked against 100 percent.
Use the mass-to-moles box to convert a real quantity. Enter a mass in grams and the calculator returns the amount in moles and the number of formula units, which is what most laboratory calculations need.
Last updated: July 28, 2026 · IUPAC 2021 atomic weights · Eagle-eyed accuracy for every calculation.