Chemistry Zen
Stoichiometry

How to Calculate Moles: Molar Mass, Formulas and Worked Examples

Ivan TerekhinOctober 30, 202612 min read

Weigh 5.00 g of blue copper(II) sulfate crystals and work out how many moles you have. Divide by 159.61 g/mol and you get 0.0313 mol; divide by 249.69 g/mol and you get 0.0200 mol. Only the second is right. The blue crystals are CuSO₄·5H₂O, and the five water molecules in each formula unit count toward the molar mass.

Each formula in this guide is a single multiplication or division, so the care goes into the inputs. A table of the four mole formulas comes first, then molar mass, then a worked example for each formula.

What a mole counts

A mole is a fixed number of things. Since 20 May 2019 that number has been exactly 6.02214076 × 10²³, so the Avogadro constant, NAN_A, is exactly 6.02214076 × 10²³ mol⁻¹ (CGPM Resolution 1 of 2018, BIPM). Before then the mole was defined through carbon-12 and NAN_A had to be measured. Now the molar mass of carbon-12 is the measured quantity, and it is still 12 g/mol to better than one part in a billion. In calculations 6.022 × 10²³ mol⁻¹ is precise enough, and because the constant is exact, your measured data set the significant figures.

A mole always counts something specific. One mole of O₂ is 6.022 × 10²³ molecules but 1.204 × 10²⁴ oxygen atoms; one mole of CaCl₂ contains 1 mol of Ca²⁺ and 2 mol of Cl⁻ ions. Write the entity beside every amount: 0.25 mol O₂, not 0.25 mol.

The four mole formulas in one table

Four formulas cover the starting points you will meet most often. Find what the question gives you in the first column; the same row holds the formula, its units and the usual trap.

You are givenFormula, and rearrangedUnits that make it workTypical trap
A massn=m/Mn = m/M (and m=n×Mm = n \times M)mm in g, MM in g/molMass left in kg or mg; molar mass missing a bracket or the water of crystallisation
A number of particlesn=N/NAn = N/N_A (and N=n×NAN = n \times N_A)NN is a plain count; NAN_A = 6.022 × 10²³ mol⁻¹Counting molecules when the question asks for atoms or ions
A solutionn=c×Vn = c \times V (and c=n/Vc = n/V)cc in mol/L (mol dm⁻³), VV in L (dm³)Volume left in mL, so the answer comes out 1000 times too large
A gas volumen=V/Vmn = V/V_m (and V=n×VmV = n \times V_m)VV in L, VmV_m in L/mol at the stated temperature and pressureReaching for 22.4 L/mol when the stated conditions call for 22.7 or 24.0 L/mol

Before touching a calculator, put the units into the formula. They must cancel to mol, and g ÷ g/mol, mol/L × L, L ÷ L/mol and count ÷ mol⁻¹ all do. A leftover unit means an input is in the wrong form.

For concentration questions in more depth, including how much solid to weigh out and dilutions with c₁V₁ = c₂V₂, see molarity and dilution calculations.

How to calculate molar mass

Molar mass, MM, is the mass of one mole of a substance in grams per mole. Numerically it equals the formula mass, the sum of the atomic masses in the formula, which some courses call the relative formula mass, Mr, and write without units.

To find it, count the atoms of each element, multiply each count by its atomic mass from the periodic table, and add. A subscript counts the atom just before it. A subscript after a bracket multiplies everything inside, and the dot in a hydrate adds the water. The values used here are H = 1.008, C = 12.01, O = 16.00, Na = 22.99, S = 32.06, Cl = 35.45, Ca = 40.08 and Cu = 63.55. If your data sheet gives O = 16.0 or Cu = 63.5, use those and expect the last digit of an answer to shift.

Water, H₂O. 2 × 1.008 + 16.00 = 18.016, so M = 18.02 g/mol.

Calcium hydroxide, Ca(OH)₂. The 2 after the bracket doubles oxygen and hydrogen alike: 40.08 + 2 × (16.00 + 1.008) = 74.096, so M = 74.10 g/mol. Read it as CaOH₂ and you get 58.10 g/mol, one oxygen atom short.

Copper(II) sulfate pentahydrate, CuSO₄·5H₂O. The dot is not a multiplication sign. Each CuSO₄ unit in the crystal carries five water molecules, and their mass counts:

ElementAtoms per formula unitAtomic mass (g/mol)Contribution (g/mol)
Cu163.5563.55
S132.0632.06
O4 + 5 = 916.00144.00
H5 × 2 = 101.00810.08
Total249.69

As a cross-check, add the parts: CuSO₄ is 159.61 g/mol and the water is 5 × 18.016 = 90.08 g/mol, which again gives 249.69 g/mol. Keep molar masses to two decimal places; your measured data will almost always limit the answer before they do.

Moles from mass, and moles to grams

Once you have the molar mass, mass and amount convert in one step (mm in grams, MM in g/mol):

n=mMm=n×Mn = \frac{m}{M} \qquad m = n \times M

Example 1: grams to moles. How many moles are in 5.00 g of CuSO₄·5H₂O?

  1. Molar mass, from the table above: M = 249.69 g/mol.
  2. Divide: n = 5.00 g ÷ 249.69 g/mol = 0.020025 mol. Grams cancel, leaving mol.
  3. The mass has three significant figures, so n = 0.0200 mol. Both trailing zeros are significant.

The anhydrous molar mass gives 0.0313 mol instead, 56% too high, and every later step inherits the error.

Example 2: moles to grams. A procedure needs 0.0350 mol of calcium hydroxide. What mass do you weigh out?

  1. Molar mass, worked above: M = 74.10 g/mol.
  2. Multiply: m = 0.0350 mol × 74.10 g/mol = 2.5935 g.
  3. Three significant figures, from 0.0350: m = 2.59 g.

Mol cancels and grams remain, which confirms you multiplied rather than divided. The misread CaOH₂ would put 2.03 g on the balance, about a fifth too little.

Number of particles: using the Avogadro constant

To move between moles and a count of atoms, molecules or ions, use the Avogadro constant:

n=NNAN=n×NAn = \frac{N}{N_A} \qquad N = n \times N_A

Here NN is a plain number with no unit. When a question gives a mass, the path runs mass to moles to particles: two rows of the table in sequence.

Example 3: from a mass to a count. How many molecules are in 4.50 g of water, and how many atoms?

  1. Moles: n = 4.50 g ÷ 18.016 g/mol = 0.24978 mol. Keep the digits for now.
  2. Molecules: N = 0.24978 mol × 6.022 × 10²³ mol⁻¹ = 1.5042 × 10²³, so 1.50 × 10²³ molecules.
  3. Atoms: three per H₂O, so 3 × 1.5042 × 10²³ = 4.51 × 10²³ atoms, of which 2 × 1.5042 × 10²³ = 3.01 × 10²³ are hydrogen.

Sense check: a quarter of a mole of water holds half a mole of hydrogen atoms, and half of 6.022 × 10²³ is 3.01 × 10²³.

Example 4: from a count to a mass. A sample of carbon dioxide contains 1.20 × 10²⁴ molecules. What is its mass?

  1. Moles: n = 1.20 × 10²⁴ ÷ (6.022 × 10²³ mol⁻¹) = 1.993 mol, carried to four figures.
  2. Molar mass of CO₂: 12.01 + 2 × 16.00 = 44.01 g/mol.
  3. Mass: m = 1.993 mol × 44.01 g/mol = 87.71 g, so 87.7 g.

Moles in a solution: n = c × V

For acid-base questions, rearrange n = cV to c = n/V to find an ion concentration; the pH calculation guide shows the next logarithmic step.

A concentration in mol/L (also written mol dm⁻³, or M) is the amount of solute per litre of solution, so multiply it by the volume in litres:

n=c×Vn = c \times V

Burettes and pipettes read in millilitres or cm³, and 1 L = 1 dm³ = 1000 mL = 1000 cm³. Divide by 1000 before you multiply.

Example 5: a titration volume. A titration uses 25.0 mL of 0.150 mol/L sodium hydroxide. How many moles of NaOH is that, and what mass of solid would supply them?

  1. Convert the volume: 25.0 mL ÷ 1000 = 0.0250 L.
  2. Multiply: n = 0.150 mol/L × 0.0250 L = 3.75 × 10⁻³ mol.
  3. Molar mass of NaOH: 22.99 + 16.00 + 1.008 = 40.00 g/mol.
  4. Mass: m = 3.75 × 10⁻³ mol × 40.00 g/mol = 0.150 g.

Skip step 1 and you get 3.75 mol in 25 mL, while a whole litre of this solution holds only 0.150 mol. That answer fails on sight.

The titration calculation guide takes this NaOH amount one step further: it selects reliable burette readings and uses the balanced reaction to find an unknown concentration.

For ions, multiply by how many of that ion the formula unit contains. A 50.0 mL portion of 0.100 mol/L CaCl₂ holds 5.00 × 10⁻³ mol of CaCl₂, and so 1.00 × 10⁻² mol of Cl⁻.

Moles of a gas from its volume

At a fixed temperature and pressure, one mole of any gas that behaves ideally takes up the same volume, the molar volume VmV_m:

n=VVmn = \frac{V}{V_m}

The catch is that VmV_m depends on the conditions, and courses do not all use the same ones. Many textbooks still use the older STP of 0 °C and 1 atm, where a mole of ideal gas occupies about 22.4 L, although IUPAC moved standard pressure to 100 kPa in 1982 (OpenStax Chemistry 2e, section 9.2). Other courses work at room temperature and pressure: AQA's GCSE Chemistry specification sets RTP at 20 °C and 1 atm, with 24 dm³ per mole of gas. All three values follow from Vm=RT/pV_m = RT/p with R = 8.314 kPa L mol⁻¹ K⁻¹:

ConditionsTemperaturePressureVmV_m by calculationValue used in problems
STP, IUPAC definition0 °C (273.15 K)100 kPa22.71 L/mol22.7 L/mol
STP, older definition0 °C (273.15 K)101.325 kPa (1 atm)22.41 L/mol22.4 L/mol
RTP20 °C (293.15 K)101.325 kPa (1 atm)24.05 L/mol24.0 L/mol

At 25 °C and 1 atm the same equation gives 24.5 L/mol, so "room temperature" alone does not fix the number. Use the molar volume your question or data sheet states; if it gives only a temperature and a pressure, use pV=nRTpV = nRT. Molar volume is for gases only. A liquid's volume goes to mass through its density, and then to moles with n=m/Mn = m/M.

Example 6: a gas at stated conditions. What amount of CO₂ is in 3.60 L of the gas at 0 °C and 100 kPa?

  1. Conditions: 0 °C and 100 kPa is IUPAC STP, so VmV_m = 22.7 L/mol.
  2. Divide: n = 3.60 L ÷ 22.7 L/mol = 0.15859 mol.
  3. Three significant figures: n = 0.159 mol.

The same 3.60 L gives 0.161 mol at the older STP and 0.150 mol at RTP. That 7% spread reaches the second significant figure, so the molar volume is not a detail to guess.

Common mistakes in mole calculations

  • Grams versus kilograms. n=m/Mn = m/M needs grams: 0.500 kg of NaCl is 500 g, so n = 500 ÷ 58.44 = 8.56 mol; dividing 0.500 by 58.44 gives 0.00856 mol, a thousand times too small. Milligrams go the other way: 250 mg is 0.250 g.
  • Millilitres in a litre formula. n=c×Vn = c \times V needs litres: divide mL or cm³ by 1000 first, as in Example 5.
  • Brackets and water of crystallisation left out of the molar mass. Ca(OH)₂ is 74.10 g/mol, not 58.10; CuSO₄·5H₂O is 249.69 g/mol, not 159.61. After counting atoms, read the formula once more.
  • Rounding too early. In Example 4, rounding the amount to 1.99 mol before multiplying gives 1.99 × 44.01 = 87.6 g, not 87.7 g. Carry an extra digit (or the full calculator value) through each step, and round once at the end to the fewest significant figures in the data.
  • Counting the wrong entity. One mole of H₂O holds three moles of atoms; one mole of CaCl₂ holds three moles of ions.

From moles to reactions

A balanced equation is read in moles: its coefficients are mole ratios, not mass ratios. A reaction calculation converts what you are given into moles, applies the ratio and converts back. The guide to balancing chemical equations gets the coefficients right, and how to find the limiting reactant uses these same conversions to work out which reactant runs out first.

For practice with fresh numbers, the first topic in Chemistry Zen, Atoms and moles, is free end to end. Questions take numerical answers with units, a periodic table opens during topic practice, and each problem has hints, a theory card and a worked solution beside it. There is also a mistake journal to come back to. Whatever the question, find its row in the table and keep a unit beside every number until the last line.

For a different kind of particle count, electron configuration practice problems ask you to count electrons in atoms and ions, then check which subshell each occupies.

Common questions

What is the formula for calculating moles?
It depends on what the question gives you. From a mass, n = m / M, with m in grams and M in g/mol. From a number of particles, n = N ÷ (6.022 × 10²³); from a solution, n = c × V with V in litres; from a gas, n = V ÷ Vm, using the molar volume for the stated conditions.
How do you calculate molar mass?
Add the atomic masses of every atom in the formula, multiplying each by its subscript and by any number after a bracket. For Ca(OH)₂ that is 40.08 + 2 × (16.00 + 1.008) = 74.10 g/mol. A hydrate includes its water: CuSO₄·5H₂O is 249.69 g/mol, not the 159.61 g/mol of CuSO₄ alone.
How do you convert moles to grams?
Multiply the amount by the molar mass: m = n × M. For 0.0350 mol of Ca(OH)₂, m = 0.0350 mol × 74.10 g/mol = 2.59 g. To go from grams to moles, divide by the molar mass instead.
How do you find the number of particles from moles?
Multiply the amount by the Avogadro constant, which has been exactly 6.02214076 × 10²³ per mole since 2019. Half a mole of water is 0.500 × 6.022 × 10²³ = 3.01 × 10²³ molecules. Each H₂O molecule has three atoms, so the same sample holds 9.03 × 10²³ atoms.

Edited by Ivan Terekhin, drafted with AI tools.

Start with Atoms and moles, free

Balance your first equation in under a minute. No account needed.

Google Play

The iPhone version is in App Store review and coming soon.