Some chemical changes simply refuse to happen on their own. A lump of copper will never crawl out of a blue copper-sulfate solution by itself — that would be running the reaction uphill. Electrolysis is the trick of pushing it uphill anyway, by forcing electric current through the liquid. Hook up a battery: at one metal plate (the cathode) the electrons you supply grab onto positive ions and turn them into solid metal; at the other plate (the anode) something is forced to give those electrons up. The more electricity you push, the more metal you make. That is the whole idea — now let's make it exact.
"Amount of electricity" means electric charge, $Q$, measured in coulombs. A steady current $I$ (amperes) flowing for a time $t$ (seconds) delivers $Q = I\,t$. In the 1830s Michael Faraday found that the mass deposited is simply proportional to that charge. Each ion needs a fixed number of electrons to become a neutral atom — call it $n$ ($n=2$ for $\text{Cu}^{2+}$, $n=1$ for $\text{Ag}^+$) — and one mole of electrons always carries the same charge, Faraday's constant $F = 96{,}485$ C. Stitch these together and you get the one equation that runs this whole page:
$$m = \frac{I\,t\,M}{n\,F}$$where $M$ is the molar mass of the deposited element.
First, $n$ is "how many electrons per ion," so a triply-charged ion like $\text{Al}^{3+}$ swallows three electrons per atom — one reason aluminium smelting is such an electricity hog. Second, no real cell is perfect: side reactions (often reducing water instead of the metal) steal a slice of the current, so the honest formula carries a current efficiency $\eta_I$ a little below 1:
$$m = \eta_I\,\frac{I\,t\,M}{n\,F}$$Voltage plays a separate role. The applied voltage must beat the reaction's own reverse EMF plus extra "overpotential," $V_{\text{applied}} = |E^\circ| + \eta_{\text{over}} + IR$. Voltage decides whether the reaction runs at all; charge decides how much metal you get. On the panel, current $I$ and time $t$ multiply into the charge $Q$, the preset sets $M$ and $n$, the efficiency slider trims the mass, and the voltage slider only feeds the energy-cost readout.
| Symbol | Meaning | SI Unit |
|---|---|---|
| $m$ | Mass of substance deposited or liberated | g |
| $Q$ | Total electric charge passed | C (coulomb) |
| $I$ | Constant current | A (ampere) |
| $t$ | Time current flows | s |
| $M$ | Molar mass of substance | g/mol |
| $n$ | Charge number of ion (electrons per ion) | — |
| $F$ | Faraday's constant | 96 485 C/mol e⁻ |
| $M/n$ | Equivalent weight (electrochemical equivalent × F) | g/equiv |
📚 Atkins & de Paula — Physical Chemistry, 11th Ed., §6F: "Electrolysis" | Skoog et al. — Fundamentals of Analytical Chemistry, 9th Ed., Ch. 22 | Bockris & Reddy — Modern Electrochemistry, Vol. 2A
📚 LibreTexts — "Electrolysis" | Khan Academy — Faraday's laws | MIT OCW 5.111
📚 Sanger & Greenbowe — J. Chem. Educ. 74, 819 (1997) | Garnett & Treagust — J. Chem. Educ. 69, 121 (1992) | Taber — Chemical Misconceptions (RSC, 2002)