Physical Chemistry 1 • Electrochemistry

Nernst Equation — Derive and use the Nernst equation in thermodynamic terms

Connecting Gibbs energy to cell potential reveals how concentration governs electrochemical equilibrium.

An atom with a chemistry flask and thermometer for physical chemistry fundamentals.
Inside this lesson 10 sections 5 questions 10 figures

SECTION 1

Historical Context & Motivation

The relationship between electrical work and chemical change was one of the great unifying insights of nineteenth-century science. By the 1880s, thermodynamic theory had matured through the work of Clausius, Gibbs, and Helmholtz, while electrochemistry had amassed decades of empirical data on voltaic cells. Yet a single, rigorous equation connecting the electromotive force (EMF) of a galvanic cell to the concentrations of its reactants and products remained elusive. The gap was conceptual: researchers needed to express cell potential as a thermodynamic state function and then allow that function to vary with composition.

1836 • Daniell Cell Standardized

John Frederic Daniell designs a reliable two-compartment cell using Zn and Cu electrodes, providing a stable reference voltage and motivating quantitative study of EMF dependence on solution composition.

1876 • Gibbs Free Energy Formalized

Josiah Willard Gibbs publishes his monumental treatise linking chemical potential, temperature, and composition through the function G = H − TS, establishing the thermodynamic foundation on which the Nernst equation would rest.

1889 • Nernst Equation Published

Walther Nernst, then only 25 years old, derives the relationship E = E° − (RT/nF) ln Q while working under Wilhelm Ostwald in Leipzig. The equation elegantly merges thermodynamics with electrochemistry.

1920 • Debye–Hückel Theory

Peter Debye and Erich Hückel introduce activity coefficients for strong electrolytes, refining the Nernst equation for real (non-ideal) solutions and extending its quantitative accuracy.

1949 • Modern Electrode Conventions

The IUPAC Stockholm convention standardizes electrode potential signs and half-reaction notation, ensuring unambiguous application of the Nernst equation in research and education worldwide.

The central question that Nernst addressed can be stated simply: if we know the standard cell potential E° for a reaction, how does the actual cell potential change when the reactant and product concentrations deviate from their standard states? Answering this question required recognizing that the Gibbs energy change of a reaction is directly proportional to the electrical work a cell can perform, and that Gibbs energy itself depends logarithmically on the reaction quotient Q. The result—the Nernst equation—remains one of the most widely used equations in chemistry, biochemistry, neuroscience, and materials engineering.

SECTION 2

Core Thermodynamic Principles

Before deriving the Nernst equation, we must establish several thermodynamic relationships that serve as its foundation. The concepts below link macroscopic thermodynamic quantities—Gibbs energy, enthalpy, entropy—to the measurable voltage of an electrochemical cell. Mastery of these connections is essential because the Nernst equation is not an empirical fit; it is a direct consequence of the second law of thermodynamics applied to an isothermal, isobaric electrochemical process.

1

Gibbs Energy & Electrical Work

For a reversible process at constant T and P, the maximum non-expansion work equals ΔG. In an electrochemical cell, this work is electrical: ΔG = −nFE, where n is the number of moles of electrons transferred and F is the Faraday constant (96 485 C mol⁻¹).
2

Standard State Convention

Standard conditions define all solutes at unit activity (≈1 mol L⁻¹ for dilute solutions), gases at 1 bar, and pure solids/liquids in their most stable form. Under these conditions, ΔG° = −nFE° and E° is the standard cell potential.
3

Reaction Quotient Q

The reaction quotient Q = Π(aᵢ^νᵢ) encodes the instantaneous ratio of product activities to reactant activities raised to their stoichiometric powers. At equilibrium, Q = K.
4

Chemical Potential & Activity

Each species i has chemical potential μᵢ = μᵢ° + RT ln aᵢ. Summing over all species weighted by stoichiometric coefficients gives ΔG = ΔG° + RT ln Q, the key isothermal expression connecting standard and non-standard states.
5

Equilibrium & Cell Potential

At equilibrium E = 0 and Q = K, so ΔG° = −RT ln K. This links the equilibrium constant directly to E°: E° = (RT/nF) ln K, a powerful bridge between thermodynamics and electrochemistry.
✦

KEY TAKEAWAY

Think of a galvanic cell as a thermodynamic engine that converts chemical Gibbs energy into electrical work. Just as a dam converts gravitational potential energy into kinetic energy of water—and produces less power when the reservoir level drops—an electrochemical cell produces less voltage as reactants are consumed and products accumulate. The Nernst equation quantifies exactly how much the 'reservoir level' (Q) shifts the available 'driving force' (E) from its standard-state maximum (E°).

SECTION 3

Visual Explanation — From ΔG to E

The diagram below illustrates the thermodynamic derivation pathway that leads to the Nernst equation. Starting from the fundamental relationship ΔG = ΔG° + RT ln Q and the electrochemical identity ΔG = −nFE, we substitute and rearrange to obtain the final form. The flowchart visually traces each algebraic step so that the logical chain is transparent.

Derivation Pathway: Gibbs Energy → Nernst EquationΔG = ΔG° + RT ln QIsothermal Gibbs energy expressionΔG = −nFEElectrical work identityStep 1: Substitute ΔG = −nFE into both sides−nFE = −nFE° + RT ln QStep 2: Divide both sides by −nFE = E° − (RT / nF) ln QNERNST EQUATIONE = E° − (RT / nF) ln QAt T = 298.15 K: E = E° − (0.02569 V / n) ln Q = E° − (0.05916 V / n) log QPurple = thermodynamic inputPink = electrochemical identityCyan = algebraic steps
The derivation begins with two independent expressions for ΔG (purple and pink boxes at top). Substituting the electrochemical identity into the thermodynamic expression and dividing by −nF yields the Nernst equation in the green box. The 298 K numerical form is shown below for convenience.

Notice that the derivation requires only two inputs: the isothermal Gibbs energy expression for a reaction mixture and the identification of electrical work with −nFE. No additional postulates are needed. The entire concentration dependence of the cell potential is captured by the natural logarithm of the reaction quotient Q, which incorporates activities of all species raised to their stoichiometric powers. When Q = 1 (standard-state conditions), ln Q = 0 and E reduces to E°, confirming internal consistency.

SECTION 4

Mathematical Framework

We now present the formal derivation in full, beginning from the chemical potential and building to the general Nernst equation. Throughout, we maintain rigor by distinguishing activities from concentrations and by tracking the sign conventions established by IUPAC.

Step 1 — Gibbs Energy of Reaction in Terms of Activities

CHEMICAL POTENTIAL

μi=μi°+RTlnaiμᵢ = μᵢ° + RT ln aᵢ

μᵢ = chemical potential of species i; μᵢ° = standard chemical potential; R = 8.314 J mol⁻¹ K⁻¹; T = absolute temperature (K); aᵢ = thermodynamic activity of species i.

For a general reaction Σ νᵢ Bᵢ = 0 (products positive, reactants negative), the Gibbs energy of reaction at arbitrary composition is ΔG = Σ νᵢ μᵢ. Substituting the expression for μᵢ yields the central thermodynamic result:

GIBBS ENERGY — GENERAL

ΔG=ΔG°+RTlnQwhereQ=ΠaiνΔG = ΔG° + RT ln Q where Q = Π aᵢ^νᵢ

ΔG° = Σ νᵢ μᵢ° = standard Gibbs energy of reaction; Q = reaction quotient expressed in activities; νᵢ > 0 for products, νᵢ < 0 for reactants.

Step 2 — Connecting ΔG to Cell Potential

When a galvanic cell operates reversibly, the electrical work done by the cell equals the decrease in Gibbs energy. The charge transferred when n moles of electrons pass through the external circuit is nF, and the work per unit charge is E. Therefore, the reversible electrical work is w_elec = nFE, and since ΔG = −w_max for a constant-T, constant-P process:

GIBBS–EMF RELATIONSHIP

ΔG=−nFEΔG°=−nFE°ΔG = −nFE ΔG° = −nFE°

n = moles of electrons transferred per mole of reaction as written; F = Faraday constant = 96 485 C mol⁻¹; E = cell EMF under actual conditions; E° = standard cell EMF (all activities = 1).

Step 3 — Derivation of the Nernst Equation

Substituting ΔG = −nFE and ΔG° = −nFE° into the Gibbs energy expression:

SUBSTITUTION

−nFE=−nFE°+RTlnQ−nFE = −nFE° + RT ln Q

Dividing every term by −nF isolates E.

NERNST EQUATION — GENERAL FORM

E=E°−(RT/nF)lnQE = E° − (RT / nF) ln Q

This is the Nernst equation in its most general thermodynamic form. At T = 298.15 K, RT/F = 0.025693 V. Converting from natural log to log₁₀ (ln Q = 2.3026 log Q) gives the common form: E = E° − (0.05916 V / n) log Q.

⚠

Sign Convention Reminder

Under the IUPAC convention, E_cell = E_cathode − E_anode. The Nernst equation applies to a complete cell reaction or to a single half-reaction. For a reduction half-reaction, Q contains only the species appearing in that half-reaction with the oxidized form in the numerator of Q (for the reduction as written).

SECTION 5

Graphical Analysis — E versus ln Q

The Nernst equation predicts that a plot of cell potential E against ln Q is a straight line with slope −RT/(nF) and y-intercept E°. This linearity is a powerful diagnostic tool: deviations from linearity reveal non-ideal behavior, junction potentials, or side reactions. The plot also provides a visual method for determining the equilibrium constant, since E = 0 at Q = K.

Cell Potential vs. ln Q (n = 2, T = 298 K)ln Q →E / V →0.000.200.400.600.80−40−200204060E° (ln Q = 0)E = E° = 0.40 VEquilibriumE = 0, ln Q = ln KΔ EΔ(ln Q)slope = −RT/(nF)= −0.01285 VKey relationships• y-intercept = E°• x-intercept = ln K = nFE°/RT• slope = −RT/(nF) = −0.01285 V
A plot of E versus ln Q for a hypothetical cell with E° = 0.40 V and n = 2 at 298 K. The purple dot marks standard conditions (ln Q = 0), and the green dot marks equilibrium (E = 0). The slope in amber equals −RT/(nF).

Several important features emerge from the graph. First, the slope is always negative (since R, T, n, and F are all positive), confirming Le Chatelier's intuition: as products accumulate (Q increases), the driving force for the forward reaction (E) decreases. Second, the x-intercept equals ln K = nFE°/(RT), providing a direct electrochemical route to the equilibrium constant. For our example with E° = 0.40 V and n = 2, ln K ≈ 31.1, giving K ≈ 3.3 × 10¹³—an enormously product-favored reaction. Third, the magnitude of the slope decreases with increasing n, meaning that reactions transferring more electrons are less sensitive to concentration changes on a per-electron basis.

ParameterLocation on PlotPhysical Meaning
E°y-intercept (ln Q = 0)Maximum driving force under standard conditions
−RT/(nF)Slope of the lineSensitivity of E to composition; steeper for fewer electrons transferred
ln Kx-intercept (E = 0)Equilibrium composition; larger values indicate more product-favored reactions
E > 0Region left of x-interceptSpontaneous forward reaction (ΔG < 0)
E < 0Region right of x-interceptNon-spontaneous forward reaction (ΔG > 0); reverse reaction is spontaneous

Summary of key features on the E vs. ln Q plot

SECTION 6

Worked Example — Zinc–Copper Daniell Cell

Consider a Daniell cell operating at 298 K with the following conditions: a zinc electrode immersed in 0.10 M ZnSO₄ and a copper electrode immersed in 2.0 M CuSO₄. The overall cell reaction is Zn(s) + Cu²⁺(aq) → Zn²⁺(aq) + Cu(s). Given E°(Cu²⁺/Cu) = +0.340 V and E°(Zn²⁺/Zn) = −0.763 V, calculate the cell potential E.

Daniell Cell at Non-Standard Concentrations

  1. 1

    Step 1 — Determine E° for the Cell

    Using the IUPAC convention, E°_cell = E°_cathode − E°_anode. Copper is reduced (cathode) and zinc is oxidized (anode). Therefore E°_cell = (+0.340 V) − (−0.763 V).
    E°_cell = +1.103 V
  2. 2

    Step 2 — Identify n and Write Q

    The balanced reaction Zn(s) + Cu²⁺(aq) → Zn²⁺(aq) + Cu(s) transfers n = 2 electrons. The reaction quotient is Q = [Zn²⁺]/[Cu²⁺] because the activities of pure solids are unity. Substituting the given concentrations (approximating activities by molar concentrations in this dilute regime): Q = (0.10)/(2.0).
    Q = 0.050
  3. 3

    Step 3 — Apply the Nernst Equation

    Using the 298 K form: E = E° − (0.05916 V / n) log Q. Substituting: E = 1.103 V − (0.05916 / 2) log(0.050). We compute log(0.050) = −1.301.
    E = 1.103 − (0.02958)(−1.301) = 1.103 + 0.0385
  4. 4

    Step 4 — Calculate and Interpret

    Adding the correction term to the standard potential gives the non-standard cell potential. Since Q < 1 (more reactants than products relative to standard state), the cell potential is larger than E°. This is consistent with Le Chatelier's principle: excess reactant (Cu²⁺) and diminished product (Zn²⁺) drive the reaction more strongly forward.
    E = +1.142 V
💡

Quick Check

Whenever Q < 1, the logarithmic term is negative, making −(RT/nF) ln Q positive, so E > E°. When Q > 1, the opposite holds and E < E°. At Q = K, E = 0 and the cell is at equilibrium—a dead battery.

SECTION 7

Strengths, Limitations & Practical Considerations

The Nernst equation is remarkably powerful, but like any thermodynamic result it has a well-defined domain of validity. Understanding when and why it breaks down is as important as knowing how to use it. The table below contrasts the equation's strengths with its limitations.

StrengthsLimitations
Provides exact thermodynamic relationship between E, T, and composition at equilibrium or near-equilibrium.Applies only to reversible (equilibrium) conditions; real cells with significant current draw exhibit overpotential losses not captured by the equation.
Directly connects electrochemistry to thermodynamic quantities (ΔG, K, ΔS via temperature derivative of E).Uses activities, not concentrations. For concentrated or strongly interacting electrolytes, activity coefficients (γ) deviate substantially from unity.
Applies to any electrochemical system: galvanic cells, electrolytic cells, membrane potentials, corrosion.Assumes isothermal operation; temperature gradients across the cell introduce thermoelectric effects not described by the simple Nernst form.
Predicts direction of spontaneous change: E > 0 ⟹ ΔG < 0 ⟹ forward reaction spontaneous.Does not address kinetics: a thermodynamically favorable cell may have a negligibly slow rate due to high activation barriers.
Simple linear form (E vs. ln Q) facilitates graphical and statistical analysis of experimental data.Liquid junction potentials in cells with salt bridges introduce a systematic error not included in the ideal Nernst treatment.

Strengths and limitations of the Nernst equation

✦

KEY TAKEAWAY

The Nernst equation is the electrochemical equivalent of the ideal gas law: it gives the correct functional form and is quantitatively accurate under 'ideal' conditions (dilute solutions, no current, isothermal). Just as real gases require van der Waals corrections, real electrochemical cells require activity coefficients, overpotential models (Butler–Volmer), and junction potential corrections to match experimental precision.

SECTION 8

Connection to Advanced Thermodynamic & Kinetic Theory

The Nernst equation is a gateway to several advanced topics in physical chemistry and materials science. By differentiating the Nernst equation with respect to temperature, one obtains the temperature coefficient of EMF, (∂E/∂T)_P = ΔS/(nF), which provides an elegant electrochemical method for measuring reaction entropies. Combining this with E itself yields ΔH = −nF[E − T(∂E/∂T)_P], completing the thermodynamic trifecta of ΔG, ΔH, and ΔS from purely electrical measurements.

Nernst (Thermodynamic)Butler–Volmer (Kinetic)
Describes equilibrium or open-circuit potentialDescribes current–potential relationship under net current flow
No kinetic parameters neededRequires exchange current density (i₀) and transfer coefficient (α)
E = E° − (RT/nF) ln Qi = i₀{exp[αnFη/(RT)] − exp[−(1−α)nFη/(RT)]}, where η = E − E_eq
Derived from Gibbs energy; purely thermodynamicDerived from transition-state theory; combines thermodynamics with activation barriers
Predicts whether reaction is spontaneousPredicts how fast it proceeds at a given overpotential

Nernst equation vs. Butler–Volmer equation

In biological systems, the Nernst equation takes on a specialized form known as the Goldman–Hodgkin–Katz equation, which extends the single-ion Nernst potential to membranes permeable to multiple ions. This extension is central to neuroscience and electrophysiology. In corrosion science, Pourbaix diagrams (E–pH diagrams) are constructed by applying the Nernst equation systematically to every relevant half-reaction as a function of pH, delineating regions of immunity, corrosion, and passivation for a metal in aqueous solution. In energy storage, the Nernst equation forms the starting point for understanding open-circuit voltage in batteries and fuel cells, with deviations from Nernstian behavior signaling internal resistance, mass-transport limitations, or degradation.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain, using the Nernst equation, why a galvanic cell's voltage decreases as the cell discharges. What happens to Q, and how does this affect E? At what value of Q does the cell reach equilibrium?
Show answer
As a galvanic cell discharges, reactants are consumed and products accumulate, causing the reaction quotient Q to increase. According to the Nernst equation E = E° − (RT/nF) ln Q, increasing Q makes ln Q larger and more positive, which subtracts a larger correction term from E°. Consequently, E decreases monotonically. The cell reaches equilibrium when ΔG = 0 and therefore E = 0. At that point, Q = K (the equilibrium constant), and the cell can no longer perform useful work—it is a 'dead battery.'

Question 2: BASIC CALCULATION

A silver–silver ion half-cell (Ag⁺/Ag, E° = +0.799 V) is constructed with [Ag⁺] = 0.0010 M at 298 K. Calculate the reduction potential of this half-cell using the Nernst equation.
Show answer
The reduction half-reaction is Ag⁺(aq) + e⁻ → Ag(s), with n = 1. The reaction quotient for the reduction is Q = 1/[Ag⁺] = 1/0.0010 = 1000 (activity of solid Ag is 1). Using the Nernst equation: E = 0.799 − (0.05916/1) × log(1/0.0010). Wait—we must be careful: for the reduction as written, Q = 1/a(Ag⁺) = 1/0.0010 = 1000. Then E = 0.799 − (0.05916)(log 1000) = 0.799 − (0.05916)(3.000) = 0.799 − 0.1775 = +0.622 V. The lower Ag⁺ concentration reduces the driving force for reduction, as expected.

Question 3: INTERMEDIATE

For the cell Pt | H₂(1 bar) | H⁺(a = 1) || Fe³⁺(0.050 M), Fe²⁺(0.50 M) | Pt, calculate the cell potential at 298 K. Standard reduction potentials: E°(H⁺/H₂) = 0.000 V; E°(Fe³⁺/Fe²⁺) = +0.771 V.
Show answer
The cathode is the Fe³⁺/Fe²⁺ couple (higher E°) and the anode is the SHE. The overall reaction is H₂(g) + 2 Fe³⁺(aq) → 2 H⁺(aq) + 2 Fe²⁺(aq), so n = 2. E°_cell = 0.771 − 0.000 = 0.771 V. The reaction quotient is Q = [H⁺]²[Fe²⁺]² / (P(H₂)[Fe³⁺]²) = (1)²(0.50)² / (1)(0.050)² = 0.25/0.0025 = 100. Applying the Nernst equation: E = 0.771 − (0.05916/2) × log(100) = 0.771 − (0.02958)(2.000) = 0.771 − 0.0592 = +0.712 V. The excess Fe²⁺ relative to Fe³⁺ reduces the cell voltage below E°, consistent with Le Chatelier's principle opposing the forward reaction.

Question 4: APPLIED

A pH electrode operates on Nernstian principles. If a glass electrode–reference electrode assembly measures E = +0.237 V at 298 K for a solution, and the system obeys E = constant − (0.05916 V) × pH, with the constant calibrated as +0.651 V, what is the pH of the solution? If the temperature rises to 310 K, how does the slope change and what error would result if the instrument is not recalibrated?
Show answer
Rearranging: pH = (constant − E)/0.05916 = (0.651 − 0.237)/0.05916 = 0.414/0.05916 = 6.997, so pH ≈ 7.00. At 310 K, the Nernstian slope becomes RT ln 10 / F = (8.314 × 310 × 2.3026)/96485 = 0.06153 V per pH unit, compared to 0.05916 V at 298 K. If the instrument still uses 0.05916 V/pH, the apparent pH would be calculated as (0.651 − E_measured)/0.05916, but the actual relationship at 310 K is (0.651 − E)/0.06153. For a true pH 7 solution at 310 K, E = 0.651 − 7(0.06153) = 0.651 − 0.4307 = 0.2203 V. Reading this with the 298 K slope gives pH = (0.651 − 0.2203)/0.05916 = 7.28. The uncorrected instrument would overestimate the pH by about 0.28 units—a significant error in analytical or clinical work.

Question 5: CRITICAL THINKING

Starting from the Nernst equation, derive an expression for the temperature coefficient (∂E°/∂T)_P in terms of the standard reaction entropy ΔS°. Then, for a cell where E° = 1.100 V at 298 K and ΔS° = −21.0 J mol⁻¹ K⁻¹ with n = 2, calculate ΔG°, ΔH°, and predict whether E° increases or decreases with temperature.
Show answer
From ΔG° = −nFE° and the Gibbs–Helmholtz relation ΔG° = ΔH° − TΔS°, we differentiate ΔG° = −nFE° with respect to T at constant P: (∂ΔG°/∂T)_P = −nF(∂E°/∂T)_P. Since (∂ΔG°/∂T)_P = −ΔS°, we obtain (∂E°/∂T)_P = ΔS°/(nF). Substituting: (∂E°/∂T)_P = −21.0/(2 × 96485) = −1.089 × 10⁻⁴ V K⁻¹. Because (∂E°/∂T)_P is negative, E° decreases as temperature increases. Now: ΔG° = −nFE° = −2(96485)(1.100) = −212 267 J mol⁻¹ ≈ −212.3 kJ mol⁻¹. ΔH° = ΔG° + TΔS° = −212 267 + (298)(−21.0) = −212 267 − 6258 = −218 525 J mol⁻¹ ≈ −218.5 kJ mol⁻¹. The reaction is both enthalpically and entropically disfavored (ΔS° < 0), but ΔH° dominates at 298 K, keeping ΔG° strongly negative.

SUMMARY

Summary

Summary

The Nernst equation E = E° − (RT/nF) ln Q is derived by combining the isothermal Gibbs energy expression ΔG = ΔG° + RT ln Q with the electrical work identity ΔG = −nFE. The equation shows that cell potential varies logarithmically with the reaction quotient Q: when Q < 1 the cell produces a voltage exceeding E°, and when Q > 1 the voltage falls below E°. At equilibrium (Q = K), E = 0 and the cell is thermodynamically dead.

Key applications include calculating non-standard cell potentials, determining equilibrium constants from E° via ln K = nFE°/(RT), measuring pH with Nernstian electrodes, and extracting reaction entropy from the temperature coefficient (∂E/∂T)_P = ΔS/(nF). While the equation is exact under reversible, isothermal conditions, real cells require corrections for activity coefficients, overpotentials, and junction potentials—extensions addressed by the Butler–Volmer and Debye–Hückel frameworks.

Varsity Tutors • Physical Chemistry 1 • Nernst Equation — Derive and use the Nernst equation in thermodynamic terms