The spontaneity of the reactions which occur at non–standard conditions can be determined using Nernst equation, which in turn depends on the cell emf (E), and concentration of the reactants.
The dependence of the cell emf on concentration can be obtained from the dependence of the free–energy change on concentration. The free–energy change, °G, is related to the standard free–energy change, ΔG°:
The quantity Q is the reaction quotient, which has the form of the equilibrium constant expression except that the concentrations are those that exist in the reaction mixture at a given moment.
Substituting ΔG = –nFE
Solving this equation for E gives the Nernst equation:
This equation is customarily expressed in terms of common logarithms:
We can use this equation to find the emf produced by a cell under nonstandard conditions or to determine the concentration of a reactant or product by measuring the emf of the cell.