The formula
Molar mass = Σ (number of atoms of each element × its standard atomic weight)
Brackets multiply everything inside: Ca(OH)₂ = Ca + 2 × (O + H)
Hydrates add the water: CuSO₄·5H₂O = CuSO₄ + 5 × H₂O
Mass % of an element = (atoms × atomic weight) ÷ molar mass × 100
Moles = mass ÷ molar mass; molecules = moles × 6.02214076 × 10²³
Worked example
- Copper(II) sulfate pentahydrate, CuSO₄·5H₂O:
- Cu 63.546 + S 32.06 + O 9 × 15.999 + H 10 × 1.008 = 63.546 + 32.06 + 143.991 + 10.08 = 249.68 g/mol.
- Copper makes up 63.546 ÷ 249.68 = 25.45% of the mass, and water 36.08%.
- 10 g of the crystals is 0.0401 mol.
What molar mass is
The molar mass of a substance is the mass of one mole of it, in grams per mole. One mole contains Avogadro's number of particles, 6.022 × 10²³, chosen so that the molar mass in grams is numerically equal to the average mass of one molecule or formula unit in atomic mass units (daltons). Water's molar mass is 18.015 g/mol, so 18 g of water contains about 6 × 10²³ molecules. Molar mass is the bridge between the mass you weigh on a balance and the number of particles that take part in a reaction.
How to enter formulas
Type the formula with element symbols and numbers, for example H2O, C6H12O6 or NaHCO3. Capital letters matter: an element symbol is one capital letter optionally followed by a lowercase letter, so Co is cobalt but CO is carbon monoxide. Use brackets for groups, as in Ca(OH)2 or Al2(SO4)3, and nested brackets also work, as in K4[Fe(CN)6]. For hydrates, separate the water with a dot or · and put the number of water molecules in front: CuSO4·5H2O or MgSO4.7H2O. Subscript digits pasted from documents are also accepted.
Atomic weights
The calculator uses the IUPAC conventional standard atomic weights, which are averages over the natural mix of isotopes found on Earth. That's why chlorine is 35.45 rather than a whole number: natural chlorine is about 76% chlorine-35 and 24% chlorine-37. For elements with no stable isotopes, such as technetium and plutonium, the mass number of the most stable or best-known isotope is used. For most lab work, molar masses to two decimal places are more than accurate enough.
Percentage composition and empirical formulas
The percentage composition shows how much of a compound's mass comes from each element. It's used to check the purity of a product, calculate how much of a nutrient a fertiliser provides (urea, CO(NH₂)₂, is 46.6% nitrogen) and work out formulas from experimental analysis. The empirical formula is the simplest whole-number ratio of atoms: glucose, C₆H₁₂O₆, has the empirical formula CH₂O. Many different compounds can share an empirical formula, so the molecular formula needs the molar mass as well.
From grams to moles and molecules
Enter a sample mass to see how many moles and formula units it contains. Moles are the mass divided by the molar mass, and the number of particles is moles times Avogadro's number. This is the first step in almost every stoichiometry problem: converting grams of reactants into moles, using the balanced equation's mole ratios, and converting back to grams of product. To make a solution of a given concentration from a solid, take the molar mass into our molarity calculator.
Common molar masses
Useful values to remember: water 18.02 g/mol, carbon dioxide 44.01, sodium chloride 58.44, glucose 180.16, ethanol 46.07, sulfuric acid 98.08, calcium carbonate 100.09 and ammonia 17.03 g/mol. Air behaves like a gas with an average molar mass of about 28.97 g/mol.
Molar mass of biomolecules
For proteins and nucleic acids, molar mass is usually expressed in daltons or kilodaltons and calculated from the sequence rather than an atomic formula. An average amino acid residue is about 110 Da, and a DNA base pair about 618 Da. Our DNA concentration calculator uses these figures to convert ng/µL into molar concentration and copy number. For gas calculations, molar mass relates density to pressure and temperature through the ideal gas law.