The Gibbs Energy

Imagine a beaker sitting open on a bench, held at constant temperature and constant atmospheric pressure. Almost every reaction a chemist actually runs happens exactly like this. The question is simple to ask but subtle to answer: how do we predict, from thermodynamic data alone, whether a reaction will proceed? Entropy alone cannot answer this, because the surroundings also gain or lose entropy as heat flows in or out. J. Willard Gibbs solved this in the 1870s by defining a single function that bundles enthalpy and entropy together. That function, the Gibbs energy GG, becomes the natural potential for constant-temperature, constant-pressure change. This article builds G=H−TSG = H - TS from first principles. You will see why it is the right variable for benchtop chemistry. Then you will see how it connects to the Helmholtz energy. Finally you will see two full numerical examples showing ΔG\Delta G decide spontaneity.

Key takeaways
  • G=H−TSG = H - TS combines enthalpy and entropy into one state function with units of energy.
  • At constant TT and pp, spontaneous processes have dG≤0dG \le 0; equilibrium is dG=0dG = 0.
  • GG is the constant-TT,pp analogue of the Helmholtz energy AA, which governs constant-TT,VV processes.
  • ΔG\Delta G measures the maximum non-expansion work extractable from a process (foreshadowing later material).
  • Standard Gibbs energies of formation let you calculate ΔrG∘\Delta_rG^\circ for any reaction from tabulated data.
  • Key idea: GG is the thermodynamic potential that lets a closed system's entropy-maximization criterion be rewritten purely in terms of the system's own enthalpy and entropy, at fixed TT and pp.
The core insight

Because real chemistry happens at constant temperature and pressure, not constant energy or volume, we need a state function whose sign alone tells us the direction of spontaneous change without our having to separately track the entropy of the surroundings; G=H−TSG = H - TS is precisely that function, built so that ΔG=ΔH−TΔS\Delta G = \Delta H - T\Delta S folds the surroundings' entropy change into the system's own accounting.

The physical picture

Spontaneity is fundamentally governed by the second law: for an isolated system, entropy increases until equilibrium, dSuniv≥0dS_{\text{univ}} \ge 0. But a beaker on a bench is not isolated. It exchanges heat with the surroundings to stay at constant TT, and it exchanges volume work with the atmosphere to stay at constant pp. Tracking the total entropy of system plus surroundings is inconvenient — we want a criterion built entirely from properties of the system. Consider a system in thermal contact with surroundings at temperature TT, undergoing a process at constant pressure pp. Heat released by the system, −dq-dq, flows into the surroundings reversibly at the same TT, so the surroundings' entropy changes by dSsurr=−dqp/TdS_{\text{surr}} = -dq_p/T. At constant pressure with only expansion work, dqp=dHdq_p = dH. The second law requires

dSsys+dSsurr≥0dS_{\text{sys}} + dS_{\text{surr}} \ge 0
dSsys−dHT≥0dS_{\text{sys}} - \frac{dH}{T} \ge 0

Multiplying through by −T-T (which flips the inequality since T>0T > 0) gives dH−T dSsys≤0dH - T\,dS_{\text{sys}} \le 0. This combination of purely-system quantities, H−TSH - TS, is defined as the Gibbs energy GG. Its differential decrease at constant TT and pp is exactly the criterion for spontaneous change, expressed without ever looking at the surroundings directly. This mirrors how the Helmholtz energy A=U−TSA = U - TS was built for constant TT and VV, using dqV=dUdq_V = dU instead of dqp=dHdq_p = dH. Enthalpy replaces internal energy because pressure, not volume, is now the controlled mechanical variable. The pattern is general: whichever pair of variables you hold fixed, a Legendre transform of UU produces the natural potential for that pair.

Figure
Constructing G from H, S, and T at constant pressure
System (constant T, p) H (enthalpy) S (entropy) T (fixed, K) G = H − TS heat dq = dH Surroundings at T dS(surr) = −dH / T Total: dS(sys)+dS(surr) ≥ 0 ⇒ dG ≤ 0 at const T,p Spontaneous change: G decreases. Equilibrium: dG = 0. Non-spontaneous: dG greater than 0.
Figure
G versus reaction progress: spontaneity and equilibrium
extent of reaction, ξ G equilibrium, dG = 0 reactants products dG less than 0

The core relations

G≡H−TSG \equiv H - TS

where: GG is Gibbs energy, HH enthalpy, TT absolute temperature, SS entropy — all state functions of the system.

dG=dH−T dS−S dTdG = dH - T\,dS - S\,dT

where: this is the exact differential of GG, valid for any process, reversible or not.

ΔG=ΔH−TΔS(constant T)\Delta G = \Delta H - T\Delta S \quad (\text{constant } T)

where: the practical working formula for isothermal processes, using system ΔH\Delta H and ΔS\Delta S only.

dG≤0(constant T,p, no non-expansion work)dG \le 0 \quad (\text{constant } T, p, \text{ no non-expansion work})

where: equality holds at equilibrium; strict inequality signals spontaneous change in the forward direction.

G=A+pVG = A + pV

where: A=U−TSA = U - TS is the Helmholtz energy; GG and AA are related exactly as HH and UU are, by +pV+pV.

The core relations

Derivation AFrom the Clausius inequality to dG ≤ 0

Goal. Show that for a closed system at constant temperature and pressure, exchanging only expansion work with its surroundings, spontaneous change corresponds to dG≤0dG \le 0, using only system-level quantities.

Step 1. Start from the Clausius inequality. For any process, the entropy change of the system obeys

dS≥dqTdS \ge \frac{dq}{T}

where dqdq is the heat absorbed by the system from surroundings at temperature TT. Equality holds for a reversible process; the inequality holds for an irreversible (spontaneous) one.

Step 2. Specialize to constant pressure, expansion work only. If the only work is p dVp\,dV against a constant external pressure equal to the system pressure, the first law gives dU=dq−p dVdU = dq - p\,dV, so dq=dU+p dVdq = dU + p\,dV. At constant pressure this is dqp=d(U+pV)=dHdq_p = d(U + pV) = dH. Substituting,

dS≥dHTdS \ge \frac{dH}{T}

Step 3. Rearrange to isolate a system-only inequality. Multiply both sides by T>0T > 0 (inequality direction unchanged) and rearrange:

T dS≥dHT\,dS \ge dH
dH−T dS≤0dH - T\,dS \le 0

Step 4. Recognize the combination as a differential of G. At constant TT, d(TS)=T dSd(TS) = T\,dS, so dH−T dS=dH−d(TS)=d(H−TS)dH - T\,dS = dH - d(TS) = d(H - TS). Since G≡H−TSG \equiv H - TS, this is simply dGdG. Hence

dG≤0(constant T,p)dG \le 0 \qquad (\text{constant } T, p)

Step 5. Interpret the equality case. When the process is reversible, the system is infinitesimally close to equilibrium at every stage, and dG=0dG = 0. This is the condition satisfied at a genuine chemical equilibrium at fixed TT and pp: the Gibbs energy sits at a minimum with respect to the extent of reaction.

dG≤0 (spontaneous),dG=0 (equilibrium)at constant T,p\boxed{dG \le 0 \text{ (spontaneous)}, \quad dG = 0 \text{ (equilibrium)} \quad \text{at constant } T, p}

Worked examples

Example 1 — Foundational: melting of ice at two temperatures. For the process H2O(s)→H2O(l)\text{H}_2\text{O}(s) \rightarrow \text{H}_2\text{O}(l) at 1 bar, take ΔHfus=+6.01 kJ mol−1\Delta H_{\text{fus}} = +6.01\ \text{kJ mol}^{-1} and ΔSfus=+22.0 J K−1mol−1\Delta S_{\text{fus}} = +22.0\ \text{J K}^{-1}\text{mol}^{-1} (both roughly constant over the small temperature range considered). At T=263 KT = 263\ \text{K} (−10∘-10^\circC):

ΔG=ΔH−TΔS=6010 J mol−1−(263 K)(22.0 J K−1mol−1)\Delta G = \Delta H - T\Delta S = 6010\ \text{J mol}^{-1} - (263\ \text{K})(22.0\ \text{J K}^{-1}\text{mol}^{-1})
ΔG=6010−5786=+224 J mol−1\Delta G = 6010 - 5786 = +224\ \text{J mol}^{-1}

Positive ΔG\Delta G: melting is non-spontaneous at −10∘-10^\circC. Water below 0°C stays frozen — consistent with everyday experience. At T=283 KT = 283\ \text{K} (+10∘+10^\circC):

ΔG=6010−(283)(22.0)=6010−6226=−216 J mol−1\Delta G = 6010 - (283)(22.0) = 6010 - 6226 = -216\ \text{J mol}^{-1}

Negative ΔG\Delta G: melting is spontaneous at +10∘+10^\circC, matching observation. At T=ΔH/ΔS=6010/22.0=273 KT = \Delta H/\Delta S = 6010/22.0 = 273\ \text{K}, ΔG=0\Delta G = 0 exactly — the two phases coexist at equilibrium, correctly reproducing the normal melting point of ice, 0°C.

Example 2 — Applied: is a reaction spontaneous under standard conditions, and how does temperature shift the answer? Consider the synthesis of ammonia,

N2(g)+3H2(g)→2NH3(g)\text{N}_2(g) + 3\text{H}_2(g) \rightarrow 2\text{NH}_3(g)

Standard formation data at 298 K: ΔfH∘(NH3,g)=−46.1 kJ mol−1\Delta_fH^\circ(\text{NH}_3, g) = -46.1\ \text{kJ mol}^{-1}; S∘(N2)=191.6S^\circ(\text{N}_2) = 191.6, S∘(H2)=130.7S^\circ(\text{H}_2) = 130.7, S∘(NH3)=192.5 J K−1mol−1S^\circ(\text{NH}_3) = 192.5\ \text{J K}^{-1}\text{mol}^{-1} (all elements in standard states have ΔfH∘=0\Delta_fH^\circ = 0). Step 1: reaction enthalpy.

ΔrH∘=2(−46.1)−[0+3(0)]=−92.2 kJ mol−1\Delta_rH^\circ = 2(-46.1) - [0 + 3(0)] = -92.2\ \text{kJ mol}^{-1}

Step 2: reaction entropy.

ΔrS∘=2(192.5)−[191.6+3(130.7)]=385.0−583.7=−198.7 J K−1mol−1\Delta_rS^\circ = 2(192.5) - [191.6 + 3(130.7)] = 385.0 - 583.7 = -198.7\ \text{J K}^{-1}\text{mol}^{-1}

The large negative ΔrS∘\Delta_rS^\circ reflects four moles of gas becoming two — a substantial loss of translational and configurational entropy, so the surroundings must absorb entropy via heat release for this to be favorable. Step 3: Gibbs energy at 298 K.

ΔrG∘=ΔrH∘−TΔrS∘=−92200 J mol−1−(298 K)(−198.7 J K−1mol−1)\Delta_rG^\circ = \Delta_rH^\circ - T\Delta_rS^\circ = -92200\ \text{J mol}^{-1} - (298\ \text{K})(-198.7\ \text{J K}^{-1}\text{mol}^{-1})
ΔrG∘=−92200+59212=−32988 J mol−1≈−33.0 kJ mol−1\Delta_rG^\circ = -92200 + 59212 = -32988\ \text{J mol}^{-1} \approx -33.0\ \text{kJ mol}^{-1}

Negative: ammonia synthesis is spontaneous at 298 K under standard conditions (this matches the tabulated ΔfG∘(NH3)≈−16.5 kJ mol−1\Delta_fG^\circ(\text{NH}_3) \approx -16.5\ \text{kJ mol}^{-1} per mole NH3_3, i.e. −33.0 kJ-33.0\ \text{kJ} for 2 mol, confirming internal consistency). Step 4: repeat at industrial operating temperature, 700 K, assuming ΔH∘\Delta H^\circ and ΔS∘\Delta S^\circ stay roughly constant:

ΔrG∘(700 K)=−92200−(700)(−198.7)=−92200+139090=+46890 J mol−1\Delta_rG^\circ(700\ \text{K}) = -92200 - (700)(-198.7) = -92200 + 139090 = +46890\ \text{J mol}^{-1}

At 700 K the reaction is non-spontaneous under standard conditions (ΔrG∘≈+46.9 kJ mol−1\Delta_rG^\circ \approx +46.9\ \text{kJ mol}^{-1}). This is exactly why the Haber process runs at high pressure — to shift the equilibrium position back toward products despite the unfavorable high-temperature ΔG∘\Delta G^\circ, trading thermodynamic favorability for faster kinetics.

Limiting cases & common traps

SituationWhat to remember
Constant TT, VV (not pp)Use Helmholtz energy A=U−TSA = U - TS, not GG; dA≤0dA \le 0 is the correct criterion there.
ΔH<0\Delta H < 0, ΔS<0\Delta S < 0Spontaneity is temperature-dependent; low TT favors reaction, as in ammonia synthesis.
ΔH>0\Delta H > 0, ΔS>0\Delta S > 0Spontaneous only above a crossover temperature T∗=ΔH/ΔST^* = \Delta H/\Delta S.
ΔH<0\Delta H < 0, ΔS>0\Delta S > 0Spontaneous at all temperatures.
ΔH>0\Delta H > 0, ΔS<0\Delta S < 0Non-spontaneous at all temperatures.
ΔrG∘\Delta_rG^\circ vs ΔrG\Delta_rGΔrG∘\Delta_rG^\circ is for pure standard states; actual ΔrG\Delta_rG depends on composition via ΔrG=ΔrG∘+RTln⁡Q\Delta_rG = \Delta_rG^\circ + RT\ln Q.

The chemist behind it

Josiah Willard Gibbs worked in relative isolation at Yale, publishing his monumental "On the Equilibrium of Heterogeneous Substances" between 1876 and 1878 in the little-read Transactions of the Connecticut Academy of Sciences. In it he laid out chemical potential, phase rule, and the free energy function that now bears his name, essentially inventing chemical thermodynamics as a mathematical discipline before European chemists like Ostwald and van't Hoff translated and popularized his work.

Origins · 1 minJosiah Willard Gibbs and how this was discovered
JW
Josiah Willard Gibbs
1839–1903 · American mathematical physicist who founded chemical thermodynamics and statistical mechanics, working almost entirely from New Haven, Connecticut

Ask the tutor: How does ΔG connect to the equilibrium constant K, and why does ΔG° = −RT ln K?

Why do we need G at all if we already have entropy and the second law?

The second law, as stated, requires tracking the entropy of the entire universe — system plus surroundings — which is inconvenient because we rarely have direct access to the surroundings' entropy change. Gibbs energy repackages that requirement using only system properties (HH, SS, TT), valid specifically at constant temperature and pressure. It turns a universal but impractical criterion into a practical, tabulable one for benchtop and industrial chemistry.

How is G different from the Helmholtz energy A?

Both are Legendre transforms of internal energy UU built to match different sets of controlled variables. A=U−TSA = U - TS is the natural potential at constant temperature and volume, useful for rigid, sealed containers. G=H−TS=A+pVG = H - TS = A + pV is the natural potential at constant temperature and pressure, the far more common laboratory condition. Their relationship, G=A+pVG = A + pV, exactly parallels H=U+pVH = U + pV.

Does ΔG being negative mean the reaction will happen quickly?

No. ΔG\Delta G is purely a thermodynamic quantity describing whether products are favored over reactants at equilibrium; it says nothing about the rate. A reaction can have a very negative ΔG\Delta G yet proceed immeasurably slowly because of a large activation energy — the classic example is diamond converting to graphite. Kinetics and thermodynamics are independent axes of analysis.

What exactly is Q in the equation ΔG = ΔG° + RT ln Q?

QQ is the reaction quotient, built from activities or partial pressures of products over reactants raised to their stoichiometric powers, evaluated at the current (not necessarily equilibrium) composition. This relation, covered in depth when connecting Gibbs energy to the equilibrium constant, shows that ΔG∘\Delta G^\circ alone only describes standard-state conditions; real mixtures need this correction term.

Why does G also foreshadow non-expansion work?

It can be shown that ΔG\Delta G equals the maximum non-expansion (useful) work obtainable from a process at constant TT and pp — electrical work from a battery, for instance. This result, covered under the maximum non-expansion work theorem, is what makes ΔG\Delta G so central to electrochemistry and biochemical energetics, not just to predicting reaction direction.

Before this