Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

7.1. Equilibrium Constant

Course-wide Conventions & Notation

Overview and Learning Objectives

Chapter 6 treated one kind of equilibrium — the coexistence of two phases of a single substance — and showed that the condition for equilibrium reduces to equality of chemical potentials, μα=μβ\mu_\alpha = \mu_\beta. Chemical equilibrium is the multi-species generalization: instead of two phases of one substance, we now have several chemical species interconverting through a reaction, and the analogous condition (derived below) is

∑iνi μi=0.\sum_i \nu_i\,\mu_i = 0.

In this section we translate that abstract condition into the quantitative tools students have seen in general chemistry: the extent of reaction ξ\xi, the reaction quotient QpQ_p, the equilibrium constant KK, and the temperature dependence given by the van’t Hoff equation. The key ideas are:

This minimization gives the chemical equilibrium condition ΔrG=0\Delta_r G=0, and (for ideal gases) the familiar relationship

ΔrG=ΔrG∘+RTln⁡Qp,ΔrG∘=−RTln⁡K.\Delta_r G = \Delta_r G^{\circ} + RT\ln Q_p, \qquad \Delta_r G^{\circ} = -RT\ln K.

Learning objectives:

Core Ideas and Derivations

7.1.1 Extent of reaction ξ\xi

Consider a general reaction written with stoichiometric coefficients:

νAA+νBB⇌νYY+νZZ.\nu_A A + \nu_B B \rightleftharpoons \nu_Y Y + \nu_Z Z.

A convenient way to describe composition changes is the extent of reaction ξ\xi (units of moles). If ni,0n_{i,0} are initial amounts, then as the reaction proceeds,

nA=nA,0−νA ξ,nB=nB,0−νB ξ,nY=nY,0+νY ξ,nZ=nZ,0+νZ ξ.n_A = n_{A,0} - \nu_A\,\xi,\qquad n_B = n_{B,0} - \nu_B\,\xi,\qquad n_Y = n_{Y,0} + \nu_Y\,\xi,\qquad n_Z = n_{Z,0} + \nu_Z\,\xi.

Differentiating gives the compact relation

dni=νi dξdn_i = \nu_i\,d\xi

if we adopt the signed stoichiometry convention: νi<0\nu_i<0 for reactants and νi>0\nu_i>0 for products.


7.1.2 Gibbs free energy and the equilibrium condition

Treat the system Gibbs energy as a function of T,PT,P, and composition:

G=G(T,P,nA,nB,nY,nZ,…).G = G(T,P,n_A,n_B,n_Y,n_Z,\ldots).

Its total differential is

dG=(∂G∂T)P,n ⁣dT+(∂G∂P)T,n ⁣dP+∑i(∂G∂ni)T,P,nj≠idni.dG = \left(\frac{\partial G}{\partial T}\right)_{P,n}\! dT + \left(\frac{\partial G}{\partial P}\right)_{T,n}\! dP + \sum_i \left(\frac{\partial G}{\partial n_i}\right)_{T,P,n_{j\neq i}} dn_i.

The partial derivative (∂G/∂ni)T,P,nj≠i\left(\partial G/\partial n_i\right)_{T,P,n_{j\ne i}} was introduced in § 6.1.2 as the chemical potential μi\mu_i, so

dG=−S dT+V dP+∑iμi dni.dG = -S\,dT + V\,dP + \sum_i \mu_i\,dn_i.

At constant TT and PP,

dG=∑iμi dni.dG = \sum_i \mu_i\,dn_i.

Using Eq. (6),

dG=(∑iνiμi)dξ.dG = \left(\sum_i \nu_i\mu_i\right)d\xi.

This motivates the definition of the Gibbs free energy of reaction:

ΔrG≡∑iνi μi\boxed{\Delta_r G \equiv \sum_i \nu_i\,\mu_i}

and therefore

(∂G∂ξ)T,P=ΔrG.\left(\frac{\partial G}{\partial \xi}\right)_{T,P} = \Delta_r G.

Spontaneity and equilibrium (constant T,PT,P)

At equilibrium,

ΔrG=0.\boxed{\Delta_r G = 0.}

This is the multi-species analog of the phase-equilibrium condition μα=μβ\mu_\alpha = \mu_\beta from § 6.1.2. Instead of transferring matter between two phases, we now transfer it among several chemical species; equilibrium is again the stationary point of GG at fixed T,PT,P.


7.1.3 Reaction quotient QpQ_p and the equilibrium constant KK

To connect ΔrG\Delta_r G to measurable composition variables, we need an expression for the chemical potentials.

Ideal-gas chemical potential

Section 5.3 showed that for one mole of an ideal gas at constant TT, integrating dG=V dPdG = V\,dP from P∘P^\circ to PP gives G(T,P)−G∘(T)=RTln⁡(P/P∘)G(T,P) - G^\circ(T) = RT\ln(P/P^\circ). For a single species in an ideal-gas mixture, the same argument with PiP_i in place of PP yields

μi(T,Pi)=μi∘(T)+RTln⁡(PiP∘),\mu_i(T,P_i)=\mu_i^{\circ}(T)+RT\ln\left(\frac{P_i}{P^{\circ}}\right),

where P∘P^{\circ} is the standard-state pressure (1 bar, per the notation conventions) and μi∘(T)\mu_i^{\circ}(T) is the standard chemical potential.

Derivation of ΔrG=ΔrG∘+RTln⁡Qp\Delta_r G = \Delta_r G^{\circ} + RT\ln Q_p

Substitute Eq. (15) into Eq. (12):

ΔrG=∑iνiμi∘(T)+RT∑iνiln⁡(PiP∘).\Delta_r G =\sum_i \nu_i\mu_i^{\circ}(T) +RT\sum_i\nu_i\ln\left(\frac{P_i}{P^{\circ}}\right).

Define the standard Gibbs energy of reaction

ΔrG∘(T)≡∑iνiμi∘(T),\Delta_r G^{\circ}(T)\equiv \sum_i \nu_i\mu_i^{\circ}(T),

and combine the logarithms to define the reaction quotient QpQ_p:

RT∑iνiln⁡(PiP∘)=RTln⁡[∏i(PiP∘)νi]≡RTln⁡Qp.RT\sum_i\nu_i\ln\left(\frac{P_i}{P^{\circ}}\right) =RT\ln\left[\prod_i\left(\frac{P_i}{P^{\circ}}\right)^{\nu_i}\right] \equiv RT\ln Q_p.

Therefore,

ΔrG=ΔrG∘+RTln⁡Qp.\boxed{\Delta_r G = \Delta_r G^{\circ} + RT\ln Q_p.}

Equilibrium: Qp=KQ_p = K

At equilibrium, ΔrG=0\Delta_r G=0, so

0=ΔrG∘+RTln⁡K⟹ΔrG∘=−RTln⁡K,0 = \Delta_r G^{\circ} + RT\ln K \qquad\Longrightarrow\qquad \boxed{\Delta_r G^{\circ} = -RT\ln K,}

with

K=exp⁡ ⁣(−ΔrG∘RT).\boxed{ K = \exp\!\left(-\frac{\Delta_r G^{\circ}}{RT}\right). }

For an ideal-gas reaction this KK is the pressure-based equilibrium constant (and equals the limit of QpQ_p at equilibrium).

Using QpQ_p vs KK to predict direction

Since ΔrG=RTln⁡(Qp/K)\Delta_r G = RT\ln(Q_p/K):


7.1.4 Worked example: gas-phase dimerization of NO2\mathrm{NO_2}

Consider the equilibrium

2 NO2(g)⇌N2O4(g).2\,\mathrm{NO_2(g)} \rightleftharpoons \mathrm{N_2O_4(g)}.

(NO2\mathrm{NO_2} is brown; N2O4\mathrm{N_2O_4} is colorless.)

Thermodynamics and KK at 298.15 K

At 298.15 K298.15\,\mathrm{K} (values from § 5.3-style tabulated data):

ΔrH∘=−57.1 kJ mol−1,ΔrS∘=−175.7 J K−1 mol−1,ΔrG∘=−4.74 kJ mol−1,\Delta_r H^{\circ} = -57.1\ \mathrm{kJ\,mol^{-1}},\qquad \Delta_r S^{\circ} = -175.7\ \mathrm{J\,K^{-1}\,mol^{-1}},\qquad \Delta_r G^{\circ} = -4.74\ \mathrm{kJ\,mol^{-1}},

giving

K=exp⁡ ⁣(−ΔrG∘RT)≈exp⁡ ⁣(4.74×103(8.314)(298.15))≈6.74.K = \exp\!\left(-\frac{\Delta_r G^{\circ}}{RT}\right) \approx \exp\!\left(\frac{4.74\times 10^3}{(8.314)(298.15)}\right) \approx 6.74.

Equilibrium composition at a specified total pressure

Suppose we start with 2 mol of NO2\mathrm{NO_2} and 0 mol of N2O4\mathrm{N_2O_4}. Build an ICE table in terms of ξ\xi:

Mole fractions (ideal-gas mixture):

yNO2=2−2ξ2−ξ,yN2O4=ξ2−ξ.y_{\mathrm{NO_2}} = \frac{2-2\xi}{2-\xi},\qquad y_{\mathrm{N_2O_4}} = \frac{\xi}{2-\xi}.

At total pressure PP, partial pressures are Pi=yiPP_i=y_i P, and

K=(PN2O4/P∘)(PNO2/P∘)2=ξ(2−ξ)(2−2ξ)2 P∘P.K =\frac{(P_{\mathrm{N_2O_4}}/P^{\circ})}{(P_{\mathrm{NO_2}}/P^{\circ})^2} = \frac{\xi(2-\xi)}{(2-2\xi)^2}\,\frac{P^{\circ}}{P}.

For P=P∘P=P^{\circ} and K=6.74K=6.74, numerical root-finding gives

ξeq≈0.81,\xi_{eq} \approx 0.81,

so

nNO2,eq≈0.38,nN2O4,eq≈0.81.n_{\mathrm{NO_2},eq}\approx 0.38, \qquad n_{\mathrm{N_2O_4},eq}\approx 0.81.

G(ξ)G(\xi) has a minimum at ξeq\xi_{\mathrm{eq}}

The equilibrium condition ΔrG=0\Delta_r G = 0 is the statement that G(ξ)G(\xi) has a stationary point at equilibrium. For this system, with mole fractions yi(ξ)y_i(\xi) and P=P∘P=P^\circ, the Gibbs free energy relative to pure reactants is

G(ξ)−G(0)=ξ ΔrG∘+RT ⁣[(2−2ξ)ln⁡yNO2(ξ)+ξln⁡yN2O4(ξ)].G(\xi) - G(0) = \xi\,\Delta_r G^{\circ} + RT\!\left[(2-2\xi)\ln y_{\mathrm{NO_2}}(\xi) + \xi\ln y_{\mathrm{N_2O_4}}(\xi)\right].

The first term is the “bookkeeping” shift in standard chemical potentials; the second is the ideal-mixing entropy that prevents the reaction from running to completion. Plotting:

import numpy as np
import matplotlib.pyplot as plt

R = 8.314462618          # J mol^-1 K^-1
T = 298.15
dG_std = -4.74e3         # J per mole of reaction
K_eq = np.exp(-dG_std / (R*T))

def G_of_xi(xi):
    n_NO2 = 2 - 2*xi
    n_N2O4 = xi
    n_tot = 2 - xi
    mix = 0.0
    if n_NO2 > 0:
        mix += n_NO2 * np.log(n_NO2 / n_tot)
    if n_N2O4 > 0:
        mix += n_N2O4 * np.log(n_N2O4 / n_tot)
    return xi*dG_std + R*T*mix   # J (per initial 2 mol NO2)

xis = np.linspace(1e-4, 1 - 1e-4, 400)
G_vals = np.array([G_of_xi(x) for x in xis]) / 1e3   # kJ

# Analytical xi_eq from K = xi(2-xi)/(2-2xi)^2
from scipy.optimize import brentq
xi_eq = brentq(lambda x: x*(2-x)/(2-2*x)**2 - K_eq, 0.01, 0.99)

fig, ax = plt.subplots(figsize=(6.0, 4.0))
ax.plot(xis, G_vals, lw=2)
ax.axvline(xi_eq, color="k", ls="--", lw=1)
ax.plot([xi_eq], [G_of_xi(xi_eq)/1e3], "o", color="tab:red", zorder=5)
ax.annotate(fr"$\xi_{{\mathrm{{eq}}}} \approx {xi_eq:.2f}$",
            xy=(xi_eq, G_of_xi(xi_eq)/1e3),
            xytext=(xi_eq - 0.35, G_of_xi(xi_eq)/1e3 + 1.0),
            arrowprops=dict(arrowstyle="->", lw=1))
ax.set_xlabel(r"Extent of reaction $\xi$ (mol)")
ax.set_ylabel(r"$G(\xi) - G(0)$ (kJ)")
ax.set_title(r"$2\,\mathrm{NO_2}(g) \rightleftharpoons \mathrm{N_2O_4}(g)$, " 
             r"$T=298.15$ K, $P=P^\circ$")
fig.subplots_adjust(left=0.14, right=0.96, top=0.90, bottom=0.14)
plt.show()
<Figure size 600x400 with 1 Axes>

The minimum of G(ξ)G(\xi) lies precisely at the ξeq\xi_{eq} computed from KK. Note that the curve is asymmetric: the left branch is driven by ΔrG∘<0\Delta_r G^\circ < 0 (pushing ξ\xi upward from pure reactants), while the right branch is pulled back up by the RT∑niln⁡yiRT\sum n_i \ln y_i mixing term as the mixture becomes dominated by N2O4\mathrm{N_2O_4}. The “tug-of-war” between these two terms is the reason chemical equilibrium is generically an interior minimum rather than either pure reactants or pure products.

Interactive visualization


7.1.5 Temperature dependence: the van’t Hoff equation

The temperature dependence of KK follows from the Gibbs–Helmholtz relation:

(∂∂TΔrG∘T)P=−ΔrH∘T2.\left(\frac{\partial}{\partial T}\frac{\Delta_r G^{\circ}}{T}\right)_P = -\frac{\Delta_r H^{\circ}}{T^2}.

Using ΔrG∘=−RTln⁡K\Delta_r G^{\circ}=-RT\ln K gives the van’t Hoff equation:

(∂ln⁡K∂T)P=ΔrH∘RT2.\boxed{ \left(\frac{\partial \ln K}{\partial T}\right)_P = \frac{\Delta_r H^{\circ}}{RT^2}. }

An equivalent integrated form between T1T_1 and T2T_2 (assuming ΔrH∘\Delta_r H^{\circ} is approximately constant over the range) is

ln⁡ ⁣[K(T2)K(T1)]=−ΔrH∘R ⁣(1T2−1T1).\boxed{ \ln\!\left[\frac{K(T_2)}{K(T_1)}\right] = -\frac{\Delta_r H^{\circ}}{R}\!\left(\frac{1}{T_2}-\frac{1}{T_1}\right). }

Example trend for 2 NO2⇌N2O42\,\mathrm{NO_2}\rightleftharpoons\mathrm{N_2O_4}

At P=P∘P=P^{\circ}:

TT (K)KKξeq\xi_{eq} (starting from 2 mol NO2_2)
250205.180.97
298.156.740.81
3500.170.23

Because ΔrH∘<0\Delta_r H^{\circ}<0 for dimerization, increasing temperature drives KK down and shifts equilibrium toward NO2\mathrm{NO_2} (less N2O4\mathrm{N_2O_4}). This is the quantitative form of Le Châtelier’s principle for an exothermic reaction.


7.1.6 Computing KK from tabulated thermochemistry

In § 7.1.3 we derived the key link between equilibrium and thermochemistry:

K(T)=exp⁡ ⁣(−ΔrG∘(T)RT).K(T) = \exp\!\left(-\frac{\Delta_r G^{\circ}(T)}{RT}\right).

So if you can compute ΔrG∘\Delta_r G^{\circ} at a temperature of interest, you can immediately compute the equilibrium constant. This subsection is a practical workflow for getting ΔrG∘\Delta_r G^{\circ} from tabulated thermochemical data.

Step 0: Write the reaction (with phases) and choose a standard state

  1. Balance the reaction and include phases, e.g. NH3(g)\mathrm{NH_3(g)} vs NH3(ℓ)\mathrm{NH_3(\ell)}.

  2. Use a consistent standard state across all species (most modern tables use P∘=1 barP^\circ=1\ \mathrm{bar} at T=298.15 KT=298.15\ \mathrm{K}; always check the table header).

Step 1: Pull species data at the same temperature

For each species ii in the balanced equation, collect either:

Where to get the data:

Step 2: Convert species data into reaction values

Once you have consistent species data, compute reaction properties using stoichiometric coefficients νi\nu_i (positive for products, negative for reactants):

ΔrH∘=∑iνi Hi∘andΔrS∘=∑iνi Si∘.\Delta_r H^\circ = \sum_i \nu_i\,H_i^\circ \qquad\text{and}\qquad \Delta_r S^\circ = \sum_i \nu_i\,S_i^\circ.

If your data are enthalpies of formation, this becomes the familiar “products minus reactants” form:

ΔrH∘=∑productsνp ΔfHp∘−∑reactantsνr ΔfHr∘.\Delta_r H^\circ = \sum_{\text{products}} \nu_p\,\Delta_f H_p^\circ -\sum_{\text{reactants}} \nu_r\,\Delta_f H_r^\circ.

Step 3: Compute ΔrG∘\Delta_r G^\circ

If you have ΔrH∘\Delta_r H^\circ and ΔrS∘\Delta_r S^\circ at the same temperature, then

ΔrG∘(T)=ΔrH∘(T)−T ΔrS∘(T).\Delta_r G^\circ(T) = \Delta_r H^\circ(T) - T\,\Delta_r S^\circ(T).

Step 4: Compute KK

Finally,

K(T)=exp⁡ ⁣(−ΔrG∘(T)RT),log⁡10K(T)=−ΔrG∘(T)(ln⁡10) RT.K(T) = \exp\!\left(-\frac{\Delta_r G^\circ(T)}{RT}\right), \qquad \log_{10}K(T) = -\frac{\Delta_r G^\circ(T)}{(\ln 10)\,RT}.

For an ideal-gas reaction, this KK corresponds to a pressure-based equilibrium constant with the dimensionless ratio (Pi/P∘)(P_i/P^\circ) inside QpQ_p.


Worked example: ammonia formation at 298.15 K

For the Haber–Bosch reaction (as written in § 5.3),

N2(g)+3H2(g)→2NH3(g).\mathrm{N_2(g) + 3H_2(g) \rightarrow 2NH_3(g)}.

Using the reaction values quoted in § 5.3 at 298.15 K,

ΔrH∘≈−92 kJ mol−1,ΔrS∘≈−198 J mol−1 K−1,\Delta_r H^\circ \approx -92\ \mathrm{kJ\,mol^{-1}},\qquad \Delta_r S^\circ \approx -198\ \mathrm{J\,mol^{-1}\,K^{-1}},

gives

ΔrG∘≈−92 kJ mol−1−(298.15 K) ⁣(−0.198 kJ mol−1 K−1)≈−33 kJ mol−1.\Delta_r G^\circ \approx -92\ \mathrm{kJ\,mol^{-1}} - (298.15\ \mathrm{K})\!\left(-0.198\ \mathrm{kJ\,mol^{-1}\,K^{-1}}\right) \approx -33\ \mathrm{kJ\,mol^{-1}}.

Then

K(298.15 K)=exp⁡ ⁣(−−33,000(8.314)(298.15))≈6×105.K(298.15\ \mathrm{K}) = \exp\!\left(-\frac{-33{,}000}{(8.314)(298.15)}\right) \approx 6\times 10^{5}.

Interpretation. K≫1K\gg 1 at room temperature, so the equilibrium strongly favors NH3\mathrm{NH_3} at the standard state. (Section 5.3 explains why temperature and pressure “knobs” still matter for industrial operation, where the 500 °C kinetic sweet spot drives KK down dramatically.)


Common pitfalls (and quick fixes)

Concept Checks

  1. Why is ΔrG=0\Delta_r G=0 the correct equilibrium condition at constant T,PT,P? What would change if the reaction instead ran at constant T,VT,V? (The constant-T,VT,V case is developed in § 7.2.)

  2. Why must QpQ_p and KK be dimensionless? What role does P∘P^\circ play?

  3. How does comparing QpQ_p to KK predict the direction of spontaneous change?

  4. Inspecting Eq. (32): which term in G(ξ)G(\xi) would vanish if the mixture were not ideal (i.e., if there were no entropy of mixing)? Why does this entropy term prevent the reaction from running to completion even when ΔrG∘≪0\Delta_r G^\circ \ll 0?

  5. What changes in the derivation of ΔrG=ΔrG∘+RTln⁡Qp\Delta_r G = \Delta_r G^\circ + RT\ln Q_p if the mixture is non-ideal and activities replace partial-pressure ratios?

Key Takeaways