In chemical thermodynamics, the fugacity of a real gas is an effective partial pressure which replaces the mechanical partial pressure in an accurate computation of the chemical equilibrium constant. It is equal to the pressure of an ideal gas which has the same chemical potential as the real gas. For example, nitrogen gas (N2) at 0 °C and a pressure of P = 100 atm has a fugacity of f = 97.03 atm. This means that the chemical potential of real nitrogen at a pressure of 100 atm is less than if nitrogen were an ideal gas; the value of the chemical potential is that which nitrogen as an ideal gas would have at a pressure of 97.03 atm.
Fugacities are determined experimentally or estimated from various models such as a Van der Waals gas that are closer to reality than an ideal gas. The ideal gas pressure and fugacity are related through the dimensionless fugacity coefficient φ.
For nitrogen at 100 atm, the fugacity coefficient is 97.03 atm / 100 atm = 0.9703. For an ideal gas, fugacity and pressure are equal so φ is 1.
The contribution of nonideality to the chemical potential of a real gas is equal to RT ln φ. Again for nitrogen at 100 atm, the chemical potential is μ = μid + RT ln 0.9703, which is less than the ideal value μid because of intermolecular attractive forces.
The fugacity is closely related to the thermodynamic activity. For a gas, the activity is simply the fugacity divided by a reference pressure to give a dimensionless quantity. This reference pressure is called the standard state and normally chosen as 1 atmosphere or 1 bar, Again using nitrogen at 100 atm as an example, since the fugacity is 97.03 atm, the activity is just 97.03 without units.
Accurate calculations of chemical equilibrium for real gases should use the fugacity rather than the pressure. The thermodynamic condition for chemical equilibrium is that the total chemical potential of reactants is equal to that of products. If the chemical potential of each gas is expressed as a function of fugacity, the equilibrium condition may be transformed into the familiar reaction quotient form (or law of mass action) except that the pressures are replaced by fugacities.