Skip to main content

Nernst Equation Calculator

Calculate the potential of an electrochemical cell away from standard conditions with E = E° − (RT/nF) ln Q. Type the cell reaction and the concentrations to build Q automatically, solve for a concentration or pH from a measured voltage, convert between E°, K and ΔG°, or find the voltage of a concentration cell. Works at any temperature, and every step is explained.

Background

The Nernst equation links a cell's voltage to the composition of its solutions: E = E° − (RT/nF) ln Q. Here E° is the standard potential, R the gas constant, T the temperature in kelvin, n the number of electrons transferred, F Faraday's constant and Q the reaction quotient. At 25 °C it simplifies to E = E° − (0.05916/n) log₁₀ Q, so every tenfold change in Q shifts the voltage by 59.16/n millivolts. It is why pH probes work, why batteries lose voltage as they discharge, and why nerve cells hold a voltage across their membranes.

Set up your calculation

Step 1 — What do you want to do?

Pick a task below.

Step 2 — Enter E°, n and the reaction mixture

volts; negative values are allowed

the number of electrons transferred in the reaction as written (a whole number)

Write the cell reaction (or half-reaction) in the direction it proceeds, reactants → products, without electrons. Give every species a phase: (g), (aq), (s) or (l). Use -> or <=> for the arrow and ^ for ion charges, like Zn^2+(aq).

Amounts in the mixture

a positive number; scientific notation like 1e-3 works

Step 2 — Enter the measured voltage and what you want to find

volts

volts

the number of electrons transferred in the reaction as written (a whole number)

Write the cell reaction (or half-reaction) in the direction it proceeds, reactants → products, without electrons. Give every species a phase: (g), (aq), (s) or (l). Use -> or <=> for the arrow and ^ for ion charges, like Zn^2+(aq).

Amounts in the mixture

Leave exactly one box blank. That is the species the calculator solves for.

Step 2 — Choose the quantity you know

the number of electrons transferred in the reaction as written (a whole number)

volts

a positive number; scientific notation works

kilojoules per mole of reaction; negative means spontaneous

Step 2 — Enter the two concentrations

the ion's charge (1 for Ag⁺ or K⁺, 2 for Cu²⁺ or Zn²⁺)

the cathode side; any unit (M, mM, …) works if both match

the anode side; if you swap them the calculator swaps them back

Temperature

must be above absolute zero; the standard value is 25 °C

Learning options

Result

No result yet. Enter your numbers above and click Calculate.

How to use this calculator

  • Choose Cell Potential to find E from E°, n and the mixture. Type the cell reaction with phases, such as Zn(s) + Cu^2+(aq) -> Zn^2+(aq) + Cu(s), and the calculator builds one amount box for each aqueous or gaseous species. Or enter Q directly.
  • Choose Solve from a Voltage to run the equation backward: enter a measured E and get Q, or leave one amount blank and get that concentration or pressure (and the pH when it is H⁺).
  • Choose E° ⇄ K ⇄ ΔG° to convert between the standard potential, the equilibrium constant and the standard free energy change using any one of them.
  • Choose Concentration Cell for two half-cells of the same ion at different concentrations, including the potassium gradient across a nerve-cell membrane.
  • Set the temperature (25 °C is the standard value), then click Calculate to see the result, a callout explaining what it means, and the full step-by-step math.

How the Nernst equation works

1

E° is the voltage a cell would give if every species were at standard conditions: 1 mol/L for solutes, 1 atm for gases. That corresponds to a reaction quotient Q = 1.

2

Real cells are almost never at standard conditions. The Nernst equation, E = E° − (RT/nF) ln Q, corrects E° for the actual mixture, where R is the gas constant, T the temperature in kelvin, n the electrons transferred and F Faraday's constant.

3

Q has the same form as an equilibrium constant, products over reactants raised to their coefficients, but uses the amounts present right now. Aqueous species enter as mol/L, gases as atm, and pure solids and liquids are left out because their activity is 1.

4

At 25 °C, RT/F is 25.69 mV. Converting from natural to base-10 logarithms multiplies by 2.303, giving the familiar E = E° − (0.05916/n) log₁₀ Q. Every tenfold change in Q therefore moves E by 59.16/n mV.

5

When Q is below 1 (products scarce), the log term is negative and E is higher than E°. When Q is above 1 (products built up), E is lower than E°. A cell loses voltage as it runs because it pushes Q upward.

6

A cell goes flat when E = 0, which happens exactly when Q reaches the equilibrium constant K. Setting E = 0 in the Nernst equation gives E° = (RT/nF) ln K, which links E°, ΔG° = −nFE° and K.

7

The equation also works backward. Because E depends on the logarithm of Q, measuring a voltage reveals concentrations, which is how pH probes, ion-selective electrodes and battery gauges work.

8

A concentration cell has the same metal and ion on both sides, so E° = 0 and the voltage comes only from the concentration difference. The dilute side is the anode, and the cell runs until the two sides are equal. The same equation gives ion potentials across nerve-cell membranes.

Formulas & Equations Used

Nernst equation: E = E° − (RT/nF) ln Q

Base-10 form: E = E° − (2.303 RT/nF) log₁₀ Q  (= E° − (0.05916/n) log₁₀ Q at 25 °C)

Reaction quotient: Q = ∏ [aqueous products]^ν P(gas products)^ν / ∏ [aqueous reactants]^ν P(gas reactants)^ν  (solids and liquids omitted)

Solving for Q: log₁₀ Q = (E° − E) · nF / (2.303 RT)

Standard free energy: ΔG° = −nFE°  and  ΔG = −nFE

Equilibrium (E = 0, Q = K): E° = (RT/nF) ln K  ⇔  log₁₀ K = nFE° / (2.303 RT)  ⇔  ΔG° = −RT ln K

Concentration cell (E° = 0): E = (RT/nF) ln(chigh / clow)

Constants: R = 8.314462618 J·mol⁻¹·K⁻¹,   F = 96,485.33212 C·mol⁻¹,   T(K) = °C + 273.15

Example Problems & Step-by-Step Solutions

Example 1 — Daniell cell

Zn(s) + Cu²⁺(aq) → Zn²⁺(aq) + Cu(s) has E° = 1.10 V and n = 2. At 25 °C, [Zn²⁺] = 0.010 M and [Cu²⁺] = 1.0 M.

Step: Q = [Zn²⁺]/[Cu²⁺] = 0.010. E = 1.10 − (0.05916/2) × log₁₀(0.010) = 1.10 + 0.0592.

Result: E ≈ 1.159 V. Scarce products raise the voltage above E°.

Example 2 — Fe³⁺/Fe²⁺

Fe³⁺(aq) → Fe²⁺(aq) with E° = 0.77 V, n = 1, [Fe²⁺] = 0.10 M and [Fe³⁺] = 1.0 M.

Step: Q = 0.10/1.0 = 0.10. E = 0.77 − 0.05916 × log₁₀(0.10) = 0.77 + 0.0592.

Result: E ≈ 0.829 V.

Example 3 — Hydrogen electrode at pH 7

2H⁺(aq) → H₂(g) with E° = 0, n = 2, [H⁺] = 1.0 × 10⁻⁷ M and P(H₂) = 1 atm.

Step: Q = P(H₂)/[H⁺]² = 1/(10⁻⁷)² = 10¹⁴. E = 0 − (0.05916/2) × 14.

Result: E ≈ −0.414 V, the value biochemists quote for hydrogen at neutral pH.

Example 4 — Solve for a concentration

A Daniell cell reads 1.150 V with [Cu²⁺] = 1.0 M (E° = 1.10 V, n = 2, 25 °C). Find [Zn²⁺].

Step: log₁₀ Q = (E° − E)/(0.05916/2) = (1.10 − 1.150)/0.02958 = −1.690, so Q = 0.0204 = [Zn²⁺]/1.0.

Result: [Zn²⁺] ≈ 0.020 M.

Example 5 — pH from a voltage

A hydrogen electrode (n = 2, E° = 0, P(H₂) = 1 atm) reads −0.1775 V at 25 °C.

Step: log₁₀ Q = (0 − (−0.1775))/0.02958 = 6.0007, and Q = 1/[H⁺]² gives [H⁺]² = 10⁻⁶·⁰⁰⁰⁷.

Result: [H⁺] ≈ 1.0 × 10⁻³ M, so the pH is 3.00.

Example 6 — E° to K and ΔG°

The zinc–copper cell has E° = 1.10 V and n = 2 at 25 °C.

Step: log₁₀ K = E°/(0.05916/2) = 37.19, and ΔG° = −nFE° = −2 × 96,485 × 1.10 = −212,000 J.

Result: K ≈ 1.5 × 10³⁷ and ΔG° ≈ −212 kJ/mol.

Example 7 — Concentration cell

Two copper half-cells, Cu²⁺ at 1.0 M and 0.010 M, n = 2, 25 °C.

Step: E° = 0 and the ratio is 100, so log₁₀ ratio = 2. E = (0.05916/2) × 2.

Result: E ≈ 0.0592 V (59 mV). The 0.010 M side is the anode.

Example 8 — Potassium across a membrane

K⁺ is 140 mM on one side and 5 mM on the other at 37 °C (n = 1).

Step: RT/F = 26.73 mV at 310.15 K, and ln(140/5) = ln 28 = 3.332, so E = 26.73 × 3.332.

Result: E ≈ 89 mV, the size of a nerve cell's potassium equilibrium potential.

Frequently Asked Questions

What is the Nernst equation used for?

It gives the potential of an electrochemical cell or half-cell when conditions are not standard. It corrects the standard potential E° for the actual concentrations, pressures and temperature through the reaction quotient Q.

Where does 0.05916 come from?

At 25 °C, RT/F is 0.025693 V. Multiplying by ln 10 (2.3026) converts the natural log to a base-10 log and gives 0.05916 V. Dividing by n gives the slope per tenfold change in Q.

What goes into Q?

Products over reactants, each raised to its coefficient. Use concentrations in mol/L for aqueous species and partial pressures in atm for gases. Leave out pure solids, pure liquids and the solvent water, because their activity is 1.

Why does E equal E° when Q = 1?

Q = 1 makes ln Q = 0, so the correction term vanishes and E = E°. That is the definition of standard conditions.

What happens when the cell reaches equilibrium?

E falls to zero and Q reaches K. A battery is dead because it has no driving force left, not because the reactants have run out entirely.

Does temperature matter?

Yes. RT/F scales with T, so the slope per decade grows with temperature, from 54.2 mV at 0 °C to 61.5 mV at 37 °C (for n = 1). This calculator lets you set T in °C or kelvin.

How do I find n?

Count the electrons that appear when the oxidation and reduction half-reactions are balanced and added. For Zn + Cu²⁺ → Zn²⁺ + Cu, each Zn gives up 2 electrons, so n = 2.

What is a concentration cell?

A cell with the same electrode and ion on both sides at different concentrations. Its E° is 0 and the voltage comes only from the concentration ratio. The dilute side is the anode, and electrons flow toward the concentrated side.

How does this relate to the equilibrium constant?

At equilibrium E = 0 and Q = K, which gives E° = (RT/nF) ln K. The E° ⇄ K ⇄ ΔG° mode applies exactly that relationship.

Why does my answer differ slightly from my textbook?

Textbooks round the constants (0.0592 or 0.05916 V) and use concentrations in place of activities. This calculator uses R = 8.314462618 J/(mol·K) and F = 96,485.33212 C/mol, and assumes dilute solutions.

Reaction Quotient
16. Chemical Equilibrium
5 problems
Topic
Jules
Standard Reduction Potentials
20. Electrochemistry
6 problems
Topic
Jules
Cell Potential: Standard
20. Electrochemistry
7 problems
Topic
Jules
Cell Potential: The Nernst Equation
20. Electrochemistry
7 problems
Topic
Jules
Cell Potential and Gibbs Free Energy
20. Electrochemistry
4 problems
Topic
ErnestBlazevic
Cell Potential and Equilibrium
20. Electrochemistry
6 problems
Topic
Jules
Cell Potential: ∆G and K
20. Electrochemistry
4 problems
Topic
LauraGarcia
16. Chemical Equilibrium - Part 1 of 2
5 topics 13 problems
Chapter
Jules
16. Chemical Equilibrium - Part 2 of 2
5 topics 13 problems
Chapter
Jules
20. Electrochemistry - Part 1 of 3
4 topics 11 problems
Chapter
Jules
20. Electrochemistry - Part 2 of 3
4 topics 11 problems
Chapter
Jules
20. Electrochemistry - Part 3 of 3
5 topics 11 problems
Chapter
Jules
The Reaction Quotient
6. Chemical Equilibrium
5 problems
Topic
Nernst Equation
13. Fundamentals of Electrochemistry
5 problems
Topic
Standard Cell Potential & the Equilibrium Constant
13. Fundamentals of Electrochemistry
5 problems
Topic
Glass Electrodes and pH Measurements
14. Electrodes and Potentiometry
5 problems
Topic
6. Chemical Equilibrium - Part 1 of 3
4 topics 12 problems
Chapter
6. Chemical Equilibrium - Part 2 of 3
4 topics 12 problems
Chapter
6. Chemical Equilibrium - Part 3 of 3
2 topics 6 problems
Chapter
13. Fundamentals of Electrochemistry - Part 1 of 2
4 topics 12 problems
Chapter
13. Fundamentals of Electrochemistry - Part 2 of 2
1 topic 3 problems
Chapter
14. Electrodes and Potentiometry
4 topics 11 problems
Chapter
Back to all calculatorsAll calculators