Molar mass calculator
Type a chemical formula to get its molar mass, the mass of each element, and percent composition, with the working shown step by step.
How molar mass is calculated
Molar mass is the mass of one mole of a substance, in grams per mole (g/mol). To find it, multiply the atomic mass of each element by how many atoms of it are in the formula, then add everything up. For water, H2O: 2 × 1.008 + 15.999 = 18.015 g/mol.
This calculator uses standard atomic weights. For elements with no stable isotopes, it uses the mass of the most stable isotope, which is how most textbooks handle them.
How molar mass is worked out
The molar mass of a compound is the mass of one mole of it, in grams per mole (g/mol). Add up the relative atomic masses of every atom in the formula. For water, H₂O: 2 × 1.008 + 16.00 = 18.02 g/mol.
Brackets multiply everything inside them: in Ca(OH)₂ there is one calcium, two oxygens and two hydrogens. Water of crystallisation is added on, so CuSO₄·5H₂O includes five whole water molecules (249.7 g/mol).
Once you know the molar mass you can convert between mass and moles with moles = mass ÷ molar mass, the starting point for almost every chemistry calculation.
Questions students ask
What is the difference between molar mass and relative formula mass?
They are the same number. Relative formula mass (Mr) has no units; molar mass is that number in grams per mole.
How do I find the molar mass of an element?
Use the relative atomic mass from the periodic table, for example 12.01 g/mol for carbon and 55.85 g/mol for iron.
How many moles are in 10 g of NaCl?
NaCl has a molar mass of 58.44 g/mol, so 10 ÷ 58.44 = 0.171 mol.
Connected tools
The same idea from another angle, across the site.