In electrochemistry, the Nernst equation is an equation that relates the equilibrium reduction potential of a half-cell in an electrochemical cell (or the total voltage (electromotive force) for a full cell) to the standard electrode potential, temperature, activity, and reaction quotient of the underlying reactions and species used. It is named after the German physical chemist who first formulated it, Walther Nernst.
The Nernst equation gives a formula that relates the numerical values of the concentration gradient to the electric gradient that balances it. For example, if a concentration gradient was established by dissolving KCl in half of a divided vessel that was originally full of H2O, and then a membrane permeable to K+ ions was introduced between the two halves—empirically, an equilibrium situation would arise where the chemical concentration gradient (that would normally cause ions to move from the region of high concentration to the region of low concentration) could be balanced by an electrical gradient that opposes the movement of charge.
The two (ultimately equivalent) equations for these two cases (half-cell, full cell) are as follows:
- (half-cell reduction potential)
- (total cell potential)
- Ered is the half-cell reduction potential at the temperature of interest
ored is the standard half-cell reduction potential
- Ecell is the cell potential (electromotive force)
ocell is the standard cell potential at the temperature of interest
- R is the universal gas constant: R = 8.314 472(15) J K−1 mol−1
- T is the absolute temperature
- a is the chemical activity for the relevant species, where aRed is the reductant and aOx is the oxidant. aX = γXcX, where γX is the activity coefficient of species X. (Since activity coefficients tend to unity at low concentrations, activities in the Nernst equation are frequently replaced by simple concentrations.)
- F is the Faraday constant, the number of coulombs per mole of electrons: F = 9.648 533 99(24)×104 C mol−1
- z is the number of moles of electrons transferred in the cell reaction or half-reaction
- Q is the reaction quotient.
At room temperature (25 °C), RT/F may be treated like a constant and replaced by 25.693 mV for cells.
Nernst potential 
The Nernst equation has a physiological application when used to calculate the potential of an ion of charge z across a membrane. This potential is determined using the concentration of the ion both inside and outside the cell:
When the membrane is in thermodynamic equilibrium (i.e., no net flux of ions), the membrane potential must be equal to the Nernst potential. However, in physiology, due to active ion pumps, the inside and outside of a cell are not in equilibrium. In this case, the resting potential can be determined from the Goldman equation:
- = The membrane potential (in volts, equivalent to joules per coulomb)
- = the permeability for that ion (in meters per second)
- = the extracellular concentration of that ion (in moles per cubic meter, to match the other SI units, though the units strictly don't matter, as the ion concentration terms become a dimensionless ratio)
- = the intracellular concentration of that ion (in moles per cubic meter)
- = The ideal gas constant (joules per kelvin per mole)
- = The temperature in kelvin
- = Faraday's constant (coulombs per mole)
The potential across the cell membrane that exactly opposes net diffusion of a particular ion through the membrane is called the Nernst potential for that ion. As seen above, the magnitude of the Nernst potential is determined by the ratio of the concentrations of that specific ion on the two sides of the membrane. The greater this ratio the greater the tendency for the ion to diffuse in one direction, and therefore the greater the Nernst potential required to prevent the diffusion.
A similar expression exists that includes r (the absolute value of the transport ratio). This takes transporters with unequal exchanges into account. See: Sodium-Potassium Pump where the transport ratio would be 2/3. The other variables are the same as above. The following example includes two ions: Potassium (K+) and sodium (Na+). Chloride is assumed to be in equilibrium.
When Chloride (Cl−) is taken into account, its part is flipped to account for the negative charge.
Using Boltzmann factors 
For simplicity, we will consider a solution of redox-active molecules that undergo a one-electron reversible reaction
and that have a standard potential of zero. The chemical potential of this solution is the difference between the energy barriers for taking electrons from and for giving electrons to the working electrode that is setting the solution's electrochemical potential.
The ratio of oxidized to reduced molecules, [Ox]/[Red], is equivalent to the probability of being oxidized (giving electrons) over the probability of being reduced (taking electrons), which we can write in terms of the Boltzmann factors for these processes:
Taking the natural logarithm of both sides gives
If at [Ox]/[Red] = 1, we need to add in this additional constant:
Dividing the equation by e to convert from chemical potentials to electrode potentials, and remembering that kT/e = RT/F, we obtain the Nernst equation for the one-electron process :
Using entropy and Gibbs energy 
Quantities here are given per molecule, not per mole, and so Boltzmann constant k and the electron charge e are used instead of the gas constant R and Faraday's constant F. To convert to the molar quantities given in most chemistry textbooks, it is simply necessary to multiply by Avogadro's number: and .
The entropy of a molecule is defined as
where is the number of states available to the molecule. The number of states must vary linearly with the volume V of the system, which is inversely proportional to the concentration c, so we can also write the entropy as
The change in entropy from some state 1 to another state 2 is therefore
so that the entropy of state 2 is
If state 1 is at standard conditions, in which is unity (e.g., 1 atm or 1 M), it will merely cancel the units of . We can, therefore, write the entropy of an arbitrary molecule A as
where is the entropy at standard conditions and [A] denotes the concentration of A. The change in entropy for a reaction
is then given by
We define the ratio in the last term as the reaction quotient:
where the numerator is a product of reaction product activities, a j, each raised to the power of a stoichiometric coefficient, ν j, and the denominator is a similar product of reactant activities. All activities refer to a time t. Under certain circumstances (see chemical equilibrium) each activity term such as may be replaced by a concentration term, [A]. In an electrochemical cell, the cell potential E is the chemical potential available from redox reactions (). E is related to the Gibbs energy change only by a constant: , where n is the number of electrons transferred and is the Faraday constant. There is a negative sign because a spontaneous reaction has a negative free energy and a positive potential E. The Gibbs energy is related to the entropy by , where H is the enthalpy and T is the temperature of the system. Using these relations, we can now write the change in Gibbs energy,
and the cell potential,
This is the more general form of the Nernst equation. For the redox reaction , and we have:
The cell potential at standard conditions is often replaced by the formal potential , which includes some small corrections to the logarithm and is the potential that is actually measured in an electrochemical cell.
Relation to equilibrium 
At equilibrium, E = 0 and Q = K. Therefore
Or at standard temperature,
In dilute solutions, the Nernst equation can be expressed directly in terms of concentrations (since activity coefficients are close to unity). But at higher concentrations, the true activities of the ions must be used. This complicates the use of the Nernst equation, since estimation of non-ideal activities of ions generally requires experimental measurements.
The Nernst equation also only applies when there is no net current flow through the electrode. The activity of ions at the electrode surface changes when there is current flow, and there are additional overpotential and resistive loss terms which contribute to the measured potential.
At very low concentrations of the potential-determining ions, the potential predicted by Nernst equation approaches toward ±∞. This is physically meaningless because, under such conditions, the exchange current density becomes very low, and then other effects tend to take control of the electrochemical behavior of the system.
See also 
- Concentration cell
- Electrode potential
- Galvanic cell
- Goldman equation
- Membrane potential
- Nernst-Planck equation