About the Molar Mass Calculator
Molar mass is the mass of one mole of a substance, in grams per mole. It connects the mass you weigh on a balance to the number of particles in a sample, so you need it for almost every calculation in chemistry, from stoichiometry to making solutions.
This molar mass calculator reads a chemical formula and adds up the atomic weights. It handles brackets, nested brackets and hydrates, so Ca(OH)2, K4[Fe(CN)6] and CuSO4·5H2O all work. A table shows how much each element contributes, with the mass percentage of each.
How to use the Molar Mass Calculator
- Type the chemical formula, such as H2O or C6H12O6.
- Use capital letters for the start of each element symbol, and a dot or · for hydrates.
- Read the molar mass in g/mol.
- Use the table to see the number of atoms and the mass percentage of each element.
How molar mass is calculated
- Molar mass = Σ (atomic mass of each element × number of atoms)
- H₂O = 2 × 1.008 + 1 × 15.999 = 18.015 g/mol
- Mass % of an element = (its total mass ÷ molar mass) × 100
Atomic masses are standard atomic weights, so results may differ in the last decimal place from other tables.
Molar mass examples
Water, H₂O, is 18.015 g/mol. Table salt, NaCl, is 22.990 + 35.45 = 58.44 g/mol.
Glucose, C₆H₁₂O₆, is 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol.
Calcium hydroxide, Ca(OH)₂, has two OH groups, so it is 40.078 + 2 × 17.007 = 74.092 g/mol.
Copper sulfate pentahydrate, CuSO₄·5H₂O, is 159.602 + 5 × 18.015 = 249.677 g/mol.
Writing formulas correctly
- Element symbols are case-sensitive. Co is cobalt, but CO is carbon monoxide.
- Use brackets for groups, and put the number after the closing bracket, as in Al2(SO4)3.
- For hydrates, write the dot or · followed by the number of water molecules, such as CuSO4·5H2O.
- Use subscripts as normal numbers. Write H2O, not H₂O.
Frequently asked questions
What is molar mass?
The mass of one mole (6.022 × 10²³ particles) of a substance, in grams per mole.
How do I calculate the molar mass of a compound?
Multiply the atomic mass of each element by the number of its atoms in the formula and add the results.
What is the molar mass of water?
18.015 g/mol, from two hydrogens (1.008 each) and one oxygen (15.999).
What is the difference between molar mass and molecular weight?
They have the same number. Molecular weight is relative and unitless, and molar mass is in g/mol.
Can I enter a hydrate or a formula with brackets?
Yes. The calculator handles (), [] and {} and a dot for water of hydration, such as CuSO4·5H2O.