Nernst Equation Calculator: Cell Potential, ΔG, K and Membrane Potentials
By FindMySum · Last reviewed
Standard reduction potentials tell you a cell's voltage when every dissolved species is at 1 mol/L and every gas at 1 bar. Real cells rarely sit there: concentrations change as a battery discharges, a corrosion cell forms in seawater, or a nerve cell keeps potassium inside. The Nernst equation corrects the standard potential for the actual conditions. This Nernst equation calculator builds a cell from two half-reactions, or takes your own E°, and gives the potential, the Gibbs energy, the equilibrium constant and how the potential moves with concentration. It also handles concentration cells and the equilibrium potential of one ion across a cell membrane.
The equation
For a half-reaction or a whole cell reaction transferring n electrons:
E = E° − (RT ÷ nF) ln Q
- E° is the standard potential, in volts
- R is the gas constant, 8.314 462 618 J/(mol·K)
- T is the temperature in kelvin
- F is the Faraday constant, 96 485.332 C/mol, the charge on one mole of electrons
- Q is the reaction quotient: products over reactants, each raised to its coefficient, with pure solids and liquids left out
At 25 °C, RT ÷ F × ln 10 = 0.05916 V, so the equation is often written E = E° − (0.05916 V ÷ n) log Q. Each tenfold increase in Q lowers the potential by 59.16 mV divided by n.
Building a cell from two half-reactions
Pick the half-reaction that is reduced (the cathode) and the one that is oxidised (the anode). The calculator subtracts their standard reduction potentials, E°cell = E°cathode − E°anode, and takes n as the least common multiple of the two electron counts, the number of electrons that cancel when the half-reactions are scaled and added. Potentials are never multiplied by coefficients: E° is energy per unit charge, so scaling a half-reaction leaves it unchanged.
Worked example: the Daniell cell
The calculator opens with the classic copper–zinc cell. Copper(II) ions are reduced at the cathode (E° = +0.337 V) and zinc metal is oxidised at the anode (E° = −0.7618 V):
Zn(s) + Cu²⁺(aq) → Zn²⁺(aq) + Cu(s), n = 2
- E°cell = 0.337 − (−0.7618) = 1.0988 V
- Suppose the zinc solution is 1 mol/L and the copper solution 0.1 mol/L, so Q = [Zn²⁺] ÷ [Cu²⁺] = 10
- RT ÷ nF = 8.314 × 298.15 ÷ (2 × 96,485) = 0.012846 V
- E = 1.0988 − 0.012846 × ln 10 = 1.0988 − 0.0296 = 1.0692 V
The cell delivers about 30 mV less than standard because its products are ahead of its reactants. The Gibbs energy is ΔG = −nFE = −2 × 96,485 × 1.0692 = −206.3 kJ per mole of zinc, negative, so the reaction runs on its own.
Gibbs energy and the equilibrium constant
The potential and the Gibbs energy are two views of the same driving force: ΔG = −nFE. At standard conditions ΔG° = −nFE° and also ΔG° = −RT ln K, so
K = exp(nFE° ÷ RT)
For the Daniell cell, K is about 1.4 × 10³⁷: at equilibrium there is essentially no copper(II) left in solution. Because K depends exponentially on E°, even a few tenths of a volt make a reaction go to completion. When K is larger than a computer number can hold, the calculator shows it as a power of ten. As a cell discharges, Q climbs toward K and E falls toward zero; at Q = K the battery is flat.
Concentration cells
Put the same electrode in two solutions of different concentration and you get a cell with E° = 0 that still produces a voltage: E = (RT ÷ nF) ln([concentrated] ÷ [dilute]). Copper electrodes in 0.001 and 1 mol/L copper(II) give 0.0887 V at 25 °C. Electrons flow from the dilute side, where copper dissolves, to the concentrated side, where it plates out, until the concentrations match. Ion-selective electrodes and the glass pH electrode rely on the same logarithmic response.
Membrane potentials
A cell membrane that lets one ion through behaves like a concentration cell. The equilibrium (Nernst) potential for that ion, inside relative to outside, is
E = (RT ÷ zF) ln([out] ÷ [in])
where z is the ion's charge. In the membrane mode, the defaults are typical mammalian potassium concentrations at 37 °C, 5 mM outside and 140 mM inside, giving about −89 mV. Sodium, at 145 mM outside and 12 mM inside, gives about +67 mV, and chloride (z = −1) about −64 mV for 110 and 10 mM. A real neuron's resting potential, near −70 mV, sits between these because the membrane is leaky to several ions at once; the Goldman–Hodgkin–Katz equation weights each by its permeability.
Reading the chart
The chart plots the potential against log₁₀ Q over twelve decades centred on your value, with your point marked. The line is straight because E depends on the logarithm of Q, and its slope is −0.05916 V ÷ n at 25 °C, so a two-electron reaction is half as sensitive to concentration as a one-electron reaction. Where the line crosses zero, Q equals K.
Limits
The calculator uses concentrations in place of activities, so above about 0.1 mol/L, where ions interact strongly, measured potentials depart from the ideal values. Standard potentials are for 25 °C; at other temperatures only the RT ÷ nF term changes, while E° itself also shifts slightly with temperature. Liquid-junction potentials, overpotentials at the electrodes and the voltage lost to internal resistance when current flows all lower what a voltmeter reads on a working cell. The standard potentials come from the OpenStax Chemistry 2e appendix, which compiles the CRC Handbook and Bard, Parsons and Jordan, or, if you choose it, from the CRC Handbook's electrochemical series directly. The two tables agree except on four couples: copper(II)/copper is +0.337 V in OpenStax and +0.3419 V in the CRC, which makes the Daniell cell 1.0988 V or 1.1037 V.
More questions
Who was Walther Nernst?
A German physical chemist who published the equation in 1889, while working on how galvanic cells produce a voltage. He later formulated the third law of thermodynamics and received the 1920 Nobel Prize in Chemistry for his work in thermochemistry.
Why is the hydrogen electrode set to zero volts?
Only differences in potential can be measured, so one electrode has to serve as the reference. By convention, the standard hydrogen electrode, platinum in 1 mol/L acid with hydrogen gas at 1 bar, is given exactly 0 V at every temperature, and every other standard reduction potential is quoted against it.
What is the difference between a galvanic and an electrolytic cell?
A galvanic (voltaic) cell runs a spontaneous reaction and delivers electrical work: its potential is positive and ΔG is negative. An electrolytic cell uses an external power supply to drive a non-spontaneous reaction, such as charging a battery, electroplating or splitting water, so the applied voltage must exceed the cell's own reversed potential plus losses.
How does a pH meter use the Nernst equation?
A glass electrode develops a potential that depends on the hydrogen-ion activity on either side of its thin glass membrane. By the Nernst equation, that potential changes by about 59.16 mV per pH unit at 25 °C. The meter is calibrated with buffers of known pH, and many meters correct the slope for temperature automatically.
Why do some textbooks use 0.0592 and others 0.05916?
Both are RT ln(10) ÷ F at 25 °C rounded to different numbers of digits; the full value is 0.059159 V. At body temperature, 37 °C, the factor is 61.5 mV, which is why physiology texts often write 61.5 log([out] ÷ [in]) for a monovalent ion.
Can the Nernst equation predict corrosion?
It tells you whether a metal can oxidise under given conditions: iron has a lower reduction potential than oxygen in water, so rusting is spontaneous. Pourbaix diagrams apply the Nernst equation across pH and potential to show where a metal corrodes, passivates or is immune. How fast it corrodes is a kinetics question the equation does not answer.
Sources
- OpenStax Chemistry 2e, §17.3 Electrode and Cell Potentials
- OpenStax Chemistry 2e, §17.4 Potential, Free Energy, and Equilibrium
- OpenStax Chemistry 2e, Appendix L: Standard Electrode (Half-Cell) Potentials
- Vanýsek, P., Electrochemical Series, CRC Handbook of Chemistry and Physics, 93rd ed. (2012), pp. 5-80 to 5-89
- NIST, CODATA value: Faraday constant
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.