How to use the Molar Mass Calculator
- Type the formula with correct capitals, such as H2SO4, Ca(OH)2 or CuSO4·5H2O, or tap one of the examples.
- Read the molar mass in g/mol. The table shows each element’s count, atomic mass, subtotal and mass %, and the working line shows the full sum.
- To convert, enter an amount and pick its unit (grams, moles or particles). Mass, moles, particles and total atoms all update together.
- For an empirical formula, enter each element with its mass % (or mass in grams). Add the compound’s molar mass to get the molecular formula too.
What is molar mass?
The molar mass (M) of a substance is the mass of one mole of it, in grams per mole (g/mol). One mole is exactly 6.02214076 × 1023 particles (the Avogadro constant, NA, fixed exactly in the 2019 SI redefinition). Numerically, the molar mass in g/mol equals the relative molecular mass Mr, which has no unit. NCERT Class 11 calls the same idea the molecular mass for molecules and the formula mass for ionic compounds like NaCl, which have no discrete molecules.
This calculator uses the IUPAC 2021 standard atomic weights (abridged values, the same data as our periodic table). For example, H = 1.0080, C = 12.011, O = 15.999, Na = 22.990, S = 32.06 and Cl = 35.45. Your textbook may round these (H = 1, C = 12, O = 16, Cl = 35.5), so answers can differ in the first or second decimal place. Both are correct for their data; use whatever values your exam paper gives.
Worked example: copper sulphate pentahydrate
CuSO4·5H2O contains 1 Cu, 1 S, 4 + 5 = 9 O and 10 H atoms. The water of crystallisation counts towards the molar mass.
The mass % of each element is its subtotal divided by M, times 100. Copper is 63.546 ÷ 249.677 × 100 = 25.45 %. The water makes up 5 × 18.015 ÷ 249.677 = 36.08 % of the crystal, which is why blue vitriol loses over a third of its mass when it is heated to white anhydrous CuSO4.
Converting grams, moles and particles
The mole concept links three quantities. Learn these two equations and you can solve almost every Class 9 and Class 11 mole problem:
Example: 25 g of CuSO4·5H2O is 25 ÷ 249.677 = 0.1001 mol, which is 6.03 × 1022 formula units. Each unit has 21 atoms, so the sample has about 1.27 × 1024 atoms. The mass of a single formula unit is M ÷ NA = 4.146 × 10−22 g.
| You know | You want | Do this |
|---|---|---|
| Mass (g) | Moles | Divide by M |
| Moles | Mass (g) | Multiply by M |
| Moles | Particles | Multiply by 6.022 × 1023 |
| Particles | Mass (g) | Divide by NA, then multiply by M |
| Molecules | Atoms | Multiply by atoms per molecule |
Empirical and molecular formula from mass %
The empirical formula is the simplest whole-number ratio of atoms. The method from NCERT Class 11 (Some Basic Concepts of Chemistry) is:
- Assume 100 g of compound, so each mass % becomes grams.
- Divide each mass by the atomic mass to get moles.
- Divide every mole value by the smallest one.
- If a ratio ends in about .5, .33 or .25, multiply all ratios by 2, 3 or 4 to make whole numbers.
- For the molecular formula, n = molar mass ÷ empirical formula mass, then multiply every subscript by n.
Example: a compound with 40.0 % C, 6.7 % H and 53.3 % O gives 3.330 : 6.647 : 3.331 mol, which is 1 : 2.00 : 1.00, so the empirical formula is CH2O (30.026 g/mol). If its molar mass is 180 g/mol, then n = 180 ÷ 30.026 ≈ 6 and the molecular formula is C6H12O6 (glucose).
Common mistakes
- Forgetting the bracket multiplier. In Ca(OH)2, the 2 applies to both O and H, giving 2 O and 2 H.
- Ignoring water of crystallisation. Hydrated and anhydrous salts have different molar masses. Weigh out the form you actually have.
- Wrong capitals. CO is carbon monoxide (28.010 g/mol); Co is cobalt (58.933 g/mol).
- Using diatomic elements wrongly. One mole of oxygen gas (O2) is 31.998 g, but one mole of oxygen atoms is 15.999 g. Read the question carefully.
- Rounding too early. Keep at least four significant figures until the last step; see the significant figures calculator.
Exam tips for CBSE, NEET and JEE
- Use the atomic masses printed in the question paper. If none are given, the common CBSE values (H 1, C 12, N 14, O 16, Na 23, S 32, Cl 35.5) are expected.
- For stoichiometry, balance the equation first with the chemical equation balancer, then convert every quantity to moles.
- To make solutions of a given concentration, take the molar mass to the molarity calculator.
- Charge does not change molar mass in practice. An electron weighs about 0.00055 g/mol, far below the uncertainty of the atomic weights.
Frequently asked questions
How do you calculate molar mass?
What is the difference between molar mass and molecular mass?
Why is my answer slightly different from my textbook?
How do I enter a hydrate such as CuSO4·5H2O?
How many particles are in one mole?
Does the charge of an ion change its molar mass?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.