2.3 Nernst Equation
We have assumed that the concentration of all the species involved in the electrode reaction is unity. This need not be always true.
Nernst showed that the electrode potential at any concentration is E equals E nought minus R T over n F, times the natural logarithm of 1 over the metal ion concentration, solid metal taken as unity.
Here R is gas constant, 8.314 joules per kelvin per mole, F is Faraday constant, 96487 coulombs per mole, and T is temperature in kelvin.
For the Daniell cell, E cell equals E nought cell minus R T over 2 F, times the natural logarithm of the zinc ion concentration over the copper ion concentration.
Converting to base 10 and putting in R, F and T equal to 298 kelvin, E cell equals E nought cell minus 0.059 over 2, times log of the zinc ion concentration over the copper ion concentration.
For a general electrochemical reaction, a A plus b B plus n electrons gives c C plus d D, the Nernst equation is E cell equals E nought cell minus R T over n F, times the natural logarithm of Q.
For magnesium in 0.130 molar magnesium ions and silver in 0.0001 molar silver ions, E nought cell is 3.17 volts, and E cell is 3.17 volts minus 0.21 volts, or 2.96 volts.