Nernst Equation Calculator
Calculate cell potential at any concentration with the Nernst equation, plus ΔG and the equilibrium constant. Presets for the Daniell cell, permanganate and concentration cells.
Enter the cell
Potential against log₁₀ Q
A straight line with slope −RT ln10/(nF) — about −59 mV per decade for one electron at 25 °C. The dot is your Q.
Show the Larzscript program that just ran
Run a calculation to see the exact program.
This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.
The equation
At 298.15 K, RT/F = 25.693 mV, so RT ln 10 / F = 59.16 mV. Each tenfold change in Q therefore shifts E by 59.16/n mV: 29.580 mV for n = 2.
Worked examples, computed above
- Daniell cell (E° = 1.10 V, n = 2) at Q = 0.001: E = 1.18874 V, ΔG = -229.392 kJ/mol; standard ΔG° = -212.268 kJ/mol; at Q = 1, E = 1.10000 V.
- Silver–copper (E° = 0.46 V) at Q = 0.1: E = 0.48958 V.
- Permanganate (E° = 1.51 V, n = 5) at Q = 10⁸: E = 1.41535 V.
What is verified
Seven cells (n from 1 to 5, Q from 10⁻⁵ to 10⁸, T from 273 to 350 K) are compared with 50-digit decimal arithmetic using R and F derived from the exact SI 2019 definitions, to 10⁻¹²; Q = 1 returns E° exactly, and the 59.16 mV/decade slope and ΔG = −212.3 kJ/mol for the Daniell cell are asserted. Mutation tests confirm the checks fail if the sign or the electron count is wrong.
Limits: ideal solutions (activities equal concentrations; corrections for ionic strength are not applied), reversible cells. The standard potential you enter must match the half-reaction coefficients that define n and Q.
Frequently asked questions
What is the Nernst equation?
E = E° − (RT/nF)·ln Q, which gives the potential of an electrochemical cell when concentrations are not 1 M. E° is the standard potential, n the electrons transferred, F = 96,485 C/mol Faraday's constant, R the gas constant and Q the reaction quotient.
What is the simplified form at 25 °C?
E = E° − (0.05916/n)·log₁₀ Q. The slope is 29.580 mV per decade of Q for n = 2 at 25 °C (59.16 mV for one electron).
How do I calculate the cell potential of a Daniell cell at non-standard concentrations?
The Zn|Zn²⁺||Cu²⁺|Cu cell has E° = 1.10 V and n = 2, with Q = [Zn²⁺]/[Cu²⁺]. At Q = 0.001 the potential is 1.18874 V, and at Q = 100 it drops to 1.04084 V. At Q = 1 it is the standard 1.10 V.
What is the sign of E telling me?
Positive E means the reaction is spontaneous as written (a galvanic cell); ΔG = −nFE. At Q = 0.001 the Daniell cell has ΔG = -229.392 kJ/mol.
How is the equilibrium constant related?
At equilibrium E = 0, so log₁₀K = nFE°/(RT ln 10). For the Daniell cell log₁₀K = 37.188, i.e. the reaction goes essentially to completion (K ≈ 10^37.2).
Does temperature matter?
Slightly: the RT/F factor changes the slope by about 0.34% per kelvin. The calculator takes any absolute temperature; the default is 298.15 K (25 °C).
Can I use it for pH electrodes and concentration cells?
Yes: a hydrogen electrode has n = 1 and E = −0.05916 × pH. For a concentration cell E° = 0, so E = −(RT/nF) ln Q depends only on the concentration ratio.
Every number on this page is computed by the open-source larzscript-chem library (chemistry, physconst, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →