Equilibrium conditions for closed systems

You already know the rule from school: a reaction runs while ΔG<0\Delta G<0 and stops once ΔG=0\Delta G=0. That rule is qualitative — it never tells you why ΔG\Delta G stops changing, or what "the reaction" even means once you have a mixture of reactants and products sitting together in one flask. This article makes the rule exact. For a closed system at constant temperature and pressure, the single criterion dG≤0dG\le0 governs everything: which way a reaction runs, when it stops, and even when a liquid stops evaporating into its own vapour. The tool that makes this precise is the extent of reaction ξ\xi, a single number that tracks how far a reaction has proceeded, and its partner the reaction Gibbs energy ΔrG\Delta_r G, literally the slope of a GG versus ξ\xi curve. Where that slope is zero, the system is at equilibrium — and from that one condition falls out the equilibrium constant KK itself, derived rather than assumed.

The core insight

At constant T,PT,P a closed system evolves toward the composition that minimises its Gibbs energy GG, so equilibrium — for a reaction or for matter moving between phases — is exactly the state where the slope ΔrG=∑iνiμi\Delta_r G=\sum_i\nu_i\mu_i or the chemical potential difference μi(α)−μi(β)\mu_i^{(\alpha)}-\mu_i^{(\beta)} vanishes.

The core idea

The single criterion. The Second Law, specialised to constant TT and PP (the everyday lab condition — open beaker, atmospheric pressure, thermostatted bath), collapses to one inequality:

dG≤0dG \le 0

with the equality dG=0dG=0 marking equilibrium: the state beyond which no further spontaneous change is possible. (At constant S,VS,V the analogous statement is dU≤0dU\le0; at constant T,VT,V it is dA≤0dA\le0 — but dG≤0dG\le0 is the one chemists reach for almost always, because constant T,PT,P is how real experiments are run.)

Tracking composition with one variable. A reaction mixture has many mole numbers nin_i, but for a single reaction ∑iνiAi=0\sum_i\nu_i A_i=0 they are not independent — they all move together, tied to one extent of reaction ξ\xi through dni=νi dξdn_i=\nu_i\,d\xi (products carry positive νi\nu_i, reactants negative). Substituting into dG=∑iμi dnidG=\sum_i\mu_i\,dn_i collapses the whole sum to a single slope:

dG∣T,P=(∑iνiμi)dξ≡ΔrG dξdG\Big|_{T,P} = \left(\sum_i \nu_i\mu_i\right)d\xi \equiv \Delta_r G\,d\xi

where: μi\mu_i is the chemical potential of species ii, νi\nu_i its stoichiometric coefficient, and ΔrG≡∑iνiμi=(∂G/∂ξ)T,P\Delta_r G\equiv\sum_i\nu_i\mu_i=(\partial G/\partial\xi)_{T,P} is the reaction Gibbs energy — literally the gradient of the GG-versus-ξ\xi curve at the current composition.

Reading the sign. Since dξ>0d\xi>0 always means "reaction moves forward," the criterion dG≤0dG\le0 forces: if ΔrG<0\Delta_r G<0 the reaction runs forward; if ΔrG>0\Delta_r G>0 it runs in reverse; and equilibrium is the unique point where the slope is exactly zero,

ΔrG=∑iνiμi=0at equilibrium.\Delta_r G=\sum_i\nu_i\mu_i=0 \quad\text{at equilibrium.}

This is why the GG versus ξ\xi curve is bowl-shaped: it falls while ΔrG<0\Delta_r G<0, flattens to zero at the bottom, and would rise (violating dG≤0dG\le0) if the reaction overshot — so the system simply cannot pass the minimum.

The same logic for phases, no reaction needed. If species ii can migrate between two phases α\alpha and β\beta inside a sealed container (liquid and vapour, say), moving dni(α)dn_i^{(\alpha)} moles from β\beta into α\alpha changes GG by (μi(α)−μi(β)) dni(α)(\mu_i^{(\alpha)}-\mu_i^{(\beta)})\,dn_i^{(\alpha)}. The same dG≤0dG\le0 argument then gives phase equilibrium as

μi(α)=μi(β)\mu_i^{(\alpha)} = \mu_i^{(\beta)}

Both results — ∑νiμi=0\sum\nu_i\mu_i=0 for a reaction, μi(α)=μi(β)\mu_i^{(\alpha)}=\mu_i^{(\beta)} for phase transfer — are the same principle wearing two hats: at constant T,PT,P, equilibrium is the state where GG is stationary with respect to every variable the system is free to adjust.

Figure
Gibbs energy plotted against extent of reaction forming a bowl shape with the slope negative on the left, zero at the minimum marked equilibrium, and positive on the right
G versus extent of reaction — the slope IS the reaction Gibbs energy extent of reaction, xi Gibbs energy, G equilibrium, delta_r G = 0 slope negative delta_r G less than 0 slope positive delta_r G greater than 0 forward reaction runs reverse reaction runs
Derivation AFrom the equilibrium condition to the equilibrium constant

The goal is to show that the single microscopic condition ΔrG=∑iνiμi=0\Delta_r G=\sum_i\nu_i\mu_i=0, applied to an ideal-gas reaction, is not an independent rule but the exact origin of the familiar bridge equation ΔrG∘=−RTln⁡K\Delta_r G^\circ=-RT\ln K that connects tabulated thermodynamic data to the equilibrium constant used throughout equilibrium chemistry.

Step 1. Take the gas-phase reaction N2O4(g)⇌2NO2(g)\text{N}_2\text{O}_4(g)\rightleftharpoons2\text{NO}_2(g), so νN2O4=−1\nu_{N_2O_4}=-1 and νNO2=+2\nu_{NO_2}=+2. Each species has an ideal-gas chemical potential μi=μi∘+RTln⁡(pi/p∘)\mu_i=\mu_i^\circ+RT\ln(p_i/p^\circ), where μi∘\mu_i^\circ is its standard chemical potential and pi/p∘p_i/p^\circ its partial pressure relative to the standard pressure.

Step 2. Substitute into ΔrG=∑iνiμi=2μNO2−μN2O4\Delta_r G=\sum_i\nu_i\mu_i=2\mu_{NO_2}-\mu_{N_2O_4} and expand each μi\mu_i: ΔrG=2[μNO2∘+RTln⁡(pNO2/p∘)]−[μN2O4∘+RTln⁡(pN2O4/p∘)]\Delta_r G=2\left[\mu_{NO_2}^\circ+RT\ln(p_{NO_2}/p^\circ)\right]-\left[\mu_{N_2O_4}^\circ+RT\ln(p_{N_2O_4}/p^\circ)\right].

Step 3. Collect the standard-state terms separately from the logarithmic terms: ΔrG=(2μNO2∘−μN2O4∘)+RT[2ln⁡(pNO2/p∘)−ln⁡(pN2O4/p∘)]\Delta_r G=\left(2\mu_{NO_2}^\circ-\mu_{N_2O_4}^\circ\right)+RT\left[2\ln(p_{NO_2}/p^\circ)-\ln(p_{N_2O_4}/p^\circ)\right]. The first bracket is by definition the standard reaction Gibbs energy ΔrG∘\Delta_r G^\circ, and the second bracket is RTln⁡[(pNO2/p∘)2/(pN2O4/p∘)]=RTln⁡QRT\ln\left[(p_{NO_2}/p^\circ)^2/(p_{N_2O_4}/p^\circ)\right]=RT\ln Q, where QQ is the reaction quotient built from the instantaneous pressures. So generally ΔrG=ΔrG∘+RTln⁡Q\Delta_r G=\Delta_r G^\circ+RT\ln Q.

Step 4. Impose the equilibrium condition. At equilibrium ΔrG=0\Delta_r G=0 and QQ takes its special equilibrium value, called KK: 0=ΔrG∘+RTln⁡K0=\Delta_r G^\circ+RT\ln K, which rearranges to

ΔrG∘=−RTln⁡K\Delta_r G^\circ = -RT\ln K

This is the exact bridge between thermodynamics (ΔrG∘\Delta_r G^\circ, computed from tabulated μi∘\mu_i^\circ or ΔfG∘\Delta_f G^\circ values) and the equilibrium constant KK — derived here from ∑νiμi=0\sum\nu_i\mu_i=0, not asserted as a separate postulate. Verified: for any reaction with ideal-gas or ideal-solution species, ΔrG=ΔrG∘+RTln⁡Q\Delta_r G=\Delta_r G^\circ+RT\ln Q reduces at Q=KQ=K to ΔrG∘=−RTln⁡K\Delta_r G^\circ=-RT\ln K; the algebra depends only on μi=μi∘+RTln⁡(activityi)\mu_i=\mu_i^\circ+RT\ln(\text{activity}_i).

Worked example

A closed vessel at 350 K holds liquid benzene in equilibrium with its vapour. A small amount of liquid evaporates spontaneously while the system is not yet at equilibrium. What does this say about the sign of μ(l)−μ(v)\mu^{(l)}-\mu^{(v)}, and how does that quantity change as evaporation proceeds?

Step 1. Set up the extent-of-reaction bookkeeping for the phase transfer: moving dξd\xi moles from liquid to vapour gives dn(v)=+dξdn^{(v)}=+d\xi and dn(l)=−dξdn^{(l)}=-d\xi, so dG=μ(v)dn(v)+μ(l)dn(l)=(μ(v)−μ(l)) dξdG=\mu^{(v)}dn^{(v)}+\mu^{(l)}dn^{(l)}=(\mu^{(v)}-\mu^{(l)})\,d\xi.

Step 2. Apply the spontaneity condition. Evaporation is observed, meaning dξ>0d\xi>0 actually occurs, and it must satisfy dG≤0dG\le0. Combined, this forces μ(v)−μ(l)≤0\mu^{(v)}-\mu^{(l)}\le0, i.e. μ(l)>μ(v)\mu^{(l)}>\mu^{(v)} — the liquid's chemical potential is higher, matching the general rule that matter flows from high μ\mu to low μ\mu.

Step 3. Track how the gap closes. As evaporation proceeds in the sealed, fixed-volume vessel, the vapour's partial pressure rises, so μ(v)=μ∘(v)+RTln⁡(p/p∘)\mu^{(v)}=\mu^{\circ(v)}+RT\ln(p/p^\circ) climbs, while μ(l)\mu^{(l)} (pure liquid, essentially pressure-insensitive) stays flat. The gap μ(l)−μ(v)\mu^{(l)}-\mu^{(v)} therefore shrinks toward zero.

Answer: evaporation stops exactly when μ(l)=μ(v)\mu^{(l)}=\mu^{(v)} — the vessel has reached the saturation vapour pressure of benzene at 350 K, a dynamic, self-limiting endpoint driven purely by chemical-potential equalisation rather than a static "reaction has stopped" picture.

Competitive stretch

Suppose at 350 K the standard reaction Gibbs energy for N2O4⇌2NO2\text{N}_2\text{O}_4\rightleftharpoons2\text{NO}_2 were ΔrG∘=+5.0 kJ mol−1\Delta_r G^\circ=+5.0\ \text{kJ mol}^{-1}. Using ΔrG∘=−RTln⁡K\Delta_r G^\circ=-RT\ln K with R=8.314 J mol−1K−1R=8.314\ \text{J mol}^{-1}\text{K}^{-1}: ln⁡K=−ΔrG∘/RT=−5000/(8.314×350)=−1.72\ln K=-\Delta_r G^\circ/RT=-5000/(8.314\times350)=-1.72, so K=e−1.72≈0.18K=e^{-1.72}\approx0.18. A positive ΔrG∘\Delta_r G^\circ correctly gives K<1K<1: at standard pressures the reaction as written is unfavourable, favouring N2O4\text{N}_2\text{O}_4 over NO2\text{NO}_2 at equilibrium — exactly what the sign of ΔrG∘\Delta_r G^\circ predicts.

Common traps

  • Confusing ΔrG\Delta_r G (the instantaneous slope ∂G/∂ξ\partial G/\partial\xi, changes as the reaction proceeds) with ΔrG∘\Delta_r G^\circ (a fixed number at standard conditions) — only at equilibrium is ΔrG=0\Delta_r G=0, and Q=KQ=K only at equilibrium too.
  • Reading ΔrG<0\Delta_r G<0 as "the reaction goes to completion" — it only means ξ\xi is currently increasing; the reaction still halts once ΔrG\Delta_r G climbs back to zero as QQ rises toward KK.
  • Applying dG≤0dG\le0 outside constant T,PT,P — for constant S,VS,V use dU≤0dU\le0, for constant T,VT,V use dA≤0dA\le0.
  • Flipping the sign convention in ΔrG=∑iνiμi\Delta_r G=\sum_i\nu_i\mu_i by treating a reactant's νi\nu_i as positive instead of negative.

Ask the tutor: if the jump from ΔrG=∑νiμi=0\Delta_r G=\sum\nu_i\mu_i=0 to ΔrG∘=−RTln⁡K\Delta_r G^\circ=-RT\ln K felt fast, ask the AI tutor to redo the derivation slowly for a reaction of your choosing.

Why is dG less than or equal to zero the criterion only at constant T and P, and not always?

The Second Law in its most basic form is about entropy, dS≥0dS\ge0 for an isolated system. Converting that into a statement about G=H−TSG=H-TS requires holding TT and PP fixed while the system exchanges heat and work with its surroundings — that is precisely how dG≤0dG\le0 gets derived. Hold different variables constant instead (say SS and VV, or TT and VV) and the bookkeeping produces a different potential — dU≤0dU\le0 or dA≤0dA\le0 respectively — because a different combination of variables is now the natural one to track. Chemists default to dG≤0dG\le0 because most reactions happen open to the atmosphere at roughly constant pressure and temperature, not because it is the only valid form.

Does delta_r G equal zero mean the reaction has stopped happening at the molecular level?

No — equilibrium is dynamic, not static. Forward and reverse reactions both continue at the molecular level, and at equilibrium their rates have simply become equal, so there is no further net change in composition. The thermodynamic statement ΔrG=0\Delta_r G=0 only tells you the macroscopic slope of GG versus ξ\xi is flat; it says nothing about molecules stopping. This is exactly the benzene example: liquid molecules keep evaporating and vapour molecules keep condensing even after the vessel reaches saturation vapour pressure — the two rates have just become equal.

How is the extent of reaction xi different from just tracking one species concentration?

Tracking a single species tells you only that species' story, and different species change by different amounts set by their stoichiometric coefficients — two moles of NO2 form for every one mole of N2O4 consumed, for instance. The extent of reaction xi is the one variable behind all of them: every dni=νi dξdn_i=\nu_i\,d\xi moves in lockstep with the same dξd\xi. That is precisely what lets the whole sum ∑iμi dni\sum_i\mu_i\,dn_i collapse into a single slope ΔrG dξ\Delta_r G\,d\xi, turning a multi-variable problem into a one-variable one.

Before this

Where this leads