Molar Mass Calculator
Type a chemical formula and get its molar mass with a full element-by-element breakdown. Add grams or moles to convert, and volume to get molarity.
Molar mass of a compound
Fill grams or moles to convert between them. Add volume to get molarity (mol/L). Capital letters matter: Co is cobalt, CO is carbon monoxide.
How to calculate molar mass
Molar mass is the mass of one mole of a substance, in g/mol. Add the atomic masses of every atom in the formula: Molar mass = Σ (number of atoms × atomic mass).
Worked example: glucose, C6H12O6
Carbon: 6 × 12.011 = 72.066. Hydrogen: 12 × 1.008 = 12.096. Oxygen: 6 × 15.999 = 95.994. Total = 72.066 + 12.096 + 95.994 = 180.156 g/mol.
Formulas with brackets and hydrates
For Ca(OH)2 the 2 outside the bracket multiplies everything inside: 1 Ca, 2 O, 2 H, giving 40.078 + 2 × 15.999 + 2 × 1.008 = 74.092 g/mol. For a hydrate such as CuSO4·5H2O, type it as CuSO4.5H2O and the water is added 5 times: 159.602 + 5 × 18.015 = 249.677 g/mol.
Moles, grams and particles
Moles = mass ÷ molar mass. Number of particles = moles × 6.022 × 1023 (Avogadro's number). Molarity = moles ÷ volume in litres.
About the atomic masses
Calvo uses standard atomic weights rounded to 3 to 5 significant figures, as printed in most textbooks. Your textbook or exam may round differently (for example Cl = 35.5, or Cu = 63.5), so a last-digit difference is normal. Follow the values given in your paper.
Percent composition worked example
Water, H₂O, has a molar mass of 18.015 g/mol. Hydrogen contributes 2 × 1.008 = 2.016, so it is 2.016 ÷ 18.015 × 100 = 11.19% of the mass. Oxygen contributes 15.999 ÷ 18.015 × 100 = 88.81%. The percentages add up to 100%, which is a quick check.
Finding an empirical formula
A compound is 40.0% carbon, 6.7% hydrogen and 53.3% oxygen by mass. Treat 100 g of it: that is 40.0 g C, 6.7 g H and 53.3 g O. Convert to moles: C = 40.0 ÷ 12.011 ≈ 3.33, H = 6.7 ÷ 1.008 ≈ 6.65, O = 53.3 ÷ 15.999 ≈ 3.33. Divide by the smallest (3.33) to get the ratio 1 : 2 : 1, so the empirical formula is CH₂O. Glucose, C₆H₁₂O₆, has the same ratio, which is why it shares this empirical formula but has a larger molecular formula.
Molarity from a mass
If you dissolve 5.85 g of NaCl (molar mass 58.44 g/mol) in enough water to make 500 mL of solution, the amount is 5.85 ÷ 58.44 ≈ 0.100 mol. The molarity is 0.100 mol ÷ 0.500 L = 0.200 mol/L. Remember to convert millilitres to litres first.
Entering formulas correctly
- Capital letters matter: Co is cobalt, but CO is carbon monoxide.
- Brackets multiply everything inside: in Al₂(SO₄)₃ there are 2 Al, 3 S and 12 O.
- Hydrates: type CuSO4.5H2O and the water is counted five times.
- Do not confuse atomic number with atomic mass. Use mass in g/mol, not the number of protons.
Units
Molar mass in g/mol is numerically the same as the formula mass in atomic mass units (u). Water is 18.015 g/mol, and one molecule has a mass of 18.015 u. Use g/mol for mole calculations and u when you talk about single atoms or molecules.
FAQ
How do I find the molar mass of a compound?
Add up the atomic masses of all atoms in the formula. For H2O it is 2 x 1.008 + 15.999 = 18.015 g/mol.
What is the molar mass of water?
18.015 g/mol, usually rounded to 18 in school problems.
What is the molar mass of NaCl?
58.44 g/mol (Na 22.990 + Cl 35.45).
How do I handle brackets like Ca(OH)2?
The number after the bracket multiplies every atom inside it. Ca(OH)2 has 1 Ca, 2 O and 2 H.
How do I type a hydrate such as CuSO4·5H2O?
Type CuSO4.5H2O with a full stop. The number before H2O is applied to the water part.
How many particles are in one mole?
6.022 x 10^23, which is Avogadro's number. Calvo shows the particle count when you enter grams or moles.
Why is my textbook answer slightly different?
Books round atomic masses differently, for example Cl = 35.5. Use the values your syllabus gives.
Does it work offline?
Yes. The calculation runs in your browser and the page is cached after your first visit.
Why does my answer differ slightly from my textbook?
Books round atomic masses differently, for example using 12 for carbon and 1 for hydrogen. Use the values your teacher or exam expects, and expect small differences in later digits.
What is the difference between molar mass and molecular mass?
Molecular mass is the mass of one molecule in u. Molar mass is the mass of one mole in g/mol. They have the same number but different units.