Every living cell holds a battery. Ion pumps build up concentration differences — potassium high inside, sodium high outside — and each ion’s equilibrium voltage follows the Nernst equation E = (RT/zF) ln([out]/[in]), the point where the electrical pull exactly cancels the chemical push. Potassium’s sits near −90 mV, sodium’s near +60 mV; the resting membrane lives between them. The equation under every heartbeat and thought.
The demo computes the equilibrium potential for potassium and sodium (ln via series): live demo
“The membrane voltage is the average of the ions.” — the resting potential is a weighted balance (Goldman) dominated by whichever ions the membrane is most permeable to, not a plain average. cited
A battery, written in a logarithm. biophysics
On i-13 (range-reduced ln), Eᵤ ≈ −87 mV (in 140 / out 5) and Eₘₐ ≈ +65 mV (out 145 / in 12) — textbook −90 / +60: