The guide
The Nernst equation says concentration moves a voltage, and the temperature sets how far
Why a cell's potential is E0 minus (RT/zF) times ln Q, where 59 millivolts per decade comes from, and why a membrane obeys the same rule.
- 1.12958 V potential for E0 1.10 V, two electrons, Q 0.1, at 298.15 K
- 59.16 mV per decade of Q for one electron, at 25 degrees C
- 37.1877 log10 K for that cell, so K is about 1.54e37
- 25.693 mV thermal voltage R T / F at 298.15 K
- -89.06 mV ion at 5 outside and 140 inside, one charge, 37 degrees C
Read the full guide Fold the guide
Put the same chemistry in two cells, one with a little product and one with a lot, and the two cells read different voltages. The Nernst equation says by how much, and the answer is a straight rule.
Walther Nernst, a German physical chemist, is the author of the equation. It starts from the standard potential, the value you would measure when every species sits at its standard state, and it shifts that value for the temperature, the electrons moved and the way the species are actually mixed. Where activity coefficients are unknown, chemists use a formal potential instead, measured under stated conditions such as a given pH or ionic strength, and it plays the same part as the standard one.
Where the equation comes from
Two statements from thermodynamics do all the work. The actual free energy change equals the standard one plus R T ln Q, where Q is the reaction quotient, the ratio of products to reactants. And the cell potential is the drop in free energy for each coulomb of charge moved, which gives the free energy change as minus z F E.
Put them together and divide by z F. The result is E = E0 - (R T / (z F)) ln Q. Here z is the number of electrons moved, R is the gas constant, T is the temperature in kelvin, and F is the Faraday constant, the charge carried by a mole of electrons. Look at the sign. A larger Q means more product relative to reactant, and the potential falls. When Q equals 1 the logarithm is zero and E is simply E0. Mixing things differently from the standard state can only add or subtract a term built from ln Q.
The constants are no longer measured quantities. Since the 2019 revision of the SI, the Faraday constant is the elementary charge times the Avogadro constant, and NIST lists the gas constant as exact too. Multiply the integers 602214076 and 1380649 and place the decimal point: R is 8.31446261815324 joules per kelvin per mole. The same step with the elementary charge gives F as 96485.3321233100184 coulombs per mole.
Why 59 millivolts per decade
Divide R T by F and you get the thermal voltage, the same quantity written k T / e when you start from one electron. At 298.15 K it is 25.693 millivolts. This number is a voltage you can compute from temperature alone.
A second route reaches the same place. Treat the ratio of reduced to oxidized molecules as a ratio of Boltzmann factors, take the logarithm, and you get k T times ln of that ratio. Dividing by the electron charge turns energy into volts, and because k / e equals R / F, which is 8.617333262e-5 volts per kelvin, the single-electron and the per-mole versions agree.
The equation is often written with base-10 logarithms instead. Swapping ln for log10 multiplies by ln 10, which is 2.3026. So the coefficient becomes 25.693 times 2.3026, or 59.16 millivolts, divided by z. That is the figure behind the familiar rule. At 25 degrees C a single electron moves the potential by 59.16 millivolts for every tenfold change in Q, and two electrons halve it to 29.58. Each factor of ten in Q is one step on a ruler whose spacing is set by temperature and electron count.
The spacing is not fixed. At 0 degrees C the one-electron figure is 54.20 millivolts, and at 37 degrees C it is 61.54. A table that hard-codes 0.0592 is correct at one temperature and wrong everywhere else, which is why this tool keeps R, F and T visible in every line of its working.
A cell worked through, and what it implies
Take E0 = 1.10 volts, two electrons, 298.15 K and Q = 0.1. The logarithm of 0.1 is minus 1 in base 10, so the Q term is minus 29.58 millivolts, and E = 1.10 + 0.02958 = 1.12958 volts. A hundredfold smaller Q of 0.01 adds one more step and gives 1.15916 volts.
Two slips are common. Using the natural-log coefficient with a base-10 logarithm shrinks the correction to 12.85 millivolts and returns 1.11285 volts, about 16.7 millivolts low. Adding the logarithm term instead of subtracting it flips the correction and returns 1.07042 volts, which is wrong by twice the term.
The same line also carries a pH term when protons take part. A half reaction with h protons and z electrons has a slope of h over z times 59.16 millivolts, with a minus sign, per pH unit. The Nernst page and the page on Pourbaix diagrams give the examples. Proton reduction with a standard potential of zero comes out at minus 0.414 volts at pH 7. Oxygen reduction starts at 1.229 volts and comes out at 0.815 volts at pH 7, because both have h equal to z.
At equilibrium the potential is zero and Q has become the equilibrium constant K. Setting E to zero in the equation gives ln K = z F E0 / (R T). The standard free energy change is minus z F E0.
For the cell above, ln K is 85.63 and log10 K is 37.1877, so K is about 1.54e37. The standard free energy change is minus 212.27 kilojoules per mole. At Q = 0.1 the cell’s actual free energy change, minus z F E, is minus 217.98 kilojoules per mole, a little more favourable because the mixture sits further from equilibrium.
Go the other way and the round trip closes. From K you recover E0 of 1.10 volts, and the tool’s self-check confirms the match to better than a trillionth of a volt. A large E0 with several electrons can push K beyond 1e300, and the page then shows only the power of ten rather than a number that cannot be stored.
The standard potential itself is a convention. The standard hydrogen electrode is defined as 0.00 volts, and every other electrode is measured against it. The page leaves the table of values to the references, and asks you for E0. The reason is practical: the potential of a single electrode cannot be measured by itself, only as a difference against another electrode, so a reference has to be named before any value means anything.
The same form across a membrane
Biology uses the same equation without a chemical cell. For one ion of charge number z, the potential at which the membrane stops moving that ion is E = (R T / (z F)) ln(outside / inside). At that point there is no net flow, so it is called the reversal potential, or the equilibrium potential for the ion.
Run the numbers with 5 outside and 140 inside, a charge of plus one, and 37 degrees C, which is 310.15 K. The thermal voltage is 26.727 millivolts. The logarithm of 5 over 140 is minus 3.332, so the potential is minus 89.06 millivolts.
Only the ratio of the two amounts enters, so the units cancel. Cells keep potassium higher inside than outside, and the sources note that potassium equilibrium potentials near minus 80 millivolts, inside negative, are common. A resting membrane potential of about minus 70 millivolts sits close to that, because the membrane passes potassium far more freely than other ions.
When several ions can cross, the single-ion form no longer holds. The Goldman equation weights each ion by how permeable the membrane is to it. This tool gives the single-ion answer only, and says so on the page.
What it leaves out
The equation is written with activities, and this tool uses concentrations in their place. An activity is a concentration multiplied by an activity coefficient, and the coefficient tends to one at low concentration. That is fine for dilute solutions. At higher concentrations the coefficients matter, and estimating them generally takes experiment, which no calculator can supply.
It also holds only when no net current flows. A battery under load has extra overpotential and resistive terms, and the equation says nothing about them. At very low concentrations of the ions that fix the potential, the prediction drifts toward infinity, and other effects take over.
The tool holds no table of standard potentials, caps z at 8, the temperature at 200 to 400 K, and Q at 1e-30 to 1e30, and refuses anything outside them with a message that names the cap. Numbers are printed through the browser’s number formatter, and the curve, the tables and the self-check are built in a web worker so the page stays responsive. Results print to five significant digits on the cards and six in the working, with an option for ten, so a figure you copy never claims more precision than double-precision arithmetic can support.
Sources
Every source consulted for this guide. Links checked November 10, 2026.
- Nernst equation Wikipedia (CC BY-SA)
- Faraday constant Wikipedia (CC BY-SA)
- Boltzmann constant Wikipedia (CC BY-SA)
- Standard electrode potential Wikipedia (CC BY-SA)
- Pourbaix diagram Wikipedia (CC BY-SA)
- Reversal potential Wikipedia (CC BY-SA)
- Resting potential Wikipedia (CC BY-SA)
- Goldman equation Wikipedia (CC BY-SA)
- CODATA Value: molar gas constant National Institute of Standards and Technology
- CODATA Value: Faraday constant National Institute of Standards and Technology
- CODATA Value: Avogadro constant National Institute of Standards and Technology
- CODATA Value: elementary charge National Institute of Standards and Technology
- CODATA Value: Boltzmann constant National Institute of Standards and Technology
- Intl.NumberFormat - JavaScript MDN Web Docs (CC BY-SA)
- Web Workers API MDN Web Docs (CC BY-SA)