Molar Mass Calculator
Molar mass is the sum of atomic weights times atom counts: H2O = 2 × 1.008 + 15.999 = 18.015 g/mol, and glucose C6H12O6 = 180.156 g/mol. Atomic weights are IUPAC standard values (CIAAW 2021, updated 2024).
How to use
- Type a formula such as C6H12O6, Ca(OH)2 or Fe2(SO4)3. Symbols are case sensitive: Co is cobalt, CO is carbon monoxide. Round, square and curly brackets can be nested.
- For a hydrate, join the parts with a dot or a star: CuSO4·5H2O, CuSO4*5H2O or CuSO4.5H2O all work. Charges such as SO4^2- or NH4+ are ignored.
- Enter an amount in grams to get moles, or switch to mol to get grams. Add ?f=CuSO4*5H2O&amt=10&unit=g to the address to share the same calculation.
How it works
M = Σ (nᵢ × Aᵢ), where nᵢ is the number of atoms of element i in the formula and Aᵢ is its standard atomic weight in g/mol. A group in brackets is multiplied by the number after it, and a hydrate coefficient multiplies the part after it.
Mass percent of an element = nᵢ × Aᵢ / M × 100. Moles = grams / M, and grams = moles × M.
Atomic weights come from the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW): the 2021 standard atomic weights with the 2023 and 2024 revisions (Gd, Lu, Zr). For the 14 elements published as an interval (H, Li, B, C, N, O, Mg, Si, S, Cl, Ar, Br, Tl, Pb) the IUPAC conventional value is used, for example H 1.008, C 12.011, O 15.999. Elements with no stable isotope use the mass number of the longest lived isotope.
Sources: IUPAC CIAAW Standard Atomic Weights · Standard atomic weights of the elements 2021 (IUPAC Technical Report)Last reviewed 2026-10-21
FAQ
What is the molar mass of water?
H2O is 2 × 1.008 + 15.999 = 18.015 g/mol, so 18 g of water is very close to 1 mol.
Why does my textbook give a slightly different number?
Older tables used values such as S 32.065 or H 1.00794. IUPAC now publishes intervals for elements whose isotopes vary in nature and recommends a conventional value for everyday use. Differences are usually in the second or third decimal place.
How do I write a hydrate?
Put a dot, a middle dot or a star between the salt and the water, with the number of waters in front: CuSO4·5H2O or Na2CO3*10H2O.
Can I enter isotopes like deuterium or carbon 13?
No. The calculator uses standard atomic weights for natural isotope mixtures. D, T and mass number prefixes are not supported.
Is molar mass the same as molecular weight?
They are numerically the same. Molar mass is in g/mol, while molecular weight (relative molecular mass) has no unit, so H2O has a molar mass of 18.015 g/mol and a molecular weight of 18.015.