Tool · lab balance
Molar mass calculator
Type a chemical formula. We show each element’s contribution, the total and the mass percentages, step by step.
Capitals matter: Co is cobalt, CO is carbon monoxide. For hydrates, use a dot or “·”.
How it works
The molar mass of a substance is the mass of one mole of it, in grams. For each element in the formula, its atomic weight is multiplied by the number of its atoms, and the results are added up. This tool uses IUPAC’s 2024 abridged standard atomic weights. For elements with no stable isotope it uses the mass number of the longest-lived isotope and marks the result as approximate.
Frequently asked questions
How do you calculate molar mass?
Multiply the atomic weight of each element by the number of its atoms in the formula, then add the results. The unit is grams per mole (g/mol).
What is the molar mass of water?
For water (H₂O): 2 × 1.008 + 15.999 = about 18.015 g/mol.
How many particles are in a mole?
Exactly 6.02214076 × 10²³. This is the Avogadro constant; since 2019 it has been fixed at this value by definition.
How do formulas with brackets work?
The group inside the brackets is repeated as many times as the number after it. Ca(OH)₂ contains 1 calcium, 2 oxygen and 2 hydrogen atoms.
See also: ionic compound formula writer, what is a standard atomic weight?, all elements, periodic table quiz, spell your name with elements.