Skip to content
LumenaryAcademy
Physical 70 min

Electrochemistry

Chemistry that moves electrons through a wire — oxidation numbers and half-reactions, galvanic cells and standard potentials, the Nernst equation computed, electrolysis and Faraday's laws, batteries and fuel cells, and corrosion.

Code tested · 6AI-draftedAwaiting review by a chemist

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

MotivationH

Chemistry on a wire

In 1800 Alessandro Volta, a professor at Pavia, wrote to the Royal Society in London describing a stack of zinc and copper discs separated by cardboard soaked in brine. It gave a steady electric current, the first ever made by chemistry, and within weeks William Nicholson and Anthony Carlisle used one to split water into hydrogen and oxygen. Within a decade Humphry Davy had used larger piles to isolate sodium and potassium for the first time. Chemistry could make electricity, and electricity could drive chemistry.

Today that two-way street runs the world. The phone in your pocket, the electric bus and the grid-scale battery store energy as chemistry and release it as current. Every kilogram of new aluminium, much of the world's copper and nearly all of its chlorine are made by electrolysis. A drop of blood on a test strip tells a person with diabetes their glucose level in seconds, through an electrode. And corrosion, the same chemistry running where we do not want it, costs the world a few per cent of its economic output every year, by one widely cited estimate from the corrosion engineers' professional body.

This lesson builds the ideas behind all of these: oxidation and reduction, cells and their voltages, how voltage measures the Gibbs energy, the Nernst equation, and Faraday's laws.

IntuitionH

Separating the two halves

Put a strip of zinc into a blue solution of copper(II) sulfate. The zinc slowly coats with reddish copper, the blue colour fades, and the solution warms a little: Zn + Cu²⁺ → Zn²⁺ + Cu. Zinc atoms have handed two electrons each to copper ions. The reaction is favourable, and the energy it releases appears as heat.

Now separate the two halves. Put the zinc in a solution of zinc ions and a copper strip in a solution of copper ions, in two beakers. Zinc atoms still "want" to give up electrons and copper ions still "want" to take them, but the only route between them is a wire you connect outside the solutions. Electrons flow through the wire, and their energy can light a lamp or run a motor instead of warming the beaker. That is a galvanic cell, and this arrangement is the cell John Frederic Daniell built in London in 1836.

V1.10 Ve⁻e⁻salt bridgeanionscationsZnCuZn²⁺(aq)Cu²⁺(aq)anode (−): Zn → Zn²⁺ + 2e⁻cathode (+): Cu²⁺ + 2e⁻ → Cu
A Daniell cell. Zinc is oxidised at the anode and electrons flow through the external circuit to the copper cathode, where copper ions are reduced. The salt bridge lets ions move between the beakers to keep both solutions electrically neutral; without it the current stops at once. With both solutions at 1 mol/L the voltmeter reads about 1.10 V.

Analogy, not a formal construction

Think of electrons as water and the cell as two reservoirs at different heights. The voltage is the difference in height, the energy each unit of charge gives up on the way down; the current is how much flows per second. A tiny watch cell and a large battery of the same chemistry have the same voltage; the large one simply holds far more "water".

A safe version to try at home, with an adult: push a galvanised (zinc-coated) nail and a piece of clean copper wire into a lemon, a few centimetres apart, and connect them to a multimeter set to volts. You should read close to a volt. The lemon juice is the electrolyte, zinc is oxidised at the nail, and hydrogen ions are reduced at the copper. Afterwards, throw the lemon away: it now contains dissolved zinc and copper and is no longer food. Keep to lemons, wire and nails: never open household batteries, never experiment with mains electricity, and leave electrolysis to supervised laboratories.

DefinitionsH

Oxidation, reduction and cells

Definition— oxidation and reduction

Oxidation is the loss of electrons, reduction the gain of electrons, and they always happen together, in redox reactions. The species that is reduced is the oxidising agent (it takes electrons); the species oxidised is the reducing agent. In Zn + Cu²⁺ → Zn²⁺ + Cu, zinc is oxidised and is the reducing agent; Cu²⁺ is reduced and is the oxidising agent.

Definition— oxidation number

The oxidation number (oxidation state) of an atom is the charge it would have if every bond were fully ionic, with the shared electrons given to the more electronegative atom. Working rules: an element on its own has 0; a simple ion has its charge; fluorine is −1; oxygen is −2 (except in peroxides, −1); hydrogen is +1 with non-metals and −1 in metal hydrides; and the numbers in a species add up to its charge. Oxidation raises an oxidation number; reduction lowers it.

Definition— half-reaction, anode and cathode

A redox reaction can be split into two half-reactions that show the electrons explicitly: Zn → Zn²⁺ + 2e⁻ and Cu²⁺ + 2e⁻ → Cu. In any electrochemical cell, the anode is the electrode where oxidation happens and the cathode the one where reduction happens. A galvanic (voltaic) cell runs a favourable reaction and delivers electrical work; an electrolytic cell uses an external power supply to drive an unfavourable one.

Definition— cell notation and standard electrode potential

A cell is written anode on the left, cathode on the right, with | for a phase boundary and ‖ for a salt bridge: Zn(s) | Zn²⁺(aq) ‖ Cu²⁺(aq) | Cu(s). The standard electrode potential E∘E^\circ of a half-reaction, written as a reduction, is the voltage of a cell built from it and the standard hydrogen electrode (2H⁺ + 2e⁻ ⇌ H₂, at unit activities, defined as 0 V), with everything in its standard state at the stated temperature. The standard cell potential is Ecell∘=Ecathode∘−Eanode∘E^\circ_\text{cell} = E^\circ_\text{cathode} - E^\circ_\text{anode}.

The link between charge and amount is the Faraday constant, the charge on one mole of electrons: F=NAe=96 485.332…F = N_\text{A}e = 96\,485.332\ldots C/mol, exact since the 2019 redefinition of the SI.

Example— Balancing a redox equation by half-reactions

Permanganate oxidises iron(II) in acid, the basis of a classic titration (see Analytical chemistry). Oxidation numbers: in MnO₄⁻, x+4(−2)=−1x + 4(-2) = -1, so Mn is +7; it ends as Mn²⁺, so each Mn gains five electrons. Each Fe²⁺ loses one.

  1. Reduction: MnO₄⁻ → Mn²⁺. Balance O with water: MnO₄⁻ → Mn²⁺ + 4 H₂O. Balance H with H⁺: MnO₄⁻ + 8 H⁺ → Mn²⁺ + 4 H₂O. Balance charge with electrons: left +7, right +2, so add 5e⁻ on the left.
  2. Oxidation: Fe²⁺ → Fe³⁺ + e⁻.
  3. Make the electrons equal by multiplying the oxidation by 5, and add:

MnO₄⁻ + 8 H⁺ + 5 Fe²⁺ → Mn²⁺ + 5 Fe³⁺ + 4 H₂O.

Check: atoms balance, and the charge is +17 on both sides. The linear-algebra balancer in The mole and stoichiometry finds the same coefficients without knowing any chemistry; the half-reaction method also tells you how many electrons move, which is the nn in everything below.

ComputationC

Cell potentials and the Gibbs energy

Why should a voltage, a purely electrical quantity, say anything about whether a reaction goes? Because voltage is energy per charge. When nn moles of electrons pass through a potential difference EE, the electrical work done is nFEnFE, and the most electrical work a reaction can do at constant temperature and pressure is the decrease in its Gibbs energy (see Entropy and free energy).

Theorem— Cell potential, Gibbs energy and equilibrium

For a cell reaction transferring nn electrons per formula,

ΔrG=−nFE,ΔrG∘=−nFE∘,E∘=RTnFln⁡K.\Delta_\text{r}G = -nFE, \qquad \Delta_\text{r}G^\circ = -nFE^\circ, \qquad E^\circ = \frac{RT}{nF}\ln K.

A positive cell potential means a negative Gibbs energy: the reaction is favourable as written, and K>1K > 1.

Proof

Run the cell reversibly, with an opposing voltage that lets the current flow infinitely slowly. Then the electrical work delivered per mole of reaction, nFEnFE, equals the maximum non-expansion work, which is −ΔrG-\Delta_\text{r}G; so ΔrG=−nFE\Delta_\text{r}G = -nFE, and under standard conditions ΔrG∘=−nFE∘\Delta_\text{r}G^\circ = -nFE^\circ. Combining with ΔrG∘=−RTln⁡K\Delta_\text{r}G^\circ = -RT\ln K from Chemical equilibrium gives E∘=(RT/nF)ln⁡KE^\circ = (RT/nF)\ln K.

∎

A table of standard potentials is therefore a compact table of Gibbs energies. Read as reductions, the half-reactions at the top of the series (most positive, such as F₂, MnO₄⁻, Cl₂, O₂) are strong oxidising agents; those at the bottom (most negative, such as Li⁺/Li and Mg²⁺/Mg) have reduced forms that are strong reducing agents. Any half-reaction can, in principle, be driven by one lower down. The block computes several cells, and shows one trap.

python
from math import log

F = 96485.33212          # C/mol: the Faraday constant, N_A times e (exact since 2019)
R, T = 8.314462618, 298.15

# Standard reduction potentials at 25 °C, in volts against the standard hydrogen electrode
E0 = {
    "Li+/Li": -3.040, "Mg2+/Mg": -2.372, "Al3+/Al": -1.662, "Zn2+/Zn": -0.762,
    "Fe2+/Fe": -0.447, "PbSO4/Pb": -0.359, "H+/H2": 0.000, "Cu2+/Cu": 0.342,
    "O2/OH-": 0.401, "Fe3+/Fe2+": 0.771, "Ag+/Ag": 0.800, "O2/H2O": 1.229,
    "Cl2/Cl-": 1.358, "MnO4-/Mn2+": 1.507, "PbO2/PbSO4": 1.691,
}

def cell(cathode, anode, n):
    """Standard cell potential (V), Gibbs energy (kJ/mol) and log10 K, for n electrons."""
    E = E0[cathode] - E0[anode]
    return E, -n * F * E / 1000, n * F * E / (R * T * log(10))

print("reaction                        n    E°/V   ΔG°/(kJ/mol)  log10 K")
for cathode, anode, n, name in [
    ("Cu2+/Cu", "Zn2+/Zn", 2, "Zn + Cu2+ (Daniell cell)"),
    ("PbO2/PbSO4", "PbSO4/Pb", 2, "Pb + PbO2 (lead-acid)"),
    ("O2/H2O", "H+/H2", 4, "2 H2 + O2 (fuel cell)"),
    ("Ag+/Ag", "Cu2+/Cu", 2, "Cu + 2 Ag+"),
    ("Zn2+/Zn", "Cu2+/Cu", 2, "Cu + Zn2+"),
]:
    E, dG, logK = cell(cathode, anode, n)
    print(f"{name:30s} {n:2d} {E:+7.3f} {dG:12.1f} {logK:9.1f}")

# Potentials do not add; Gibbs energies do.  E° for Fe3+ + 3 e- -> Fe from two steps:
steps = [(1, E0["Fe3+/Fe2+"]), (2, E0["Fe2+/Fe"])]      # (electrons, E°) for each step
E_combined = sum(n * E for n, E in steps) / sum(n for n, E in steps)
print(f"\nE°(Fe3+/Fe) = {E_combined:+.3f} V   (adding the potentials would wrongly give "
      f"{sum(E for n, E in steps):+.3f} V)")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

The Daniell cell gives 1.104 V and K≈1037K \approx 10^{37}: it runs essentially to completion. The fuel-cell reaction gives −474.3 kJ per two moles of water, −237.2 kJ/mol, which is the Gibbs energy of formation of liquid water; the electrochemical and thermochemical tables agree, as they must. Reversing a reaction flips the sign of E∘E^\circ and of ΔrG∘\Delta_\text{r}G^\circ, and inverts KK.

ComputationC

The Nernst equation

Standard potentials apply at unit activities. Real cells run at other concentrations, and as a battery discharges its concentrations change. Substituting ΔrG=−nFE\Delta_\text{r}G = -nFE into ΔrG=ΔrG∘+RTln⁡Q\Delta_\text{r}G = \Delta_\text{r}G^\circ + RT\ln Q gives the equation Walther Nernst published in 1889.

Theorem— The Nernst equation

E=E∘−RTnFln⁡Q,which at 25 °C isE=E∘−0.05916 Vnlog⁡10Q.E = E^\circ - \frac{RT}{nF}\ln Q, \qquad\text{which at 25 °C is}\qquad E = E^\circ - \frac{0.05916\ \text{V}}{n}\log_{10} Q.

So every tenfold change in QQ shifts the potential by 59.16 mV divided by nn. Three consequences are worth computing: how the voltage of a cell changes as it runs down, how potentials depend on pH, and the voltages made by concentration differences alone.

python
import numpy as np

F, R = 96485.33212, 8.314462618

def nernst(E0, n, Q, T=298.15):
    """Cell (or electrode) potential: E = E° - (RT/nF) ln Q."""
    return E0 - R * T / (n * F) * np.log(Q)

# 1. A Daniell cell running down: Zn + Cu2+ -> Zn2+ + Cu, starting at 1.00 mol/L of each ion.
print("fraction of Cu2+ used   [Zn2+]   [Cu2+]    E/V")
for f in (0.0, 0.5, 0.9, 0.99, 0.999, 0.99999):
    zn, cu = 1.0 + f, 1.0 - f
    print(f"{f:20.5f} {zn:8.3f} {cu:8.5f} {nernst(1.104, 2, zn / cu):7.3f}")

# 2. The oxygen electrode, O2 + 4 H+ + 4 e- -> 2 H2O, at 1 bar O2: E falls 59 mV per pH unit.
for pH in (0, 7, 14):
    print(f"O2/H2O at pH {pH:2d}: {nernst(1.229, 4, 1 / (10.0 ** -pH) ** 4):.3f} V")

# 3. A concentration cell: two copper electrodes in 1.0 and 0.010 mol/L Cu2+.
print(f"\nCu | Cu2+ (0.010 M) || Cu2+ (1.0 M) | Cu:  E = {nernst(0.0, 2, 0.010 / 1.0):.4f} V")

# 4. A nerve cell at 37 °C: K+ is 140 mmol/L inside and 5 mmol/L outside.
E_K = R * 310.15 / F * np.log(5.0 / 140.0)          # inside relative to outside: (RT/F) ln(out/in)
print(f"Nernst potential for K+ across a nerve-cell membrane: {1000 * E_K:.0f} mV")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

The Daniell cell's voltage barely moves as it discharges: from 1.104 V to 1.036 V when 99 % of the copper ions are used, because the logarithm changes slowly. That flat voltage is a large part of what makes a good battery; the sharp fall at the very end of a real battery's discharge comes mostly from other causes, as the remaining reactant becomes hard to reach and the internal resistance rises. The oxygen electrode falls by 59 mV per pH unit, from 1.229 V at pH 0 to 0.401 V at pH 14, which is exactly the tabulated potential for O₂ + 2H₂O + 4e⁻ → 4OH⁻: the two half-reactions are the same chemistry at different pH. The same 59 mV per pH unit is what a glass pH electrode measures (Acids, bases and buffers). And a concentration cell, two identical electrodes in solutions of different concentration, gives 59 mV for a hundredfold difference in Cu²⁺ even though E∘=0E^\circ = 0.

ComputationC

Electrolysis and Faraday's laws

Connect a power supply that pushes harder than a cell's own voltage, and the reaction runs backwards: that is electrolysis. In 1833 and 1834 Michael Faraday measured how much substance a current produces and found two laws, which in modern language say that the amount of substance changed at an electrode is proportional to the charge passed, and that one mole of electrons, 96 485 C, deposits one mole of a singly charged ion's element, half a mole of a doubly charged one, and so on:

n=QzF=ItzF,m=ItMzF.n = \frac{Q}{zF} = \frac{It}{zF}, \qquad m = \frac{ItM}{zF}.

Faraday also gave electrochemistry its vocabulary, with help from the scholar William Whewell: electrode, anode, cathode, ion and electrolyte.

Industry runs on electrolysis. In the Hall–Héroult process, found independently in 1886 by Charles Martin Hall in the United States and Paul Héroult in France, aluminium oxide dissolved in molten cryolite near 960 °C is reduced to liquid aluminium at the cathode, while the carbon anodes burn away to carbon dioxide; anodes that release oxygen instead are a current research goal. Copper is refined by dissolving impure anodes and plating pure copper on the cathodes; the chlor-alkali industry electrolyses brine in large membrane cells to make chlorine and sodium hydroxide for water treatment, PVC and paper; and water electrolysis makes hydrogen without fossil fuels when the electricity is low-carbon. The block applies Faraday's laws to these.

python
F = 96485.33212                         # C per mole of electrons

def mass_deposited(current_A, seconds, molar_mass, z, efficiency=1.0):
    """Faraday's laws: grams of metal deposited (or dissolved) by a current."""
    return efficiency * current_A * seconds / (z * F) * molar_mass

# 1. Copper plating: 2.00 A for one hour from a Cu2+ solution.
print(f"copper, 2.00 A for 1 h: {mass_deposited(2.00, 3600, 63.546, 2):.3f} g")

# 2. Aluminium smelting (Hall-Héroult): Al3+ + 3 e- -> Al.  Charge and energy per kilogram.
charge = 1000 / 26.982 * 3 * F                        # coulombs per kg of Al
for volts, eff in [(4.2, 1.00), (4.2, 0.95)]:
    kwh = charge * volts / eff / 3.6e6
    print(f"aluminium at {volts} V and {eff:.0%} current efficiency: {kwh:.1f} kWh/kg"
          f"  ({charge / 3600 / eff:,.0f} Ah per kg)")

# 3. Water electrolysis: 2 H2O -> 2 H2 + O2 needs 2 electrons per H2.
charge_H2 = 1000 / 2.016 * 2 * F                      # coulombs per kg of H2
for volts, what in [(1.229, "ΔG limit"), (1.481, "thermoneutral, ΔH"), (1.9, "typical stack")]:
    print(f"hydrogen at {volts:5.3f} V ({what}): {charge_H2 * volts / 3.6e6:5.1f} kWh/kg")

# 4. Corrosion: a steady corrosion current of 1 µA per cm² on iron (Fe -> Fe2+ + 2 e-).
rate_cm_per_s = 1e-6 / (2 * F) * 55.845 / 7.874         # A/cm² -> mol/(cm² s) -> g -> cm
print(f"\niron corroding at 1 µA/cm²: {rate_cm_per_s * 3.156e7 * 1e4:.1f} µm per year")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Aluminium needs about 3000 ampere-hours of charge per kilogram, and at about 4.2 V per cell and a realistic current efficiency, roughly 13 kWh per kilogram for the electrolysis alone, close to what smelters report. That is why smelters are built beside large hydroelectric or other power sources, from Iceland and Norway to Quebec and the Gulf. For hydrogen, the Gibbs-energy minimum is 32.7 kWh/kg; at the 1.48 V thermoneutral voltage, the cell neither heats nor cools, using 39.4 kWh/kg, the higher heating value of hydrogen; real stacks at around 1.9 V use about 50 kWh/kg, and whole plants somewhat more.

Worked examplesH

Batteries and fuel cells

A battery is a galvanic cell built to be practical: compact, safe, with a flat voltage and, if rechargeable, a reaction that runs backwards cleanly hundreds or thousands of times.

Lead–acid, invented by Gaston Planté in 1859, is still in almost every car with a combustion engine. Its discharge reaction, Pb + PbO₂ + 2 H₂SO₄ → 2 PbSO₄ + 2 H₂O, gives 2.05 V per cell, so six cells make a 12 V battery. It is heavy, but cheap, robust and recycled at very high rates.

Lithium-ion cells, recognised by the 2019 Nobel Prize in Chemistry, shuttle lithium ions between the layers of two host materials. M. Stanley Whittingham showed in the 1970s that lithium slides into layered titanium disulfide; John Goodenough's group in Oxford found in 1980 that lithium cobalt oxide gives about 4 V; and Akira Yoshino at Asahi Kasei built in 1985 the first practical cell with a carbon negative electrode, commercialised by Sony in 1991.

loade⁻e⁻Li⁺graphite (negative)electrolytemetal oxide (positive)LiC₆ → C₆ + Li⁺ + e⁻CoO₂ + Li⁺ + e⁻ → LiCoO₂
A lithium-ion cell discharging (schematic). Lithium ions leave the graphite, cross the electrolyte and the porous separator, and slip between the layers of the metal oxide; electrons make the same journey through the external circuit, doing work on the way. Charging pushes both back. Each electrode is coated on a metal foil current collector: copper on the negative side, aluminium on the positive.

The figure shows the idealised reactions; in practice only about half the lithium in LiCoO₂ can be removed before the structure suffers, which is one reason the theoretical capacities below are never reached. Faraday's law gives the most charge each material could store per gram, and a rough upper limit on the energy of a cell.

python
F = 96485.33212

def capacity_mAh_per_g(molar_mass, electrons):
    """Theoretical specific capacity of an electrode material, in mAh per gram."""
    return electrons * F / molar_mass / 3.6          # C/g -> mAh/g (1 mAh = 3.6 C)

for name, M, n in [("graphite, C6 -> LiC6", 72.06, 1),
                   ("lithium cobalt oxide, LiCoO2", 97.87, 1),
                   ("lithium iron phosphate, LiFePO4", 157.76, 1),
                   ("silicon, Si -> Li15Si4", 28.086, 3.75)]:
    print(f"{name:32s} {capacity_mAh_per_g(M, n):6.0f} mAh/g")

def specific_energy(q_neg, q_pos, volts):
    """Wh per kg of the two active materials alone, with matched capacities in mAh/g."""
    return volts / (1 / q_neg + 1 / q_pos)           # mAh/g × V = Wh/kg

q_lead_acid = 2 * F / (207.2 + 239.2 + 2 * 98.08) / 3.6   # Pb + PbO2 + 2 H2SO4, 2 electrons
print("\nchemistry                         active materials   typical whole cell")
for name, wh, real in [
    ("LiFePO4 | graphite, 3.2 V",    specific_energy(372, 160, 3.2), "160-200"),
    ("layered oxide | graphite, 3.7 V", specific_energy(372, 200, 3.7), "250-300"),
    ("lead-acid, 2.05 V",            q_lead_acid * 2.05,              " 30-40 "),
]:
    print(f"{name:32s} {wh:8.0f} Wh/kg      about {real} Wh/kg")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

The active materials alone could store 360 to 480 Wh/kg, but a real cell also carries electrolyte, separator, current collectors and casing, so whole cells reach about half that. Silicon stores nearly ten times as much lithium per gram as graphite but swells by about 300 % doing so, so as of 2026 commercial cells blend only a modest fraction of it into the graphite. Lithium iron phosphate (LFP) stores less energy than nickel-rich oxides but is cheaper, longer-lived and less prone to overheating, and has taken a large share of vehicle and grid batteries. Sodium-ion cells, which need no lithium, nickel or cobalt, entered commercial production in the mid-2020s, and solid-state cells with a solid electrolyte are in development and pilot production. The materials are the subject of Lumenary Materials' battery materials, and their place on the grid of Lumenary EE's renewables and storage.

Note

Lithium-ion cells hold a lot of energy in a small space, and a damaged one can overheat and catch fire in a process called thermal runaway. Never puncture, crush, heat or short-circuit one; stop using any battery that is swollen, hot or damaged, and take used batteries to a collection point rather than the household bin, where they cause fires in rubbish lorries and recycling plants.

A fuel cell is a galvanic cell whose reactants are supplied continuously instead of being stored inside. In a proton-exchange-membrane (PEM) fuel cell, hydrogen is oxidised at a platinum-catalysed anode, H₂ → 2H⁺ + 2e⁻; the protons cross a polymer membrane, and at the cathode O₂ + 4H⁺ + 4e⁻ → 2H₂O. William Grove demonstrated the principle around 1840, and fuel cells powered the Apollo spacecraft. The ideal voltage is 1.229 V and the ideal efficiency, ΔG/ΔH=237.1/285.8\Delta G/\Delta H = 237.1/285.8, is 83 %; under load a cell gives about 0.6 to 0.8 V, so stacks are 40 to 60 % efficient, still better than most engines. They power some buses, trucks, trains and backup generators, and their future depends on clean, affordable hydrogen.

Worked examplesH

Corrosion

Iron rusts because it is a fairly good reducing agent, E∘(Fe2+/Fe)=−0.45E^\circ(\mathrm{Fe^{2+}/Fe}) = -0.45 V, and oxygen dissolved in water is a good oxidising agent. Wet iron is a short-circuited galvanic cell: some areas become anodes, where iron dissolves, and others cathodes, where oxygen is reduced, with the metal itself as the wire.

O₂O₂OH⁻OH⁻Fe²⁺rust ringe⁻e⁻ironcentre, little O₂: anode, Fe → Fe²⁺ + 2e⁻edge, more O₂: cathode, O₂ + 2H₂O + 4e⁻ → 4OH⁻
A drop of salt water on iron. Oxygen reaches the edge of the drop more easily than its centre, so the edge becomes the cathode and the oxygen-starved centre the anode, where iron dissolves. Electrons travel through the metal; Fe²⁺ and OH⁻ ions meet in the water between and, with more oxygen, form rust in a ring.

Ulick Evans showed this with drops of salt water and indicators in Cambridge in the 1920s. The Fe²⁺ and OH⁻ meet and, with more oxygen, form hydrated iron(III) oxide, rust, which flakes off and exposes fresh metal. Salt speeds everything up by making the water a better conductor, which is why cars rust faster where roads are salted (Solutions) and near the sea. Rates are often quoted as corrosion currents: by Faraday's law, 1 µA/cm² on iron removes 11.6 µm of metal a year, as the electrolysis block showed.

You can watch it safely at home over a week, with an adult: put plain steel nails in four jars, one with tap water, one with salty water, one with water covered by a layer of cooking oil (which keeps oxygen out), and one dry. Add a galvanised nail to the salty jar. The salty jar rusts fastest, the dry and oil-covered jars hardly at all, and the galvanised nail resists until its zinc is used up. Rust is harmless to handle, but wash your hands afterwards.

Protection follows from the chemistry. Barriers (paint, oil, plastic) keep water and oxygen away. Galvanising coats steel with zinc, which corrodes in its place even where the coating is scratched, because zinc is the stronger reducing agent: a sacrificial anode. Ships' hulls, pipelines and offshore platforms carry blocks of zinc, aluminium or magnesium for the same reason, or use impressed-current cathodic protection, a power supply that holds the steel at a potential where it cannot oxidise. Passivation relies on a thin, tight oxide film: aluminium protects itself this way, and stainless steel contains at least about 10.5 % chromium, which forms a chromium oxide layer that heals itself when scratched. Chloride ions can break such films locally, so stainless steel can still pit in seawater. The Iron Pillar of Delhi, about 1600 years old, owes its slight rusting to a protective film that its phosphorus-rich iron forms in the local climate. Corrosion engineering is a profession of its own (see AMPP), and its materials side is in Lumenary Materials' fatigue, creep and corrosion.

ExplanationH

The professional view

Sensors. Electrochemistry measures as well as makes. Glass pH electrodes, ion-selective electrodes for sodium and potassium in hospital analysers, and amperometric glucose sensors, descendants of the enzyme electrode Leland Clark described in 1962, are among the most widely used chemical sensors on Earth. Analytical chemists use voltammetry, sweeping the potential and recording the current, to identify and measure trace metals and drugs (Analytical chemistry).

Energy. As of 2026, battery research is pushing on several fronts at once: nickel-rich and manganese-rich positive electrodes, silicon-containing negatives, sodium-ion cells, solid electrolytes, faster charging without lithium plating, and recycling that recovers lithium, nickel and cobalt. Cells are designed with physics-based models, such as the open-source PyBaMM, and increasingly with data from automated test labs (Self-driving labs). Electrolysers for hydrogen come in three main types, alkaline, PEM and high-temperature solid-oxide, and reducing their cost and their use of scarce iridium and platinum is an active field, discussed in Energy chemistry.

Electrosynthesis. Electrons are clean reagents: they leave no by-products. Organic chemists increasingly use electrochemistry to oxidise and reduce molecules without stoichiometric oxidants, and the electrochemical reduction of CO₂ and of nitrogen to fuels and fertilisers is a large research effort, still far from industrial scale.

Common misconceptionsH

Common misconceptions

Misconception

"The anode is always the negative electrode." The anode is defined by its reaction, oxidation, not by its sign. In a galvanic cell the anode is negative; in an electrolytic cell the power supply makes it positive. A rechargeable battery's electrodes swap names between charge and discharge, which is why battery engineers prefer "negative" and "positive".

Misconception

"Doubling the equation doubles the voltage." Potentials are intensive: E∘E^\circ is energy per unit charge. Doubling the equation doubles nn and ΔrG∘\Delta_\text{r}G^\circ, and E∘E^\circ stays the same. Cells give higher voltages only when connected in series, as in a 12 V car battery of six 2 V cells.

Misconception

"Electrons flow through the solution and the salt bridge." Electrons travel through the metal wires; in solution, the current is carried by ions moving in both directions. The salt bridge carries ions, not electrons.

Misconception

"A battery stores electric charge." A charged battery holds no more net charge than a flat one; it stores chemical energy, as reactants that have not yet reacted. Its capacity in ampere-hours counts how many electrons the reaction can push round a circuit before the reactants run out.

Misconception

"Stainless steel never rusts." It resists corrosion because of a thin chromium-oxide film. Chloride, crevices and low oxygen can break the film locally, and stainless steel then pits, sometimes quickly.

Exercises

Exercises

Take F=96 485F = 96\,485 C/mol, R=8.314R = 8.314 J/(mol K), and RT/F=0.025 69RT/F = 0.025\,69 V at 25 °C. Two exercises ask for Python functions.

1. Electrochemistry

Warm-upHuman

What is the oxidation number of manganese in the permanganate ion, MnO₄⁻?

2. Electrochemistry

Warm-upHuman

A Daniell cell, Zn(s) | Zn²⁺(aq) ‖ Cu²⁺(aq) | Cu(s), is delivering current to a lamp. Which statements are true? Select all that apply.

Choose all that apply

3. Electrochemistry

CoreHuman

For the reaction Mg(s) + 2 Ag⁺(aq) → Mg²⁺(aq) + 2 Ag(s), use E∘(Ag+/Ag)=+0.800E^\circ(\mathrm{Ag^+/Ag}) = +0.800 V and E∘(Mg2+/Mg)=−2.372E^\circ(\mathrm{Mg^{2+}/Mg}) = -2.372 V. What is ΔrG∘\Delta_\text{r}G^\circ in kJ/mol, to the nearest whole number? (Include the sign.)

4. Electrochemistry

CoreHuman

A Daniell cell (E∘=1.104E^\circ = 1.104 V) has [Zn²⁺] = 1.0 mol/L and [Cu²⁺] = 0.0010 mol/L at 25 °C. What is its potential, in millivolts, to the nearest whole number?

5. Electrochemistry

CoreHuman

A current of 0.500 A deposits silver from a solution of Ag⁺ ions onto a spoon. How many minutes does it take to deposit 1.00 g of silver (M=107.87M = 107.87 g/mol), assuming every electron deposits silver? Give the nearest whole number.

6. Electrochemistry

StretchHuman

Given E∘(Cr3+/Cr2+)=−0.407E^\circ(\mathrm{Cr^{3+}/Cr^{2+}}) = -0.407 V (one electron) and E∘(Cr2+/Cr)=−0.913E^\circ(\mathrm{Cr^{2+}/Cr}) = -0.913 V (two electrons), what is E∘E^\circ for Cr³⁺ + 3e⁻ → Cr?

Choose one

7. Electrochemistry

CoreComputational

Write combined_potential(steps), where steps is a list of (n, E) pairs, the number of electrons and the standard potential of successive half-reactions (for example Fe³⁺ → Fe²⁺ → Fe). Return the standard potential of the overall half-reaction. The starter adds the potentials, which is wrong; fix it.

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

8. Electrochemistry

StretchComputational

Write potential(E0, n, species, T=298.15) that applies the Nernst equation E=E∘−RTnFln⁡QE = E^\circ - \dfrac{RT}{nF}\ln Q to any reaction. species is a list of (nu, activity) pairs, one per species, with nu the stoichiometric coefficient: negative for reactants, positive for products. Leave out pure solids, liquids and the solvent (activity 1). Use F=96 485.332 12F = 96\,485.332\,12 C/mol and R=8.314 462 618R = 8.314\,462\,618 J/(mol K).

For example, MnO₄⁻ + 8 H⁺ + 5 Fe²⁺ → Mn²⁺ + 5 Fe³⁺ + 4 H₂O has E∘=1.507−0.771=0.736E^\circ = 1.507 - 0.771 = 0.736 V, n=5n = 5, and species = [(-1, a_MnO4), (-5, a_Fe2), (-8, a_H), (1, a_Mn2), (5, a_Fe3)]. Your function must also cope with extreme activities, where computing QQ itself would overflow.

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

Further reading and resources