What is the Nernst equation?
Nernst Equation: The potential of an electrochemical cell depends on the standard potential, the temperature, and the ratio of product to reactant activities. — Walther Nernst, 1889
A battery's label gives one voltage, but the actual voltage drifts as the battery runs down. A nerve cell sits at about −70 mV, even though it contains no metal electrodes at all. Both effects come from the same law. The voltage an electrochemical system produces depends on the concentrations of the chemicals involved, not just on which chemicals they are. The Nernst equation calculates that dependence.
Every redox reaction has a standard potential, E°, measured when every dissolved species is at 1 mol/L and every gas at 1 bar. Tables of E° tell you which reactions "want" to happen. Real solutions are rarely at standard conditions. The Nernst equation corrects E° using the reaction quotient Q, the ratio of product to reactant concentrations. It also includes the temperature.
- When products are scarce and reactants plentiful (Q < 1), the reaction is pushed forward harder and E rises above E°.
- As products build up (Q > 1), E falls.
- When E reaches zero, the reaction is at equilibrium. A flat battery has reached this state.
The German chemist Walther Nernst derived the equation in 1889 at the age of 25. He later won the 1920 Nobel Prize in Chemistry for his work in thermochemistry, including the third law of thermodynamics.
The formula explained
| Symbol | Quantity | SI unit | Meaning |
|---|---|---|---|
| E | Cell potential | V | Cell (or half-cell) potential under actual conditions |
| E° | Standard potential | V | Standard potential at 1 M, 1 bar |
| T | Temperature | K | Absolute temperature |
| n | Electrons transferred | — | Number of electrons transferred in the balanced reaction |
| Q | Reaction quotient | — | Reaction quotient (products over reactants, as activities) |
Constants. R = 8.314 J/(mol·K) and F = 96 485 C/mol, the Faraday constant, the charge on one mole of electrons. RT/F is 25.69 mV at 25 °C and 26.73 mV at 37 °C.
The log₁₀ form at 25 °C. Converting ln to log₁₀ multiplies by 2.303, so at 25 °C: E = E° − (0.05916 V / n) log₁₀ Q. Each tenfold change in Q shifts the potential by 59.16/n mV.
n is the number of electrons transferred in the balanced reaction as written. It is 2 for Zn + Cu²⁺ → Zn²⁺ + Cu.
Q is products over reactants, each raised to its stoichiometric coefficient. Pure solids, pure liquids and the solvent count as 1 and are left out. Dissolved species use concentration in mol/L, and gases use partial pressure in bar. Strictly these are activities, but concentrations are a good approximation in dilute solutions.
Links to energy and equilibrium. ΔG = −nFE, so a positive cell potential means a spontaneous reaction. At equilibrium E = 0 and Q = K, which gives E° = (RT/nF) ln K.
For a single ion across a membrane, the equation reduces to the Nernst potential: E = (RT/zF) ln(Cout/Cin), where z is the ion's charge.
How to use this calculator
- Choose the quantity you want to find in the Calculate menu. It is highlighted as the result field.
- Enter the known values. Scientific notation such as
1.6e-11is accepted. - Select a unit for each value. Units are converted to SI automatically.
- The answer updates as you type. Open Show calculation steps to see the working, or use Copy result to share a link with your inputs.
Step-by-step worked example
Problem. (a) A Daniell cell (Zn | Zn²⁺ ‖ Cu²⁺ | Cu, E° = 1.10 V, n = 2) has [Zn²⁺]/[Cu²⁺] = 0.01 at 25 °C. Find E. (b) Find the equilibrium constant of the Daniell cell reaction. (c) A nerve cell has 140 mM K⁺ inside and 5 mM outside, at 37 °C. Find the potassium Nernst potential.
Part (a)
- Prefactor. RT/(nF) = 8.314 × 298.15 / (2 × 96 485) = 0.01285 V.
- Reaction quotient. Q = [Zn²⁺]/[Cu²⁺] = 0.01, since the metals are solids and count as 1.
- Potential. E = 1.10 − 0.01285 × ln(0.01) = 1.10 + 0.0592 = 1.159 V. With few products, the cell gives slightly more than its standard voltage.
Part (b)
- Rearrange. ln K = nFE°/(RT) = 2 × 1.10 / 0.02569 = 85.6.
- K = e85.6 ≈ 1.5 × 10³⁷. The reaction goes essentially to completion.
Part (c)
- Thermal voltage at 310.15 K. RT/F = 0.02673 V. K⁺ has z = 1.
- Potential. E = 0.02673 × ln(5/140) = 0.02673 × (−3.33) = −89 mV, inside relative to outside.
- In the calculator, set E° = 0, n = 1, T = 37 °C and Q = Cin/Cout = 28.
Try it: the calculator's defaults reproduce part (a) and also show ΔG.
How to interpret the result
- Concentration effects are modest. At 25 °C, a hundredfold change in Q moves a two-electron cell by only 59 mV. That is why battery voltages stay fairly flat over most of their discharge.
- Sign tells you direction. Positive E means the reaction as written is spontaneous. Negative E means the reverse reaction is spontaneous.
- Close to zero means close to equilibrium. A cell with E ≈ 0 can deliver almost no useful energy.
- For membranes, compare with the measured potential. A nerve cell's resting potential (about −70 mV) lies between the potassium (about −89 mV) and sodium (about +60 mV) Nernst potentials. It is close to potassium's because the resting membrane is most permeable to K⁺. Combining several ions requires the Goldman equation.
Real-world applications
- pH meters. A glass pH electrode responds to H⁺ according to the Nernst equation. Its ideal slope is 59.16 mV per pH unit at 25 °C. Calibration with buffers checks that slope.
- Ion-selective electrodes. Electrodes for fluoride, sodium, potassium, calcium and other ions follow the same law. They are used in clinical blood analysers and water testing.
- Batteries and fuel cells. The Nernst equation predicts how open-circuit voltage changes with state of charge, gas pressure and temperature. Battery management systems use voltage to estimate how much charge is left.
- Neuroscience. Resting and action potentials in nerve and muscle cells depend on the Nernst potentials of K⁺, Na⁺, Cl⁻ and Ca²⁺. Changes in blood potassium alter heart rhythm for this reason.
- Corrosion. Whether a metal corrodes depends on its potential, which depends on pH and dissolved ion concentrations. Pourbaix diagrams, which map corrosion against pH and potential, are built from the Nernst equation.
Common mistakes and unit-conversion tips
- Wrong n. Count the electrons in the balanced overall reaction, not in one half-reaction written differently.
- Inverting Q. Q is products over reactants for the reaction as written. If you reverse the reaction, you must also reverse the sign of E° and invert Q.
- Mixing ln and log₁₀. 0.05916 goes with log₁₀ at 25 °C. RT/nF goes with ln.
- Including solids in Q. Zn(s), Cu(s) and H₂O(l) are left out.
- Using 0.0592 V at other temperatures. At 37 °C the factor is 0.0615 V. Enter your actual temperature.
- Volts and millivolts. Membrane potentials are usually quoted in mV, cell potentials in V. 0.089 V = 89 mV.
Frequently asked questions
What happens when E = 0?
The cell is at equilibrium and Q equals the equilibrium constant K, so E° = (RT/nF) ln K. A "dead" battery has reached this state.
Should I use concentrations or activities?
Strictly activities. In dilute solutions, molar concentrations (and partial pressures in bar for gases) are a good approximation.
What is the 0.0592 V form of the Nernst equation?
At 25 °C, RT/F × ln 10 = 0.05916 V, so E = E° − (0.05916/n) log₁₀ Q. It is the same equation written with base-10 logarithms, valid only at 25 °C.
How do I calculate a membrane potential with the Nernst equation?
For one ion, E = (RT/zF) ln(C_out/C_in). In this calculator, set E° = 0, n = the ion charge z, Q = C_in/C_out and the temperature. For K⁺ with 140 mM inside and 5 mM outside at 37 °C, E ≈ −89 mV.
How is cell potential related to Gibbs free energy?
ΔG = −nFE. A positive cell potential corresponds to a negative ΔG, a spontaneous reaction. For the Daniell cell at standard conditions, ΔG° = −2 × 96 485 × 1.10 = −212 kJ/mol.
Related calculators
- pH Calculator: the quantity a pH electrode measures through the Nernst equation.
- Einstein Relation Calculator (Mobility ↔ Diffusivity): how the same thermal voltage kT/q links ion mobility and diffusion.
- Arrhenius Equation Calculator: how temperature changes the rate of electrode reactions.
- Ohm's Law Calculator: current and voltage once the cell is connected to a circuit.
Sources and further reading
- Nernst, W. (1889). Die elektromotorische Wirksamkeit der Ionen. Zeitschrift für physikalische Chemie, 4, 129–181.
- Bard, A. J., & Faulkner, L. R. (2001). Electrochemical Methods: Fundamentals and Applications (2nd ed.). Wiley.
- Atkins, P., de Paula, J., & Keeler, J. (2018). Atkins' Physical Chemistry (11th ed.). Oxford University Press. Chapter on electrochemical cells.
- Hille, B. (2001). Ion Channels of Excitable Membranes (3rd ed.). Sinauer Associates.