A battery is really just two different metals having a tug-of-war over electrons. Some metals cling to their electrons; others let go easily. Stand two of them in salty water, connect them with a wire, and the metal that lets go pushes electrons through the wire to the metal that grabs them. That moving stream of electrons is electric current — the same reason a lemon with a copper coin and a zinc nail can faintly light an LED, and the same reason you feel a tingle if you bite aluminium foil with a metal filling in your tooth.
To put numbers on it, every metal is given a score for how badly it wants electrons, called its standard reduction potential $E^\circ$, measured in volts. The metal with the higher (more positive) score wins the pull and becomes the cathode (electrons flow in, reduction happens). The loser gives up electrons and becomes the anode (oxidation). The voltage the cell produces is simply the gap between the two scores:
That voltage is a measure of usable energy. Moving $n$ moles of electrons across the voltage gap releases an amount of free energy $\Delta G^\circ = -nFE^\circ_{\text{cell}}$, where $F = 96485$ C/mol is Faraday's constant. A positive $E^\circ$ gives a negative $\Delta G^\circ$, which is exactly what "the reaction runs by itself" means. Voltage isn't fixed forever, though: as the reaction uses up reactants and piles up products, the Nernst correction $E = E^\circ - \tfrac{RT}{nF}\ln Q$ pulls the working voltage down. When the products build up enough that $Q$ reaches the equilibrium constant $K$, the term cancels $E^\circ$ exactly, $E = 0$, and the battery is "dead." In the sim, the preset picks the two metals (and therefore $E^\circ$), the two concentration sliders change $Q$, the temperature slider scales the $RT/nF$ term, and the external-resistance slider sets how fast current flows.
Try this in the sim above: (1) Start on the Daniell preset and read $1.10$ V, then switch to the Ag–Zn preset and watch $E^\circ_{\text{cell}}$ jump to about $1.56$ V — silver pulls electrons harder than copper. (2) Drag [Cathode ion] down toward $0.001$ M and watch $E_{\text{cell}}$ fall below $E^\circ_{\text{cell}}$ — that is the Nernst $\ln Q$ term biting. (3) Click the Electrolytic Cell tab and see the electrons reverse direction: now an outside battery is forcing the reaction uphill ($E < 0$, $\Delta G > 0$).
| Symbol | Meaning | SI Unit |
|---|---|---|
| $E^\circ_{\text{cell}}$ | Standard cell potential | V (volt) |
| $E^\circ_{\text{cathode/anode}}$ | Standard reduction potential at electrode | V |
| $\Delta G^\circ$ | Standard Gibbs free energy change | J/mol |
| $n$ | Number of moles of electrons transferred | mol |
| $F$ | Faraday's constant | 96 485 C/mol |
| $K$ | Equilibrium constant | dimensionless |
| $Q$ | Reaction quotient | dimensionless |
| $R$ | Universal gas constant | 8.314 J·K⁻¹·mol⁻¹ |
| UI Control | Symbol | Effect |
|---|---|---|
| Preset selector | $E^\circ_{\text{cathode}}, E^\circ_{\text{anode}}$ | Sets standard potentials of half-cells |
| [Anode ion] | $Q$ denominator | Higher [anode ion] → smaller Q → higher E |
| [Cathode ion] | $Q$ numerator | Higher [cathode ion] → larger Q → lower E |
| Temperature | $T$ in Nernst term | Modifies (RT/nF) coefficient |
| External R | $R_{\text{ext}}$ | Sets current flow rate, controls discharge speed |
📚 Atkins & de Paula — Physical Chemistry, 11th Ed., §6E: "Equilibrium electrochemistry" | Skoog, West, Holler & Crouch — Fundamentals of Analytical Chemistry, 9th Ed., Ch. 18: "Introduction to Electrochemistry"
📚 LibreTexts Chemistry — "Galvanic Cells" (chem.libretexts.org) | Khan Academy — Electrochemistry | MIT OCW 5.111
📚 Garnett & Treagust — J. Chem. Educ. 69, 121 (1992) "Conceptual difficulties in electrochemistry" | Sanger & Greenbowe — J. Chem. Educ. 74, 819 (1997) "Common student misconceptions in electrochemistry" | Taber — Chemical Misconceptions (RSC, 2002)