Molar mass is the bridge between the atomic scale and the laboratory scale. It tells you the mass of exactly one mole of any substance — the same quantity that appears in every stoichiometry equation in chemistry. Whether you are titrating an acid, synthesising a drug, or calculating a reaction yield, converting between grams and moles is the first and most critical step.
How to calculate molar mass
To find the molar mass of a compound, sum the atomic masses of every atom in its formula. For water (H₂O): 2 × 1.008 (H) + 1 × 15.999 (O) = 18.015 g/mol. For glucose (C₆H₁₂O₆): 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol. The atomic masses used are the IUPAC 2021 standard atomic weights — weighted averages over the natural isotopic abundances of each element.
This calculator handles parentheses automatically. Al₂(SO₄)₃ expands to Al₂S₃O₁₂: 2 aluminium + 3 sulfur + 12 oxygen atoms, giving a molar mass of 342.154 g/mol. The same method works for any organic or inorganic formula you can write.
Moles, mass, and Avogadro's constant
The mole is the SI unit for amount of substance. One mole of any substance contains exactly 6.02214076 × 10²³ particles — a number called Avogadro's constant. This value has been exact since the 2019 redefinition of the SI base units.
The relationship between mass, moles, and molar mass is simply n = m / M. If you have 36.03 g of water (M = 18.015 g/mol), you have 2.000 moles, which contains 1.204 × 10²⁴ molecules. Rearranging: m = n × M, so 3 moles of NaCl weighs 3 × 58.44 = 175.32 g.
Percent composition and empirical formulas
Percent composition tells you what fraction of a compound's mass comes from each element. For NaCl: sodium contributes 22.990 / 58.44 × 100 = 39.34%, chlorine 60.66%. These percentages always sum to 100% and are independent of the sample size.
Percent composition is how chemists determine empirical formulas from experimental data: burn a compound, measure how much CO₂ and H₂O form, calculate the mass of each element, convert to moles, and find the simplest whole-number ratio. The molar mass of the empirical formula unit is the smallest repeat unit; the molecular formula scales it to match the true molar mass measured by mass spectrometry.
Common uses in chemistry
Molar mass appears in virtually every quantitative chemistry problem. In stoichiometry, balanced equations relate moles of reactants and products — converting measured gram quantities to moles is the first step. In solution chemistry, molarity (mol/L) requires knowing the molar mass to dissolve the right number of grams. In gas law problems, the ideal gas law PV = nRT uses moles. Pharmacology uses molar mass to relate drug concentrations between mass-based (mg/mL) and molar (μM, nM) units. Polymer science uses it to characterise repeat unit size.