Skip to content
LumenaryAcademy
Foundations 60 min

The mole and stoichiometry

Counting atoms by weighing them, and using balanced equations as recipes, with a formula parser and a linear-algebra balancer in Python.

Code tested · 6AI-draftedAwaiting review by a chemist

Your guides: Chloe · The Chemist, Margaret · The Analyst, Gideon · The Sceptic

MotivationH

Counting things too small to see

A pharmacist preparing a medicine, an engineer feeding a fertiliser plant and a cook following a recipe all need the same thing: the right proportions. For chemists the proportions are counts of atoms and molecules. Carbon dioxide is one carbon atom for every two oxygen atoms; burning methane takes two oxygen molecules for every methane molecule. Get the counts wrong and you waste material, make an unwanted by-product, or end up with a dangerous excess of one reagent.

But atoms cannot be counted one by one. A single grain of table salt, a cube about 0.3 mm on a side, has a mass of about 0.06 mg and contains roughly 101810^{18} ions. Chemists therefore count by weighing, the way a bank counts coins by weighing bags of them. This lesson is about the unit that makes that work, the mole, and about stoichiometry (from the Greek stoicheion, element, and metron, measure): the arithmetic of amounts in chemical reactions.

In Chemical reactions you balanced equations by counting atoms on each side. Here we turn that counting into quantities you can weigh, and finally into a small problem of linear algebra that a computer solves in a line.

IntuitionH

The chemist's dozen

A baker buys eggs by the dozen and a printer buys paper by the ream (500 sheets). A mole is the chemist's dozen: a fixed, very large number of things. The number was chosen for convenience: it is the number that makes the mass of one mole of a substance, in grams, equal to the mass of one of its molecules in daltons (atomic mass units). A carbon-12 atom has a mass of exactly 12 Da, a water molecule about 18.02 Da, so a mole of carbon-12 atoms has a mass of 12 g and a mole of water molecules 18.02 g.

This is why the mole is so useful. The periodic table gives relative masses of atoms; add them up for a formula and you have the mass, in grams, of one mole of that substance. Weigh out that mass, and you have counted out a known number of molecules without seeing a single one.

Analogy, not a formal construction

Imagine a hardware shop that sells bolts by weight. If one bolt has a mass of 12 g and one nut 8 g, then 1.2 kg of bolts and 0.8 kg of nuts contain the same number of pieces, a hundred of each, enough to pair every bolt with a nut. Chemists pair atoms the same way. The analogy is only about counting: real atoms of one element are not all identical in mass, because of isotopes, which is why atomic weights are averages.

DefinitionsH

Definitions

Definition— Avogadro constant and the mole

Since 20 May 2019, the Avogadro constant is defined to be exactly

NA=6.022 140 76×1023 mol−1.N_\text{A} = 6.022\,140\,76 \times 10^{23}\ \text{mol}^{-1}.

One mole (symbol mol) of any kind of elementary entity (atoms, molecules, ions, electrons, formula units) contains exactly 6.022 140 76×10236.022\,140\,76 \times 10^{23} of them. The amount of substance nn of a sample with NN entities is n=N/NAn = N / N_\text{A}.

Definition— dalton, relative atomic mass and standard atomic weight

The dalton (Da), or unified atomic mass unit, is 112\tfrac{1}{12} of the mass of a carbon-12 atom, about 1.660 54×10−271.660\,54 \times 10^{-27} kg. The relative atomic mass of an atom is its mass divided by 1 Da, a pure number. An element's standard atomic weight is the average relative atomic mass of its atoms in normal terrestrial samples, weighted by isotopic abundance (chlorine: 35.45, because it is about three-quarters ³⁵Cl and one-quarter ³⁷Cl).

Definition— molar mass

The molar mass of a substance is its mass per amount, M=m/nM = m / n, usually in g/mol. Numerically, it equals the sum of the standard atomic weights in its formula: M(H2O)=2(1.008)+15.999=18.015M(\text{H}_2\text{O}) = 2(1.008) + 15.999 = 18.015 g/mol.

Definition— limiting reagent and yields

In a reaction mixture, the limiting reagent is the reactant that would be used up first, given the proportions in the balanced equation; the others are in excess. The theoretical yield is the amount of product the limiting reagent could give if it reacted completely as written; the percentage yield is 100×100 \times actual yield / theoretical yield.

Definition— empirical and molecular formula

The empirical formula gives the simplest whole-number ratio of atoms in a compound (glucose: CH₂O). The molecular formula gives the actual number of each atom in one molecule (glucose: C₆H₁₂O₆), always a whole-number multiple of the empirical formula.

amount, nunit: molmass, mgentities, Nparticlesvolume of gas, Vn = pV / RTvolume of solution, Vn = cV÷ M× M× NA÷ NANA= 6.022 140 76 × 10²³ mol⁻¹ (exact)M = molar mass in g/mol, numerically the relative formula mass
The amount of substance n is the hub of chemical arithmetic. Mass, number of particles, gas volume and solution volume each convert to and from moles; to get from one to another, go through the hub. Gases are the subject of the next lesson, and solutions of the one after.
ComputationC

From formulas to grams

Converting between mass, amount and number is a matter of following the map above.

Example— How many molecules in a glass of water?

A glass holds 250 g of water. Its amount is n=m/M=250 g / 18.015 g mol−1=13.88n = m / M = 250\ \text{g} \,/\, 18.015\ \text{g mol}^{-1} = 13.88 mol, and the number of molecules is N=nNA=13.88×6.022×1023=8.36×1024N = n N_\text{A} = 13.88 \times 6.022 \times 10^{23} = 8.36 \times 10^{24}. Counting them at a million per second would take about 2.6×10112.6 \times 10^{11} years, some twenty times the age of the universe.

Molar masses come from formulas, and formulas can be awkward: brackets multiply everything inside them, and a hydrate such as copper(II) sulfate pentahydrate, CuSO₄·5H₂O, has five water molecules built into its crystal for each formula unit. Here is a short parser that reads a formula, counts its atoms, and adds up the standard atomic weights. It handles nested brackets with a stack: an opening bracket starts a new count, and a closing bracket multiplies that count and adds it to the one below.

python
import re
from collections import Counter

# IUPAC abridged standard atomic weights (CIAAW), dimensionless; multiply by 1 g/mol
ATOMIC_WEIGHT = {"H": 1.008, "C": 12.011, "N": 14.007, "O": 15.999, "Na": 22.990, "Mg": 24.305,
                 "Al": 26.982, "P": 30.974, "S": 32.06, "Cl": 35.45, "K": 39.098, "Ca": 40.078,
                 "Fe": 55.845, "Cu": 63.546, "Zn": 65.38}

TOKEN = re.compile(r"([A-Z][a-z]?|\(|\)|\d+)")

def parse(formula):
    """Count the atoms in a formula such as 'Ca3(PO4)2' or 'CuSO4·5H2O'."""
    total = Counter()
    for part in re.split(r"[·.]", formula):             # a hydrate: CuSO4·5H2O
        m = re.match(r"(\d*)(.*)", part)
        times = int(m.group(1) or 1)
        stack = [Counter()]
        tokens = TOKEN.findall(m.group(2))
        if "".join(tokens) != m.group(2):
            raise ValueError(f"cannot read {part!r}")
        for i, tok in enumerate(tokens):
            nxt = tokens[i + 1] if i + 1 < len(tokens) else ""
            count = int(nxt) if nxt.isdigit() else 1
            if tok == "(":
                stack.append(Counter())
            elif tok == ")":
                group = stack.pop()
                for el in group:
                    stack[-1][el] += group[el] * count
            elif not tok.isdigit():
                stack[-1][tok] += count
        if len(stack) != 1:
            raise ValueError(f"unbalanced brackets in {part!r}")
        for el, n in stack[0].items():
            total[el] += n * times
    return total

def molar_mass(formula):
    return sum(ATOMIC_WEIGHT[el] * n for el, n in parse(formula).items())

for name, f in [("water", "H2O"), ("glucose", "C6H12O6"), ("calcium carbonate (limestone)", "CaCO3"),
                ("hydroxyapatite (tooth enamel)", "Ca5(PO4)3OH"), ("ammonium sulfate", "(NH4)2SO4"),
                ("copper(II) sulfate pentahydrate", "CuSO4·5H2O"), ("caffeine", "C8H10N4O2")]:
    atoms = parse(f)
    print(f"{f:12} {molar_mass(f):8.2f} g/mol   {dict(atoms)}   {name}")

# Mass percentages: how much of copper sulfate pentahydrate is water?
water = 5 * molar_mass("H2O") / molar_mass("CuSO4·5H2O")
print(f"\nwater in CuSO4·5H2O: {100 * water:.1f}% by mass")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

The last line shows that 36.1% of the mass of blue copper sulfate crystals is water. Heating them in a laboratory drives the water off and leaves a white powder that weighs correspondingly less, one of the classic ways of checking a formula by weighing.

Worked examplesH

Stoichiometry: equations as recipes

A balanced equation is a statement about numbers of particles, and therefore about moles:

CH4+2 O2⟶CO2+2 H2O\text{CH}_4 + 2\,\text{O}_2 \longrightarrow \text{CO}_2 + 2\,\text{H}_2\text{O}

says that one mole of methane reacts with two moles of oxygen to give one mole of carbon dioxide and two of water. It does not say that 1 g of methane needs 2 g of oxygen: to convert to masses, go through moles. 16.04 g of methane (1 mol) needs 64.00 g of oxygen (2 mol). Every stoichiometry problem has the same three steps: grams to moles, moles to moles by the equation, moles to grams.

When two reactants are mixed in arbitrary amounts, one of them runs out first. To find it, divide each reactant's amount by its coefficient in the equation; the smallest result (the extent of reaction it allows) wins, and it fixes how much product can form.

Example— Baking soda and vinegar, and a fertiliser plant

In the kitchen. Sodium hydrogencarbonate (baking soda) reacts with the ethanoic (acetic) acid in vinegar: NaHCO₃ + CH₃COOH → CH₃COONa + H₂O + CO₂. Take 5.0 g of baking soda and 100 mL of vinegar, which contains about 5.0 g of ethanoic acid. Equal masses, but the molar masses differ (84.01 and 60.05 g/mol), so the amounts do not: 0.0595 mol of NaHCO₃ against 0.0833 mol of acid. The coefficients are both 1, so baking soda is limiting.

In industry. Urea, CO(NH₂)₂, the world's most widely used nitrogen fertiliser, is made from ammonia and carbon dioxide: 2 NH₃ + CO₂ → CO(NH₂)₂ + H₂O. With one tonne of each, ammonia (58.7 kmol, needing 29.4 kmol of CO₂) is in excess and carbon dioxide (22.7 kmol) is limiting.

python
# Molar masses in g/mol, from IUPAC standard atomic weights
M = {"NaHCO3": 84.006, "CH3COOH": 60.052, "CO2": 44.009, "NH3": 17.031, "CO(NH2)2": 60.056}
VM = 24.06   # L/mol: molar volume of an ideal gas at 20 °C and 101.325 kPa

def limiting(available_g, coefficients):
    """Which reactant runs out first? Returns its name and the 'reaction extent' in mol."""
    extent = {s: available_g[s] / M[s] / coefficients[s] for s in available_g}
    first = min(extent, key=extent.get)
    return first, extent[first]

# 1. In the kitchen: NaHCO3 + CH3COOH -> CH3COONa + H2O + CO2
#    5.0 g of baking soda; 100 mL of vinegar holding about 5.0 g of acetic acid
lim, xi = limiting({"NaHCO3": 5.0, "CH3COOH": 5.0}, {"NaHCO3": 1, "CH3COOH": 1})
print(f"kitchen: limiting reagent {lim}; CO2 formed {xi:.4f} mol = {xi * M['CO2']:.2f} g"
      f" = {xi * VM:.2f} L at 20 °C")
left = 5.0 - xi * M["CH3COOH"]
print(f"         acetic acid left over: {left:.2f} g")

# 2. In a fertiliser plant: 2 NH3 + CO2 -> CO(NH2)2 + H2O   (urea)
feed = {"NH3": 1000.0, "CO2": 1000.0}                       # kg of each, so results are in kg
lim, xi = limiting(feed, {"NH3": 2, "CO2": 1})
theory = xi * M["CO(NH2)2"]
print(f"\nurea:    limiting reagent {lim}; theoretical yield {theory:.0f} kg of urea")
actual = 1250.0
print(f"         {actual:.0f} kg obtained -> percentage yield {100 * actual / theory:.1f}%")

# Atom economy: the share of the reactants' mass that ends up in the product we want
economy = M["CO(NH2)2"] / (2 * M["NH3"] + M["CO2"])
print(f"         atom economy of the urea reaction: {100 * economy:.1f}% (the rest leaves as water)")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Five grams of baking soda can release at most 2.62 g of carbon dioxide, about 1.4 litres of gas at room temperature, which is why the mixture foams so dramatically. The urea plant's theoretical yield is 1365 kg; obtaining 1250 kg is a percentage yield of 91.6%.

Yields below 100% are normal: reactions may not go to completion (Chemical equilibrium explains why), side reactions make other products, and some product is lost when it is separated and purified. Atom economy asks a different question: even at 100% yield, what share of the reactants' atoms end up in the product you want? For urea it is 76.9%, the rest leaving as water, a harmless by-product. In pharmaceutical manufacturing atom economies are often far lower, which is one starting point of Catalysis and green chemistry.

ComputationC

Empirical and molecular formulas

How do chemists find the formula of a new compound? Historically, and still routinely, by elemental analysis: measure what fraction of its mass is each element, convert those masses to moles, and find the smallest whole-number ratio.

For compounds of carbon, hydrogen and oxygen the classic method is combustion analysis. A weighed sample is burned completely in a stream of oxygen. Every carbon atom ends up in CO₂ and every hydrogen atom in H₂O; the two gases are trapped in separate absorbers that are weighed before and after. Oxygen is found by difference.

O₂ infurnacesample in a boatabsorbs H₂Oweighed beforeand afterabsorbs CO₂weighed beforeand afterout
Combustion analysis, in the form Justus von Liebig made standard in the 1830s. Modern automatic CHN analysers work on the same principle, measuring the gases with detectors instead of weighing absorbers, and need only a few milligrams of sample.

The program below finds an empirical formula from percentages (vitamin C) and from combustion data (an unknown), then uses a molar mass, measured separately, to get the molecular formula. The key step divides every amount by the smallest, then tries multipliers 1, 2, 3, … until every number is within 0.05 of a whole number.

python
import numpy as np

AW = {"C": 12.011, "H": 1.008, "N": 14.007, "O": 15.999}

def empirical(moles, max_multiplier=10, tol=0.05):
    """Smallest whole-number ratio for a dict of amounts (any common scale)."""
    els = list(moles)
    ratio = np.array([moles[e] for e in els]) / min(moles.values())
    for k in range(1, max_multiplier + 1):
        scaled = ratio * k
        if np.all(np.abs(scaled - np.round(scaled)) < tol):
            return {e: int(round(x)) for e, x in zip(els, scaled)}
    raise ValueError(f"no small whole-number ratio for {ratio}")

def show(formula):
    return "".join(f"{e}{n if n > 1 else ''}" for e, n in formula.items())

def mass_of(formula):
    return sum(AW[e] * n for e, n in formula.items())

# 1. From mass percentages: vitamin C (ascorbic acid) is 40.92% C, 4.58% H, 54.50% O
pct = {"C": 40.92, "H": 4.58, "O": 54.50}
emp = empirical({e: pct[e] / AW[e] for e in pct})       # per 100 g of compound
k = round(176.12 / mass_of(emp))                         # molar mass from mass spectrometry
print(f"vitamin C: empirical {show(emp)} ({mass_of(emp):.2f} g/mol), "
      f"molecular {show({e: n * k for e, n in emp.items()})}")

# 2. From combustion analysis: 0.4500 g of a compound of C, H and O burns to
#    0.6596 g of CO2 and 0.2700 g of H2O.
sample, m_co2, m_h2o = 0.4500, 0.6596, 0.2700
n_c = m_co2 / (AW["C"] + 2 * AW["O"])                   # every C ends up in CO2
n_h = 2 * m_h2o / (2 * AW["H"] + AW["O"])               # every H ends up in H2O
m_o = sample - n_c * AW["C"] - n_h * AW["H"]             # oxygen by difference
amounts = {"C": n_c, "H": n_h, "O": m_o / AW["O"]}
print("amounts / mmol:", {e: round(1000 * n, 3) for e, n in amounts.items()})
emp = empirical(amounts)
print(f"unknown:   empirical {show(emp)} ({mass_of(emp):.2f} g/mol)")
for M in (30.03, 90.08, 180.16):
    k = round(M / mass_of(emp))
    print(f"   if the molar mass is {M:6.2f} g/mol: {show({e: n * k for e, n in emp.items()})}")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Vitamin C's percentages give the empirical formula C₃H₄O₃, and its molar mass of 176.12 g/mol doubles it to C₆H₈O₆. The unknown has the empirical formula CH₂O, and here the method's limitation shows: methanal (CH₂O, 30.03 g/mol), lactic acid (C₃H₆O₃, 90.08 g/mol) and glucose (C₆H₁₂O₆, 180.16 g/mol) all have exactly this composition. Elemental analysis alone cannot tell them apart; a molar mass, and in practice spectroscopy, must. Today a high-resolution mass spectrometer measures a molecule's mass precisely enough (to a few parts per million) to pin down its molecular formula directly, because the isotopes' masses are not whole numbers: ¹H is 1.007 83 Da and ¹⁶O is 15.994 91 Da.

ComputationC

Balancing equations with linear algebra

Balancing an equation by inspection works for small reactions and becomes guesswork for large ones. But balancing is a precise mathematical problem. Write the unknown coefficients as a vector v\mathbf{v}. Each element gives one equation: the number of its atoms on the left equals the number on the right. For propane burning, a C3H8+b O2→c CO2+d H2Oa\,\text{C}_3\text{H}_8 + b\,\text{O}_2 \to c\,\text{CO}_2 + d\,\text{H}_2\text{O}:

C:3a=cH:8a=2dO:2b=2c+d⟺(30−10800−202−2−1)(abcd)=0.\begin{aligned} \text{C:}\quad & 3a = c \\ \text{H:}\quad & 8a = 2d \\ \text{O:}\quad & 2b = 2c + d \end{aligned} \qquad\Longleftrightarrow\qquad \begin{pmatrix} 3 & 0 & -1 & 0 \\ 8 & 0 & 0 & -2 \\ 0 & 2 & -2 & -1 \end{pmatrix} \begin{pmatrix} a \\ b \\ c \\ d \end{pmatrix} = \mathbf{0}.

The composition matrix AA has a row per element and a column per species, with products counted negatively. Balanced equations are exactly the vectors with Av=0A\mathbf{v} = \mathbf{0} and all entries positive: the positive part of the null space of AA (see linear algebra). For ions, add one more row for electric charge, which is conserved too.

Theorem— When an equation balances uniquely

If the null space of the composition matrix is one-dimensional and contains a vector with all entries positive, then the equation has a balanced form, unique up to multiplying all coefficients by the same number, and so a unique form with the smallest whole-number coefficients.

Proof

Every solution is a multiple tvt\mathbf{v} of one basis vector v\mathbf{v}, which we may take to be the positive one. Because the entries of AA are integers, Gaussian elimination over the rationals gives a basis vector with rational entries; multiplying by the least common multiple of their denominators and dividing by the greatest common divisor gives the smallest positive integer vector, and every other balanced form is a positive multiple of it.

∎

SymPy computes null spaces in exact rational arithmetic, so the coefficients come out as fractions, not floating-point approximations:

python
import re
from collections import Counter
from math import lcm
from sympy import Matrix

def atoms(formula):
    """Atom counts of a formula with optional brackets, e.g. 'Fe2(SO4)3'."""
    stack = [Counter()]
    for el, num, open_, close, mult in re.findall(r"([A-Z][a-z]?)(\d*)|(\()|(\))(\d*)", formula):
        if open_:
            stack.append(Counter())
        elif close:
            group = stack.pop()
            for e, n in group.items():
                stack[-1][e] += n * int(mult or 1)
        else:
            stack[-1][el] += int(num or 1)
    return stack[0]

def species(s):
    """'MnO4-' -> ('MnO4', -1); 'Fe+3' -> ('Fe', 3); 'H2O' -> ('H2O', 0)."""
    m = re.fullmatch(r"(.*?)([+-])(\d*)", s)
    if not m:
        return s, 0
    return m.group(1), (1 if m.group(2) == "+" else -1) * int(m.group(3) or 1)

def balance(reactants, products):
    names = reactants + products
    parsed = [species(s) for s in names]
    elements = sorted({e for f, _ in parsed for e in atoms(f)})
    # one row per element (and one for charge); reactants count +, products count -
    rows = [[atoms(f)[e] * (1 if i < len(reactants) else -1) for i, (f, _) in enumerate(parsed)]
            for e in elements]
    rows.append([q * (1 if i < len(reactants) else -1) for i, (_, q) in enumerate(parsed)])
    basis = Matrix(rows).nullspace()
    if len(basis) != 1:
        return f"{len(basis)} independent solutions: the equation is not uniquely balanced"
    v = basis[0]
    v = v * lcm(*[term.q for term in v])                    # clear the denominators
    v = v if v[0] > 0 else -v
    term = lambda c, s: (f"{c} " if c != 1 else "") + s
    left = " + ".join(term(c, s) for c, s in zip(v[:len(reactants)], reactants))
    right = " + ".join(term(c, s) for c, s in zip(v[len(reactants):], products))
    return f"{left} -> {right}"

print(balance(["C3H8", "O2"], ["CO2", "H2O"]))                       # propane burning
print(balance(["C6H12O6"], ["C2H5OH", "CO2"]))                       # fermentation
print(balance(["Fe2O3", "CO"], ["Fe", "CO2"]))                       # blast furnace
print(balance(["Ca5(PO4)3OH", "H+"], ["Ca+2", "H2PO4-", "H2O"]))      # acid dissolving enamel
print(balance(["MnO4-", "Fe+2", "H+"], ["Mn+2", "Fe+3", "H2O"]))      # a redox titration
print(balance(["H2", "O2"], ["H2O", "H2O2"]))                        # two reactions at once
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

The program balances propane combustion, the fermentation of glucose by yeast, the reduction of iron ore in a blast furnace, the attack of acids on tooth enamel (the chemistry of tooth decay), and the reaction of permanganate with iron(II) ions used in titrations, where the charge row is essential: without it, the coefficients of the ions would not be fixed.

The last line is the interesting failure. Hydrogen and oxygen could give water, hydrogen peroxide, or any mixture of the two, so the null space is two-dimensional and "balancing" has infinitely many answers. The mathematics is telling the chemistry something true: the equation describes two independent reactions, and which one happens, or in what proportion, is a question for experiment, not arithmetic.

ExplanationH

The professional view

Measuring the Avogadro constant. Fixing NAN_\text{A} in 2019 was possible only because it had been measured accurately enough, to about 1 part in 10810^8. The decisive measurement counted atoms in nearly perfect spheres of isotopically enriched silicon-28, made by an international collaboration of metrology institutes: the sphere's volume was measured by interferometry, the spacing of atoms in its crystal by X-ray diffraction, and its mass against the kilogram. The same project helped fix the Planck constant and redefine the kilogram. The BIPM's SI Brochure gives the definitions now in force.

Atomic weights are not constants of nature. Because isotope mixtures vary slightly between sources (the hydrogen in seawater, rainwater and natural gas differs measurably), IUPAC's CIAAW gives some standard atomic weights as intervals, for example [1.007 84,1.008 11][1.007\,84, 1.008\,11] for hydrogen, with a single "abridged" value such as 1.008 for everyday use. Isotope ratios are themselves a tool: geochemists and forensic chemists use them to tell where a sample came from.

Stoichiometry in industry. Every chemical plant runs on mass balances: what goes in must come out, as product, by-product, waste or emissions. Engineers track conversion (how much limiting reagent reacts), selectivity (how much of what reacts becomes the desired product) and yield, and the pharmaceutical industry tracks process mass intensity, the total mass of materials used per kilogram of product, which can run into the hundreds for a complex drug. Reducing it is a central goal of green chemistry.

Formula determination today. Elemental analysers (CHNS/O) and high-resolution mass spectrometry are standard in every synthesis laboratory, and journals typically expect one or the other before they accept that a new compound is what its authors say it is.

History & global context

A short history

  • 1811: Amedeo Avogadro proposes that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules, and that elements such as oxygen exist as two-atom molecules. The idea is largely ignored for decades.
  • 1860: At the first international chemistry congress in Karlsruhe, Stanislao Cannizzaro shows how Avogadro's hypothesis gives a consistent set of atomic weights; the young Mendeleev is in the audience.
  • 1865: Josef Loschmidt makes the first estimate of the size of molecules, from which the number of molecules in a given volume of gas follows.
  • About 1894: Wilhelm Ostwald introduces the word Mol, short for Molekül.
  • 1909: Jean Perrin measures the constant by several independent methods, including the Brownian motion of tiny particles, and names it after Avogadro. The agreement of the methods convinces the remaining sceptics that atoms are real.
  • 1971: The mole becomes the seventh base unit of the SI.
  • 2019: The SI is redefined in terms of fixed constants; NAN_\text{A} becomes exact.
Common misconceptionsH

Common misconceptions

Misconception

"A mole is a mass." A mole is an amount: a number of entities, like a dozen. A mole of hydrogen molecules has a mass of 2.016 g; a mole of gold atoms, 196.97 g.

Misconception

"The coefficients tell you the masses that react." They give ratios of amounts (moles). In 2 H₂ + O₂ → 2 H₂O, 4 g of hydrogen reacts with 32 g of oxygen, not with 2 g.

Misconception

"The reactant with the smallest mass is the limiting reagent." Mass is not amount, and the coefficients matter too. In the kitchen example the two reactants had equal masses, and one was limiting because its molar mass was larger.

Misconception

"The molar mass of oxygen is 16 g/mol." It depends on what you mean by oxygen: oxygen atoms have 16.00 g/mol, but the gas consists of O₂ molecules, with 32.00 g/mol. Always say which entity you are counting.

Misconception

"Changing the definition in 2019 changed the value of the Avogadro constant." It fixed the value at the best measurement available, so that nothing a chemist does changed. What changed is which quantities are exact and which are measured.

Exercises

Exercises

1. The mole and stoichiometry

Warm-upHuman

Using the standard atomic weights Ca 40.078, C 12.011 and O 15.999, what is the molar mass of calcium carbonate, CaCO₃, to the nearest g/mol?

2. The mole and stoichiometry

CoreHuman

Balance the complete combustion of octane with the smallest whole-number coefficients:

a C8H18+b O2→c CO2+d H2Oa\,\text{C}_8\text{H}_{18} + b\,\text{O}_2 \to c\,\text{CO}_2 + d\,\text{H}_2\text{O}

What is bb?

3. The mole and stoichiometry

CoreHuman

4.0 g of hydrogen gas and 16.0 g of oxygen gas react: 2 H₂ + O₂ → 2 H₂O. (H₂: 2.016 g/mol, O₂: 32.00 g/mol, H₂O: 18.02 g/mol.) Which reagent is limiting, and what is the theoretical yield of water?

Choose one

4. The mole and stoichiometry

CoreHuman

A hydrocarbon is 85.6% carbon and 14.4% hydrogen by mass. What is its empirical formula? (C 12.011, H 1.008.) Type it like C2H6.

5. The mole and stoichiometry

Warm-upHuman

Which statement about the mole is true under the definition in force since 2019?

Choose one

6. The mole and stoichiometry

StretchHuman

You set up the composition matrix for a proposed reaction among five species and find that its null space is two-dimensional. What does this tell you?

Choose one

7. The mole and stoichiometry

CoreComputational

Write empirical_formula(percent), which takes a dict of mass percentages such as {"C": 40.92, "H": 4.58, "O": 54.50} and returns the empirical formula as a dict of smallest whole numbers, here {"C": 3, "H": 4, "O": 3}. Use the atomic weights in AW. Try multipliers 1 to 10 and accept the first for which every scaled ratio is within 0.05 of a whole number.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

8. The mole and stoichiometry

StretchComputational

Write molar_mass(formula) for formulas with element symbols, counts and nested round brackets, such as "Al2(SO4)3" or "K4(Fe(CN)6)" (potassium hexacyanidoferrate(II), usually written K₄[Fe(CN)₆]). Return the molar mass in g/mol using AW. Hydrates and charges need not be handled.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Further reading and resources