Activity coefficient
In thermodynamics, an activity coefficient is a factor used to account for deviation of a mixture of chemical substances from ideal behaviour. In an ideal mixture, the microscopic interactions between each pair of chemical species are the same (or macroscopically equivalent, the enthalpy change of solution and volume variation in mixing is zero) and, as a result, properties of the mixtures can be expressed directly in terms of simple concentrations or partial pressures of the substances present e.g. Raoult's law. Deviations from ideality are accommodated by modifying the concentration by an activity coefficient. Analogously, expressions involving gases can be adjusted for non-ideality by scaling partial pressures by a fugacity coefficient. The concept of activity coefficient is closely linked to that of activity in chemistry. Thermodynamic definition 
The chemical potential, , of a substance B in an ideal mixture of liquids or an ideal solution is given by
,
where μ is the chemical potential of a pure substance , and  is the mole fraction of the substance in the mixture. This is generalised to include non-ideal behavior by writing

when  is the activity of the substance in the mixture,
,
where  is the activity coefficient, which may itself depend on . As  approaches 1, the substance behaves as if it were ideal. For instance, if  ≈ 1, then Raoult's law is accurate. For  > 1 and  < 1, substance B shows positive and negative deviation from Raoult's law, respectively. A positive deviation implies that substance B is more volatile. In many cases, as  goes to zero, the activity coefficient of substance B approaches a constant; this relationship is Henry's law for the solvent. These relationships are related to each other through the Gibbs–Duhem equation. Note that in general activity coefficients are dimensionless. In detail: Raoult's law states that the partial pressure of component B is related to its vapor pressure (saturation pressure) and its mole fraction  in the liquid phase,

with the convention

In other words: Pure liquids represent the ideal case. At infinite dilution, the activity coefficient approaches its limiting value, ∞. Comparison with Henry's law,

immediately gives

In other words: The compound shows nonideal behavior in the dilute case. The above definition of the activity coefficient is impractical if the compound does not exist as a pure liquid. This is often the case for electrolytes or biochemical compounds. In such cases, a different definition is used that considers infinite dilution as the ideal state:

with

and

The  symbol has been used here to distinguish between the two kinds of activity coefficients. Usually it is omitted, as it is clear from the context which kind is meant. But there are cases where both kinds of activity coefficients are needed and may even appear in the same equation, e.g., for solutions of salts in (water + alcohol) mixtures. This is sometimes a source of errors. Modifying mole fractions or concentrations by activity coefficients gives the effective activities of the components, and hence allows expressions such as Raoult's law and equilibrium constants to be applied to both ideal and non-ideal mixtures. Knowledge of activity coefficients is particularly important in the context of electrochemistry since the behaviour of electrolyte solutions is often far from ideal, due to the effects of the ionic atmosphere. Additionally, they are particularly important in the context of soil chemistry due to the low volumes of solvent and, consequently, the high concentration of electrolytes. Ionic solutions 
For solution of substances which ionize in solution the activity coefficients of the cation and anion cannot be experimentally determined independently of each other because solution properties depend on both ions. Single ion activity coefficients must be linked to the activity coefficient of the dissolved electrolyte as if undissociated. In this case a mean stoichiometric activity coefficient of the dissolved electrolyte, γ±, is used. It is called stoichiometric because it expresses both the deviation from the ideality of the solution and the incomplete ionic dissociation of the ionic compound which occurs especially with the increase of its concentration. For a 1:1 electrolyte, such as NaCl it is given by the following:

where  and  are the activity coefficients of the cation and anion respectively. More generally, the mean activity coefficient of a compound of formula  is given by

Single-ion activity coefficients can be calculated theoretically, for example by using the Debye–Hückel equation. The theoretical equation can be tested by combining the calculated single-ion activity coefficients to give mean values which can be compared to experimental values. The prevailing view that single ion activity coefficients are unmeasurable independently, or perhaps even physically meaningless, has its roots in the work of Guggenheim in the late 1920s. However, chemists have never been able to give up the idea of single ion activities, and by implication single ion activity coefficients. For example, pH is defined as the negative logarithm of the hydrogen ion activity. If the prevailing view on the physical meaning and measurability of single ion activities is correct then defining pH as the negative logarithm of the hydrogen ion activity places the quantity squarely in the unmeasurable category. Recognizing this logical difficulty, International Union of Pure and Applied Chemistry (IUPAC) states that the activity-based definition of pH is a notional definition only. Despite the prevailing negative view on the measurability of single ion coefficients, the concept of single ion activities continues to be discussed in the literature, and at least one author presents a definition of single ion activity in terms of purely thermodynamic quantities and proposes a method of measuring single ion activity coefficients based on purely thermodynamic processes. Concentrated ionic solutions 
For concentrated ionic solutions the hydration of ions must be taken into consideration, as done by Stokes and Robinson in their hydration model from 1948. The activity coefficient of the electrolyte is split into electric and statistical components by E. Glueckauf who modifies the Robinson–Stokes model. The statistical part includes hydration index number , the number of ions from the dissociation and the ratio  between the apparent molar volume of the electrolyte and the molar volume of water and molality . Concentrated solution statistical part of the activity coefficient is:

The Stokes–Robinson model has been analyzed and improved by other investigators as well. Experimental determination of activity coefficients 
Activity coefficients may be determined experimentally by making measurements on non-ideal mixtures. Use may be made of Raoult's law or Henry's law to provide a value for an ideal mixture against which the experimental value may be compared to obtain the activity coefficient. Other colligative properties, such as osmotic pressure may also be used. Radiochemical methods 
Activity coefficients can be determined by radiochemical methods. At infinite dilution 
Activity coefficients for binary mixtures are often reported at the infinite dilution of each component. Because activity coefficient models simplify at infinite dilution, such empirical values can be used to estimate interaction energies. Examples are given for water:

Theoretical calculation of activity coefficients 

Activity coefficients of electrolyte solutions may be calculated theoretically, using the Debye–Hückel equation or extensions such as the Davies equation, Pitzer equations or TCPC model. Specific ion interaction theory (SIT) may also be used. For non-electrolyte solutions correlative methods such as UNIQUAC, NRTL, MOSCED or UNIFAC may be employed, provided fitted component-specific or model parameters are available. COSMO-RS is a theoretical method which is less dependent on model parameters as required information is obtained from quantum mechanics calculations specific to each molecule (sigma profiles) combined with a statistical thermodynamics treatment of surface segments. For uncharged species, the activity coefficient γ0 mostly follows a salting-out model:

This simple model predicts activities of many species (dissolved undissociated gases such as CO2, H2S, NH3, undissociated acids and bases) to high ionic strengths (up to 5 mol/kg). The value of the constant b for CO2 is 0.11 at 10 °C and 0.20 at 330 °C. For water as solvent, the activity aw can be calculated using:

where ν is the number of ions produced from the dissociation of one molecule of the dissolved salt, b is the molality of the salt dissolved in water, φ is the osmotic coefficient of water, and the constant 55.51 represents the molality of water. In the above equation, the activity of a solvent (here water) is represented as inversely proportional to the number of particles of salt versus that of the solvent. Link to ionic diameter
The ionic activity coefficient is connected to the ionic diameter by the formula obtained from Debye–Hückel theory of electrolytes:

where A and B are constants, zi is the valence number of the ion, and I is ionic strength. Dependence on state parameters
The derivative of an activity coefficient with respect to temperature is related to excess molar enthalpy by 
 
Similarly, the derivative of an activity coefficient with respect to  pressure can be related to excess molar volume. Application to chemical equilibrium 
At equilibrium, the sum of the chemical potentials of the reactants is equal to the sum of the chemical potentials of the products. The Gibbs free energy change for the reactions, ΔrG, is equal to the difference between these sums and therefore, at equilibrium, is equal to zero. Thus, for an equilibrium such as

Substitute in the expressions for the chemical potential of each reactant:

Upon rearrangement this expression becomes

The sum 
 is the standard free energy change for the reaction, . Therefore,

where  is the equilibrium constant. Note that activities and equilibrium constants are dimensionless numbers. This derivation serves two purposes. It shows the relationship between standard free energy change and equilibrium constant. It also shows that an equilibrium constant is defined as a quotient of activities. In practical terms this is inconvenient. When each activity is replaced by the product of a concentration and an activity coefficient, the equilibrium constant is defined as

where [S] denotes the concentration of S, etc. In practice equilibrium constants are determined in a medium such that the quotient of activity coefficient is constant and can be ignored, leading to the usual expression

which applies under the conditions that the activity quotient has a particular (constant) value. References

External links 
 AIOMFAC online-model An interactive group-contribution model for the calculation of activity coefficients in organic–inorganic mixtures. Electrochimica Acta Single-ion activity coefficients

Thermodynamic models
Equilibrium chemistry
Dimensionless numbers of chemistry