Molar Mass Calculator

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...

CHEMICAL FORMULA

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

grams

Amount of substance

0.55509 mol

Formula units

3.3428e+23

STEPS

1

Count the atoms: O×1, H×2

2

Multiply each by its standard atomic weight: 15.999×1 + 1.008×2

3

Add them: molar mass = 18.0150 g/mol

WHAT IT IS MADE OF

COMPOSITION BY MASS2elementsOOxygen88.81%HHydrogen11.19%
MASS CONTRIBUTED BY EACH ELEMENT (g/mol)O15.999H2.016

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

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    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.

  2. 2

    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.

  3. 3

    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.

  4. 4

    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.

THE FORMULAS

Molar massM = Σ (atomic weight × count)
Moles from massn = m ÷ M
Mass from molesm = n × M
Number of particlesN = n × N_A
Percent composition% = (mass of element ÷ M) × 100
Avogadro constantN_A = 6.02214076 × 10²³ /mol
Mass of one unitM ÷ N_A grams
Unitsg/mol, numerically equal to u

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE CHEMISTRY CALCULATORS

Was this calculator helpful?

Last updated: July 28, 2026 · IUPAC 2021 atomic weights · Eagle-eyed accuracy for every calculation.