Chemical equilibrium

Chemical equilibrium is a state where all chemical reactions proceed at the same rate as their reverses, so there is no change in the proportions of the various compounds. Without energy input chemical reactions always proceed towards equilibrium. For a reaction k A + m B <-> n C + p D, equilibrium occurs when

[A]k[B]m / [C]n[D]p = K

where K is a constant called the equilibrium constant. The left side of the equation is called the action and is denoted Q for a generic state (not necessarily in equilibrium). For a single-step reaction, this can easily be derived just by considering the kinetics involved. Unlike rate equations, though, it still holds for multi-step reactions since the expressions for each step just multiply together. This, by the way, also gives us the relationship between equilibrium and temperature:

KT = K e-ΔE/RT

where ΔE is the difference in energy per mole between reactants and products. The constant is mainly influenced by entropy change, but that's a little more complicated - whereas energy is roughly constant against concentration, entropy varies logarithmically so we have to refer back to a particular state. The relationship makes the most sense in terms of the free energy difference, ΔF* = ΔE - TΔS*, which represents the total work that can be done by the system as it develops. At equilibrium ΔF = 0, which gives us

ΔF* = RT ln (Q*/K)

Very often we consider the standard state, where Q = 1 in appropriate units, which can then be neglected. Note that all this applies to a reaction at constant temperature only. For a reaction at constant pressure (which is actually somewhat more typical) you would use the Gibbs free energy, ΔG* = ΔH - TΔS*, where ΔH is the change in enthalpy.