Equilibrium constant
For a general chemical reaction
the equilibrium constant can be defined by
where {A} is the activity of the chemical species A etc (activity is a dimensionless quantity). It is conventional to put the activities of the products in the numerator and those of the reactants in the denominator. See Chemical equilibrium for a derivation of this expression.
For equilibria in a gas phase, the activity of a gaseous component is the product of the component's partial pressure and the fugacity coefficient for this component. In this case activity is dimensionless as fugacity has the dimension 1/pressure.
For equilibria in solution activity is the product of concentration and activity coefficient. It is common practice to determine equilibrium constants in a medium of high ionic strength. In those circumstances the quotient of activity coefficients is effectively constant and the equilibrium constant is taken to be a concentration quotient.
However, the value of Kc will depend on the ionic strength.
All equilibrium constants depend on temperature and pressure (or volume).
A knowledge of equilibrium constants is essential for the understanding of many natural processes such as oxygen transport by haemoglobin in blood and acid-base homeostasis in the human body.
Stability constants, formation constants, binding constants, association constants and dissociation constants are all types of equilibrium constant. See also Determination of equilibrium constants for experimental and computational methods.

# Types of equilibrium constants

## Cumulative and stepwise formation constants
A cumulative or overall constant, given the symbol \beta, is the constant for the formation of a complex from reagents. For example, the cumulative constant for the formation of ML2 is given by
The stepwise constant, K, for the formation of the same complex from ML and L is given by
It follows that
A cumulative constant can always be expressed as the product of stepwise constants. There is no agreed notation for stepwise constants, though a symbol such as K_{ML}^L is sometimes found in the literature. It is best always to define each stability constant by reference to an equilibrium expression.

### Competition method
A particular use of a stepwise constant is in the determination of stability constant values outside the normal range for a given method. For example, EDTA complexes of many metals are outside the range for the potentiometric method. The stability constants for those complexes were determined by competition with a weaker ligand.

## Association and dissociation constants
In organic chemistry and biochemistry it is customary to use pKa values for acid dissociation equilibria.
where Kdiss is a stepwise acid dissociation constant (lg stands for log10). For bases, the base association constant, pKb is used. For any given acid or base the two constants are related by pKa + pKb = pKw, so pKa can always be used in calculations.
On the other hand stability constants for metal complexes, and binding constants for host-guest complexes are generally expressed as association constants. When considering equilibria such as
it is customary to use association constants for both ML and HL. Also, in generalised computer programs dealing with equilibrium constants it is general practice to use cumulative constants rather than stepwise constants and to omit ionic charges from equilibrium expressions. For example, if NTA, nitrilotriacetic acid, HC(CH2CO2H)3 is designated as H3L and forms complexes ML and MHL with a metal ion M, the following expressions would apply for the dissociation constants.
The cumulative association constants can be expressed as
Note how the subscripts define the stoichiometry of the equilibrium product.

## Micro-constants
When two or more sites in an asymmetrical molecule may be involved in an equilibrium reaction there are more than one possible equilibrium constants. For example, the molecule L-dopa has two non-equivalent hydroxyl groups which may be deprotonated. Denoting L-Dopa as LH2, the following diagram shows all the species that may be formed (X=CH2CH(NH2)CO2H)
File:Micro constants.png
The first protonation constants are
The concentration of LH- is the sum of the concentrations of the two micro-species. Therefore, the equilibrium constant for the reaction, the macro-constant, is the sum of the micro-constants.
In the same way,
Lastly, the cumulative constant is
Thus, although there are six micro-and macro-constants, only three of them are mutually independent. Moreover, the isomerization constant, Ki, is equal to the ratio of the microconstants.
In L-Dopa the isomerization constant is 0.9, so the micro-species L1H and L2H have almost equal concentrations at all pH values.
In general a macro-constant is equal to the sum of all the micro-constants and the occupancy of each site is proportional to the micro-constant. The site of protonation can be very important, for example, for biological activity.
Micro-constants cannot be determined individually by the usual methods, which give macro-constants. Methods which have been used to determine micro-constants include:
- blocking one of the sites, for example by methylation of a hydroxyl group, to determine one of the micro-constants
- using a spectroscopic technique, such as infrared spectroscopy, where the different micro-species give different signals.
- applying mathematical procedures to 13C NMR data.

## pH considerations (Brnsted constants)
pH is defined in terms of the activity of the hydrogen ion
If, when determining an equilibrium constant, pH is measured by means of a glass electrode, a mixed equilibrium constant, also known as a Brnsted constant, may result.
It all depends on whether the electrode is calibrated by reference to solutions of known activity or known concentration. In the latter case the equilibrium constant would be a concentration quotient. If the electrode is calibrated in terms of known hydrogen ion concentrations it would be better to write p  rather than pH, but this suggestion is not generally adopted.

## Hydrolysis constants
In aqueous solution the concentration of the hydroxide ion is related to the concentration of the hydrogen ion by
The first step in metal ion hydrolysis  can be expressed in two different ways
- M(H_2O) \rightleftharpoons M(OH) +H:=\beta^*^{-1} 
- M+OH \rightleftharpoons M(OH):=K=K K_W^{-1} 
It follows that \beta*=K K_W. Hydrolysis constants are usually reported in the \beta- form and this leads to them appearing to have strange values. For example, if lgK=4 and lg KW=-14, lg \beta^- = 4 -14 = -10. In general when the hydrolysis product contains n hydroxide groups lg \beta^- = lg K + n lg KW

## Conditional constants
Conditional constants, also known as apparent constants, are concentration quotients which are not true equilibrium constants but can be derived from them.  A very common instance is where pH is fixed at a particular value. For example, in the case of  iron(III) interacting with EDTA, a conditional constant could be defined by
This conditional constant will vary with pH. It has  a maximum at a certain pH. That is the pH where the ligand sequesters the metal most effectively.
In biochemistry equilibrium constants are often measured at a pH fixed by means of a buffer solution. Such constants are, by definition, conditional and different values may be obtained when using different buffers.

# Temperature dependence
The van 't Hoff equation.
shows that when the reaction is exothermic (Ho is negative), then K decreases with increasing temperature, in accordance with Le Chatelier's principle. It permits calculation of the reaction equilibrium constant at temperature T2 if the reaction constant at T1 is known and the standard reaction enthalpy can be assumed to be independent of temperature even though each standard enthalpy change is defined at a different temperature.However, this assumption is valid only for small temperature differences T2 - T1. In fact standard thermodynamic arguments can be used to show that
where Cp is the heat capacity at constant pressure
The equilibrium constant is related to the standard Gibbs energy change of reaction as
where Go is the standard Gibbs energy change of reaction, R is the gas constant, and T the absolute temperature.
If the equilibrium constant has been determined and the standard reaction enthalpy has also been determined, by calorimetry, for example, this equation allows the standard entropy change for the reaction to be derived.

## A more complex formulation
The calculation of KT2 from known KT1 can be approached as follows if standard thermodynamic properties are available. The effect of temperature on equilibrium constant is equivalent to the effect of temperature on Gibbs energy because:
where {\Delta_\mathrm{r} G^\ominus} is the reaction standard Gibbs energy, which is the sum of the standard Gibbs energies of the reaction products minus the sum of standard Gibbs energies of reactants.
Here, the term "standard" denotes the ideal behaviour (i.e., an infinite dilution) and a hypothetical standard concentration (typically 1 mol/kg). It does not imply any particular temperature or pressure because, although contrary to IUPAC recommendation, it is more convenient when describing aqueous systems over a wide temperature and pressure ranges.
The standard Gibbs energy (for each species or for the entire reaction) can be represented (from the basic definitions) as:
G_{T2}^\ominus = G_{T1}^\ominus-S_{T1}^\ominus(T_2-T_1)-T_2 \int^{T2}_{T1} {{C_P^\ominus} \over {T}}\,dT + \int^{T2}_{T1} C_p^\ominus\,dT
In the above equation, the effect of temperature on Gibbs energy (and thus on the equilibrium constant) is ascribed entirely to heat capacity. To evaluate the integrals in this equation, the form of the dependence of heat capacity on temperature needs to be known.
Now, if one expresses the standard heat capacity C_p^\ominus, as a function of absolute temperature using correlations in on of the following forms:
- For pure substances (solids, gas, liquid):
- For ionic species at T < 200 deg C:
then the integrals can evaluated and the following final form is obtained:
The constants A,B,C,a,b and the absolute entropy, \breve{S}^{\ominus}_{298}, required for evaluation of C_p^\ominus(T), as well as the values of G298 K and S298 K for many species are tabularized in the literature.

# Pressure dependence
The  pressure dependence of the equilibrium constant is usually weak in the range of pressures normally encountered in industry, and therefore, it is usually neglected in practice. This is true for condensed reactant/products (i.e., when reactants and products are solids or liquid) as well as gaseous ones.
For a gaseous-reaction example, one may consider the well-studied reaction of hydrogen with nitrogen to produce ammonia:
If the pressure is increased by an addition of an inert gas, then neither the composition at equilibrium nor the equilibrium constant are appreciably affected (because the partial pressures remain constant, assuming an ideal-gas behaviour of all gases involved). However, the composition at equilibrium will depend appreciably on pressure when:
- the pressure is changed by compression of the gaseous reacting system, and
- the reaction results in the change of the number of moles of gas in the system.
In the example reaction above, the number of moles changes from 4 to 2, and an increase of pressure by system compression will result in appreciably more ammonia in the equilibrium mixture. In the general case of a gaseous reaction:
the change of mixture composition with pressure can be quantified using:
where p denote the partial pressures of the components, P is the total system pressure, X denote the number of moles, Kp is the equilibrium constant expressed in terms of partial pressures and KX is the equilibrium constant expressed in terms of mol fractions.
The above change in composition is in accordance with Le Chatelier's principle and does not involve any change of the equilibrium constant with the total system pressure.  Indeed, for ideal-gas reactions Kp is independent of pressure.
In a condensed phase, the pressure dependence of the equilibrium constant is associated with the reaction molar volume. For reaction:
the reaction molar volume is:
where \bar{V} denotes a partial molar volume of a reactant or a product.
For the above reaction, one can expect the change of the reaction equilibrium constant (based either on mole-fraction or molal-concentration scale) with pressure at constant temperature to be:
The matter is complicated as partial molar volume is itself dependent on pressure.

# Data sources
IUPAC SC-Database A comprehensive database of published data on equilibrium constants of metal complexes and ligands
NIST Standard Reference Database 46 Critically Selected Stability Constants of Metal Complexes
Inorganic and organic acids and bases pKa data in water and DMSO