Chemistry · Electrochemistry
Nernst equation calculator icon showing cell voltage falling as the reaction quotient Q increases

Nernst equation calculator

This Nernst equation calculator gives the potential of an electrode or a complete cell when concentrations, gas pressures, pH or temperature differ from standard conditions: E = E° − (RT/nF)·ln Q. It also solves backwards for the concentration, pH or Q that produces a target voltage, and handles concentration cells.

Enter concentrations in mol/L (a gas is entered as its partial pressure in bar, a pure solid or liquid is left out). At 25 °C the calculator uses the familiar form E = E° − (0.05916 V/n)·log Q, and it shows every step.

Half-cell: potential of one electrode

For a reduction half-reaction a Ox + m H⁺ + n e⁻ → b Red. Leave [Red] empty when the reduced form is a pure metal or liquid (activity 1).
For a gas such as O₂ or Cl₂, enter its partial pressure in bar as the number.
Fill in for dissolved reduced forms such as Fe²⁺ or Cl⁻.
0 if no H⁺ appears; 8 for MnO₄⁻ + 8H⁺ + 5e⁻ → Mn²⁺ + 4H₂O.
Only used when m is greater than zero.

Full cell: Nernst equation with concentrations or Q

Write the overall reaction, then enter products and reactants that appear in Q (aqueous species in mol/L, gases in bar; omit solids, liquids and water). Up to two of each.
E°cathode − E°anode; the cell potential calculator finds it from a table.

Concentration cell

Two identical electrodes in solutions of different concentration. E°cell = 0, and the voltage comes only from the concentration difference.

How to use the Nernst equation calculator

The Nernst equation calculator has three panels. Use the half-cell panel for one electrode: enter its standard reduction potential, the number of electrons, the concentrations of the oxidized and reduced forms and, if H⁺ takes part, the pH. Use the full-cell panel for a complete galvanic cell: enter E°cell and either the concentrations of the species in the reaction quotient or Q itself. Use the concentration cell panel when both electrodes are the same metal in solutions of different strength. Every panel can also be run backwards, for example to find the concentration or pH at which an electrode reaches a given potential, and “Show the working” lists the substituted equation line by line.

The Nernst equation

A Nernst equation calculator is needed because standard potentials apply only when every dissolved species is at 1 M and every gas at 1 bar. The Nernst equation corrects the potential for any other composition through the reaction quotient Q:

E = E° − (R·T / n·F) · ln Q = E° − (0.05916 V / n) · log Q (at 25 °C)

Here E° is the standard potential (V), R = 8.314 J/(mol·K), T the absolute temperature (K), n the moles of electrons transferred, F = 96,485 C/mol and Q the reaction quotient written exactly like an equilibrium constant: products over reactants, each raised to its coefficient, with pure solids, pure liquids and water left out. The factor 0.05916 V is 2.303·R·T/F at 298.15 K; at other temperatures the Nernst equation calculator recalculates it, for example 0.06412 V at 50 °C. A full derivation from ΔG = ΔG° + RT ln Q is given in OpenStax Chemistry 2e, section 17.4.

For a single electrode, the reduction half-reaction a Ox + m H⁺ + n e⁻ → b Red gives Q = [Red]ᵇ / ([Ox]ᵃ·[H⁺]ᵐ). For a whole cell, Q comes from the balanced overall reaction, and E° is E°cathode − E°anode, which you can get from the Cell Potential Calculator.

Worked examples with the Nernst equation calculator

Half-cell (default values). A copper electrode dips into 0.010 M Cu²⁺ at 25 °C. For Cu²⁺ + 2e⁻ → Cu, E° = +0.342 V, n = 2 and the reduced form is solid copper, so Q = 1/[Cu²⁺] = 100. Then E = 0.342 − (0.05916/2) × log 100 = 0.342 − 0.0592 = +0.2828 V. Diluting the copper ions by a factor of 100 lowers the electrode potential by 59 mV.

Full cell (default values). A Daniell cell, Zn(s) + Cu²⁺(aq) → Zn²⁺(aq) + Cu(s), has E°cell = 1.10 V and n = 2. With [Zn²⁺] = 1.0 M and [Cu²⁺] = 0.010 M, Q = 1.0/0.010 = 100 and Ecell = 1.10 − 0.02958 × 2 = 1.0408 V. As the cell discharges, Zn²⁺ builds up and Cu²⁺ is used, Q grows and the voltage falls, reaching zero when Q = K ≈ 10³⁷. The chart in the full-cell panel of the Nernst equation calculator plots this straight line of E against log Q.

Published check (OpenStax Example 17.7). For Co(s) + Fe²⁺(aq) → Co²⁺(aq) + Fe(s) with [Co²⁺] = 0.15 M and [Fe²⁺] = 1.94 M, E°cell = −0.447 − (−0.28) = −0.167 V and Q = 0.15/1.94 = 0.077. Enter E° = −0.167, n = 2, product 0.15 and reactant 1.94 in the Nernst equation calculator: it returns Ecell = −0.134 V, which the book rounds to −0.14 V. The reaction is still not spontaneous.

Concentration cell (OpenStax Example 17.8). Two zinc electrodes in 0.10 M and 0.50 M Zn²⁺ give E = (0.05916/2) × log(0.50/0.10) = +0.0207 V, the 0.021 V in the book and the default of the third panel.

pH dependence: using the Nernst equation calculator with H⁺

When H⁺ appears in a half-reaction, the potential depends on pH. For oxygen reduction, O₂ + 4H⁺ + 4e⁻ → 2H₂O with E° = 1.229 V, n = 4 and m = 4, so at 1 bar O₂ the Nernst equation gives E = 1.229 − 0.05916 × pH: 1.229 V at pH 0, 0.815 V at pH 7 and 0.401 V at pH 14. The same rule, a shift of −(m/n) × 59.16 mV per pH unit at 25 °C, explains why permanganate (m = 8, n = 5) is a much stronger oxidant in acid than in neutral solution, and it is the basis of the pH glass electrode and of Pourbaix diagrams. Set m and the pH in the half-cell panel to explore this; the pH Calculator converts between pH and [H⁺].

Half-reactionE° (V)nm (H⁺)E at pH 7, other species 1 M (V)
O₂ + 4H⁺ + 4e⁻ → 2H₂O+1.22944+0.815
MnO₄⁻ + 8H⁺ + 5e⁻ → Mn²⁺ + 4H₂O+1.50758+0.844
Cr₂O₇²⁻ + 14H⁺ + 6e⁻ → 2Cr³⁺ + 7H₂O+1.232614+0.266
2H⁺ + 2e⁻ → H₂0.00022−0.414

Slope of the Nernst equation at different temperatures

The Nernst equation calculator evaluates 2.303RT/F at the temperature you enter. Typical values:

Temperature2.303RT/F (V)Per decade, n = 1Per decade, n = 2
0 °C0.0542054.2 mV27.1 mV
25 °C0.0591659.2 mV29.6 mV
37 °C0.0615461.5 mV30.8 mV
50 °C0.0641264.1 mV32.1 mV
100 °C0.0740474.0 mV37.0 mV

Note that temperature also changes E° itself slightly. The Nernst equation calculator uses the E° you enter, so for accurate high-temperature work enter an E° measured or corrected for that temperature.

Concentration cells and biology

A concentration cell, the third panel of the Nernst equation calculator, has the same couple on both sides, so E°cell = 0 and the whole voltage comes from the RT/nF·ln(ratio) term. Electrons flow from the dilute side, where the metal dissolves, to the concentrated side, where ions are deposited, until the two concentrations are equal. The same expression with n = charge of the ion gives the membrane equilibrium (Nernst) potential in physiology: a tenfold K⁺ gradient at 37 °C corresponds to about 61.5 mV.

Common mistakes the Nernst equation calculator helps you avoid

Writing Q upside down. Q is products over reactants of the reaction as written; for a reduction half-reaction that is reduced form over oxidized form. Including solids or water. Pure solids, pure liquids and the solvent have activity 1 and drop out. Forgetting coefficients. In 2Ag⁺ + Cu → 2Ag + Cu²⁺, Q = [Cu²⁺]/[Ag⁺]², not [Cu²⁺]/[Ag⁺]. Wrong n. n is the electrons of the balanced overall reaction. Mixing log and ln. 0.05916 goes with log₁₀; RT/F = 0.02569 V goes with ln. Ignoring activities. At high ionic strength, activity coefficients well below 1 make the Nernst equation calculator result an approximation; this matters in concentrated electrolytes and seawater.

Related calculators

Get E°cell from the cell potential calculator before using the Nernst equation calculator, then use the Electrolysis Calculator (Faraday’s Laws) when the cell is driven by an external current. Relate E° to ΔG° with the Gibbs Free Energy Calculator, and to K with the Equilibrium Constant Calculator.

Frequently asked questions

What is the Nernst equation used for?

It gives the potential of an electrode or a cell at any concentration, pressure and temperature, starting from the standard potential E°. It is used to predict battery voltages, to decide whether a redox reaction runs under real conditions, in pH and ion-selective electrodes and for membrane potentials in biology.

Why is the value 0.0592 V in the Nernst equation?

It is 2.303·R·T/F at 25 °C (298.15 K): 2.303 × 8.314 × 298.15 / 96,485 = 0.05916 V. Dividing by n gives the change in potential per tenfold change in Q. At other temperatures the factor is different, which the Nernst equation calculator accounts for.

What happens to the cell potential when Q equals K?

Ecell becomes zero, and the Nernst equation calculator flags the cell as at equilibrium: the reaction is at equilibrium and the cell can do no more work. That is what a fully discharged battery is. Setting E = 0 in the Nernst equation gives E° = (RT/nF)·ln K.

How do I include a gas in Q?

Use its partial pressure in bar (atm is close enough for most problems). For example, for the hydrogen electrode 2H⁺ + 2e⁻ → H₂, Q = P(H₂)/[H⁺]².

Is this Nernst equation calculator free?

Yes. The Nernst equation calculator runs in your browser, needs no sign-up and does not store or send the values you enter.

Results are for study, homework and lab preparation; check important results against your own data, and follow your lab’s safety rules. Back to chemistry calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: