Skip to content
LumenaryAcademy
Physical 70 min

Chemical equilibrium

Why reactions stop short of completion, how the Gibbs energy fixes where they stop, and how chemists move the stopping point — with the Haber–Bosch process as a worked case.

Code tested · 5AI-draftedAwaiting review by a chemist

Your guides: Chloe · The Chemist, Margaret · The Analyst, Gideon · The Sceptic

MotivationH

Bread from air

Nitrogen makes up 78 % of the air, and every protein and every strand of DNA needs it, yet almost no living thing can use the nitrogen in the air directly: the triple bond in N₂ is one of the strongest in chemistry. By 1900 farmers depended on limited natural supplies of fixed nitrogen, such as Chilean saltpetre and guano, and chemists warned that the world's harvests would soon run short. In 1909, in Karlsruhe, Fritz Haber and Robert Le Rossignol made a bench-top apparatus that combined nitrogen and hydrogen into ammonia continuously, and by 1913 Carl Bosch's team at BASF had scaled it up to an industrial plant. Today the Haber–Bosch process makes nearly two hundred million tonnes of ammonia a year, most of it for fertiliser, and a widely cited estimate (Erisman and colleagues, 2008) is that the food grown with it feeds about half the people alive.

The chemistry is one line, N₂ + 3 H₂ ⇌ 2 NH₃, and the previous lesson showed it is favourable at room temperature. So why did it take a Nobel-winning effort, and why do plants still run at 400 to 500 °C and 100 to 300 bar? Because the reaction never goes to completion. It stops at an equilibrium, and where that point lies depends on temperature and pressure in a way that fights against the conditions needed to make the reaction fast. This lesson explains where equilibrium comes from, how to calculate it, and how chemists push it where they want.

IntuitionH

A balance, not a standstill

Seal some nitrogen and hydrogen in a hot vessel with a catalyst, and ammonia forms, quickly at first, then more slowly, until the composition stops changing. Seal pure ammonia in an identical vessel, and some of it decomposes into nitrogen and hydrogen, until the composition stops changing, at the same mixture, if the amounts of atoms match. The final state does not depend on which side you started from.

At that point both reactions are still going on: ammonia molecules are forming and others are falling apart, at exactly equal rates. Experiments with isotopes show it directly. Add a little ammonia made with heavy nitrogen, ¹⁵N, to an equilibrium mixture, and the label soon spreads into the N₂, though the overall composition does not change. Chemical equilibrium is dynamic.

Analogy, not a formal construction

Picture two rooms joined by an open door at a party. People wander through in both directions. If one room is crowded, more people happen to leave it than enter, until the flows balance. After that the head-counts stay steady, but people never stop moving. Equilibrium is the steady head-count, not the end of the walking. (The analogy is only partial: where molecules "prefer" to be also depends on energy, as if one room had better food.)

DefinitionsH

Q, K and the Gibbs energy

To say precisely where a reaction stops we need a way to track its progress and a measure of how much each substance "counts".

Definition— extent of reaction

For a reaction 0=∑iνiXi0 = \sum_i \nu_i X_i (stoichiometric numbers νi\nu_i negative for reactants), the extent of reaction ξ\xi (in moles) tracks progress: ni=ni,0+νiξn_i = n_{i,0} + \nu_i \xi. In an ICE table (Initial, Change, Equilibrium), the "change" row is νiξ\nu_i\xi.

Definition— activity

The activity aia_i of a substance measures its effective concentration, as a pure number. For an ideal gas ai=pi/p∘a_i = p_i/p^\circ (partial pressure over 1 bar); for a solute in a dilute ideal solution ai=ci/c∘a_i = c_i/c^\circ (concentration over 1 mol/L); for a pure solid or liquid, and for the solvent of a dilute solution, ai=1a_i = 1. Real gases and concentrated solutions need correction factors (fugacity and activity coefficients).

Definition— reaction quotient and equilibrium constant

The reaction quotient is Q=∏iaiνiQ = \prod_i a_i^{\nu_i}, products over reactants, each raised to its coefficient. The equilibrium constant KK is the value of QQ at equilibrium. For N₂ + 3 H₂ ⇌ 2 NH₃ with ideal gases, Q=(pNH3/p∘)2(pN2/p∘)(pH2/p∘)3Q = \dfrac{(p_{\mathrm{NH_3}}/p^\circ)^2}{(p_{\mathrm{N_2}}/p^\circ)(p_{\mathrm{H_2}}/p^\circ)^3}.

The molar Gibbs energy of an ideal gas depends on its partial pressure as Gi=Gi∘+RTln⁡(pi/p∘)G_i = G_i^\circ + RT\ln(p_i/p^\circ), and similarly with activities in general. That is the mixing entropy of the last lesson in disguise: a diluted substance has more room, more microstates, and a lower Gibbs energy. Summing over the reaction gives the central equation of this lesson.

Theorem— Gibbs energy of reaction and the equilibrium constant

At constant temperature and pressure, the Gibbs energy of reaction, ΔrG=(∂G/∂ξ)T,p\Delta_\text{r}G = (\partial G/\partial \xi)_{T,p}, is

ΔrG=ΔrG∘+RTln⁡Q.\Delta_\text{r}G = \Delta_\text{r}G^\circ + RT \ln Q.

At equilibrium ΔrG=0\Delta_\text{r}G = 0 and Q=KQ = K, so

ΔrG∘=−RTln⁡K,K=e−ΔrG∘/RT.\Delta_\text{r}G^\circ = -RT\ln K, \qquad K = e^{-\Delta_\text{r}G^\circ/RT}.

Proof

The total Gibbs energy is G=∑iniGiG = \sum_i n_i G_i, and as the reaction advances by dξd\xi, each nin_i changes by νi dξ\nu_i\,d\xi. Because the Gibbs–Duhem relation makes the changes in the GiG_i themselves cancel in the sum, dG=∑iGi νi dξdG = \sum_i G_i\,\nu_i\,d\xi, so ΔrG=∑iνiGi=∑iνiGi∘+RT∑iνiln⁡ai=ΔrG∘+RTln⁡∏iaiνi\Delta_\text{r}G = \sum_i \nu_i G_i = \sum_i \nu_i G_i^\circ + RT \sum_i \nu_i \ln a_i = \Delta_\text{r}G^\circ + RT \ln \prod_i a_i^{\nu_i}. At constant TT and pp the system moves downhill in GG until dG/dξ=0dG/d\xi = 0, which is equilibrium; there 0=ΔrG∘+RTln⁡K0 = \Delta_\text{r}G^\circ + RT\ln K.

∎

G00.71extent of reaction ξpure reactantspure productsstraight line: no mixingQ < Kgoes forwardQ > Kgoes backequilibrium: ΔrG = 0
The Gibbs energy of a reacting mixture against the extent of reaction, for A ⇌ B with K = 7/3. The dashed line joins pure reactants to pure products: its drop is ΔrG°. Mixing lowers G below that line, so the curve has a minimum at ξ = 0.7, the equilibrium. To the left Q is less than K, the slope ΔrG is negative and the reaction runs forward; to the right Q is greater than K and it runs back.

Two practical rules follow. First, compare QQ with KK: if Q<KQ \lt K, then ΔrG<0\Delta_\text{r}G \lt 0 and the reaction runs forward; if Q>KQ > K, it runs backward. Second, every factor of ten in KK corresponds to RTln⁡10=5.7RT\ln 10 = 5.7 kJ/mol in ΔrG∘\Delta_\text{r}G^\circ at 298 K. So a reaction with ΔrG∘=−57\Delta_\text{r}G^\circ = -57 kJ/mol has K≈1010K \approx 10^{10} and goes essentially to completion, while one with ΔrG∘=+57\Delta_\text{r}G^\circ = +57 kJ/mol has K≈10−10K \approx 10^{-10} and barely starts.

ComputationC

Computing K and ΔG from data

The equation K=e−ΔrG∘/RTK = e^{-\Delta_\text{r}G^\circ/RT} turns a thermodynamic table into predictions. A neat test is the equilibrium H₂O(l) ⇌ H₂O(g). The liquid is pure, so its activity is 1, and K=pH2O/p∘K = p_{\mathrm{H_2O}}/p^\circ: the equilibrium constant is the vapour pressure, in bar. The second half of the block uses ΔrG=ΔrG∘+RTln⁡Q\Delta_\text{r}G = \Delta_\text{r}G^\circ + RT\ln Q for the hydrolysis of ATP in a living cell, completing the story begun in the previous lesson.

python
from math import exp, log

R = 8.314462618        # J/(mol K)

# 1. ΔG° fixes K.  Water's vapour pressure at 25 °C from ΔfG° values (kJ/mol):
dG = -228.57 - (-237.13)               # H2O(l) -> H2O(g), standard Gibbs energy
T = 298.15
K = exp(-dG * 1000 / (R * T))          # K = p(H2O)/p°, with p° = 1 bar
print(f"ΔG° = {dG:+.2f} kJ/mol  ->  K = {K:.4f}, so p(H2O) = {K * 100:.2f} kPa (measured: 3.17 kPa)")

# 2. Q fixes ΔG:  ΔG = ΔG° + RT ln Q.  ATP + H2O -> ADP + phosphate inside a cell at 37 °C.
dG0 = -30.5                            # kJ/mol, standard biochemical value (pH 7)
T = 310.15
ATP, ADP, Pi = 2.5e-3, 0.25e-3, 2.0e-3 # mol/L, typical cellular levels
Q = (ADP * Pi) / ATP                   # concentrations relative to 1 mol/L
print(f"\nATP in a cell: Q = {Q:.1e}, RT ln Q = {R * T * log(Q) / 1000:.1f} kJ/mol, "
      f"ΔG = {dG0 + R * T * log(Q) / 1000:.1f} kJ/mol")
K = exp(-dG0 * 1000 / (R * T))
print(f"K = {K:.2e}; at equilibrium (phosphate 2 mM) [ADP]/[ATP] would be {K / Pi:.1e}")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

From two numbers in a table, the vapour pressure of water at 25 °C comes out as 3.16 kPa, against a measured 3.17 kPa. In the cell, millimolar concentrations make QQ tiny, and RTln⁡Q=−22.0RT\ln Q = -22.0 kJ/mol makes ATP hydrolysis much more favourable than its standard value: −52.5 kJ/mol.

Worked examplesH

ICE tables and root finders

Most equilibrium problems give a starting mixture and KK and ask for the final composition. Write the ICE table, express every amount in terms of the single unknown xx (the extent), substitute into the expression for KK, and solve. Often the result is a polynomial: quadratic, cubic, or worse. For anything beyond a quadratic, and even for quadratics where rounding matters, it is safer to let a computer find the root.

Example— Making an ester

Ethanoic (acetic) acid and ethanol react, slowly and with an acid catalyst, to give ethyl ethanoate (an ester with a fruity character, used in flavourings) and water:

CH₃COOH + C₂H₅OH ⇌ CH₃COOC₂H₅ + H₂O, with K≈4K \approx 4 near room temperature.

Marcellin Berthelot and Léon Péan de Saint-Gilles found in the 1860s that equal amounts of acid and alcohol stop at about two-thirds conversion. ICE table, starting from 1 mol of each:

acidethanolesterwater
Initial1100
Change−x-x−x-x+x+x+x+x
Equilibrium1−x1-x1−x1-xxxxx

The volume cancels because two molecules become two, so K=x2/(1−x)2=4K = x^2/(1-x)^2 = 4, which gives x/(1−x)=2x/(1-x) = 2 and x=2/3x = 2/3. Berthelot's two-thirds, recovered.

How can we convert more of the acid? Use an excess of the cheaper ethanol. The quadratic is now less pleasant, so the block solves it by bisection (repeatedly halving an interval in which the function changes sign; see numerical methods), and then checks the answer against NumPy's polynomial root finder.

python
import numpy as np

def bisect(f, lo, hi, tol=1e-12):
    """A root of f between lo and hi, where f(lo) and f(hi) differ in sign."""
    flo = f(lo)
    for _ in range(200):
        mid = 0.5 * (lo + hi)
        fmid = f(mid)
        if (fmid > 0) == (flo > 0):
            lo, flo = mid, fmid
        else:
            hi = mid
        if hi - lo < tol:
            break
    return 0.5 * (lo + hi)

# Esterification: CH3COOH + C2H5OH <=> CH3COOC2H5 + H2O,  K ≈ 4.
# Equal numbers of moles on both sides, so the volume cancels and amounts can be used.
K = 4.0
for acid, alcohol in [(1.0, 1.0), (1.0, 3.0), (1.0, 10.0)]:
    # ICE table:  initial (acid, alcohol, 0, 0);  change (-x, -x, +x, +x)
    g = lambda x: x * x - K * (acid - x) * (alcohol - x)       # zero at equilibrium
    x = bisect(g, 0.0, min(acid, alcohol) - 1e-15)
    print(f"start {acid:.0f} mol acid + {alcohol:4.1f} mol ethanol: "
          f"x = {x:.4f} mol, {100 * x / acid:.1f} % of the acid converted")

# The same quadratic with numpy's polynomial root finder:  (1 - K) x^2 + K (a + b) x - K a b = 0
a, b = 1.0, 3.0
roots = np.roots([1 - K, K * (a + b), -K * a * b])
print("np.roots for 1 : 3 gives", np.round(roots, 4), "- only the root between 0 and 1 is physical")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Three moles of ethanol per mole of acid raise the conversion from 66.7 % to 90.3 %; ten moles, to 97.4 %. Chemists also remove the water as it forms, which keeps QQ below KK so that the reaction keeps running forward.

ExplanationH

Le Chatelier's principle, explained

In 1884 Henry Le Chatelier stated that a system at equilibrium, when disturbed, shifts so as to counteract the disturbance. It is a fine rule of thumb, but thermodynamics says exactly what happens and why, so we can derive each case from ΔrG=RTln⁡(Q/K)\Delta_\text{r}G = RT\ln(Q/K).

Changing concentrations. Adding a reactant or removing a product lowers QQ below KK, so ΔrG<0\Delta_\text{r}G \lt 0 and the reaction runs forward until Q=KQ = K again. KK itself has not changed. That is the ester example above.

Changing pressure. For ideal gases, write partial pressures as mole fractions times the total pressure pp. Then K=Kx (p/p∘)ΔνK = K_x\,(p/p^\circ)^{\Delta\nu}, where KxK_x is the same product of mole fractions and Δν=∑νi\Delta\nu = \sum \nu_i counts gas molecules. KK depends only on temperature, so if Δν<0\Delta\nu \lt 0 (fewer gas molecules on the product side), raising pp must raise KxK_x: more product. For ammonia synthesis Δν=−2\Delta\nu = -2, so doubling the pressure multiplies KxK_x by four. Reactions with Δν=0\Delta\nu = 0 do not respond to pressure at all, and adding an inert gas at constant volume changes no partial pressure and so does nothing.

Changing temperature. This is the only disturbance that changes KK itself.

Theorem— The van 't Hoff equation

dln⁡KdT=ΔrH∘RT2,soln⁡K2K1=−ΔrH∘R(1T2−1T1) if ΔrH∘ is constant.\frac{d\ln K}{dT} = \frac{\Delta_\text{r}H^\circ}{RT^2}, \qquad\text{so}\qquad \ln\frac{K_2}{K_1} = -\frac{\Delta_\text{r}H^\circ}{R}\left(\frac{1}{T_2} - \frac{1}{T_1}\right) \text{ if } \Delta_\text{r}H^\circ \text{ is constant.}

Proof

From ln⁡K=−ΔrG∘/RT=−ΔrH∘/RT+ΔrS∘/R\ln K = -\Delta_\text{r}G^\circ/RT = -\Delta_\text{r}H^\circ/RT + \Delta_\text{r}S^\circ/R. Differentiating with respect to TT, the terms from dΔrH∘/dT=ΔrCpd\Delta_\text{r}H^\circ/dT = \Delta_\text{r}C_p and dΔrS∘/dT=ΔrCp/Td\Delta_\text{r}S^\circ/dT = \Delta_\text{r}C_p/T cancel exactly, leaving ΔrH∘/RT2\Delta_\text{r}H^\circ/RT^2. Integrating between T1T_1 and T2T_2 with constant ΔrH∘\Delta_\text{r}H^\circ gives the second form.

∎

So heating favours the endothermic direction (KK rises if ΔrH∘>0\Delta_\text{r}H^\circ > 0), and cooling favours the exothermic one. A catalyst, finally, speeds up the forward and reverse reactions equally: it changes how fast equilibrium is reached, never where it lies.

Worked examplesH

Worked case: the Haber–Bosch process

Everything comes together in ammonia synthesis. From the previous lesson, ΔrH∘=−91.8\Delta_\text{r}H^\circ = -91.8 kJ/mol and ΔrS∘=−198.1\Delta_\text{r}S^\circ = -198.1 J/(mol K), with ΔrCp≈−45.3\Delta_\text{r}C_p \approx -45.3 J/(mol K). The reaction is exothermic, so heating lowers KK; and it turns four gas molecules into two, so pressure helps. The block computes KK at several temperatures, in two ways, and then the equilibrium mole fraction of ammonia from a 1 : 3 mixture of N₂ and H₂, treating the gases as ideal.

python
from math import exp, log

R = 8.314462618e-3                       # kJ/(mol K)
T0, dH0, dS0 = 298.15, -91.8, -0.1981    # N2 + 3 H2 -> 2 NH3, kJ/mol and kJ/(mol K)
dCp = -0.0453                            # kJ/(mol K), from 298 K heat capacities

def K_of_T(T, kirchhoff=True):
    if kirchhoff:                        # let ΔH° and ΔS° drift with a constant ΔCp
        dH = dH0 + dCp * (T - T0)
        dS = dS0 + dCp * log(T / T0)
    else:                                # crude: ΔH° and ΔS° frozen at 298 K
        dH, dS = dH0, dS0
    return exp(-(dH - T * dS) / (R * T))

for T in (298.15, 500, 600, 700, 800):
    print(f"T = {T:6.1f} K   K ≈ {K_of_T(T, False):9.3g} (crude)   {K_of_T(T):9.3g} (with ΔCp)")

def ammonia_fraction(K, p):
    """Equilibrium mole fraction of NH3 from a 1 : 3 N2/H2 feed at total pressure p (bar), ideal gases."""
    def f(xi):                           # ln Q - ln K, increasing in xi
        n = 4 - 2 * xi
        x_nh3, x_n2, x_h2 = 2 * xi / n, (1 - xi) / n, 3 * (1 - xi) / n
        return log(x_nh3**2 / (x_n2 * x_h2**3) / p**2) - log(K)
    lo, hi = 1e-12, 1 - 1e-12
    for _ in range(100):                 # bisection
        mid = 0.5 * (lo + hi)
        if f(mid) > 0:
            hi = mid
        else:
            lo = mid
    xi = 0.5 * (lo + hi)
    return 2 * xi / (4 - 2 * xi)

print("\nequilibrium mole fraction of NH3 (ideal-gas estimate, 1 : 3 feed)")
pressures = (1, 50, 100, 200, 300)
print("   T/K " + "".join(f"{p:>8} bar" for p in pressures))
for T in (600, 700, 800):
    K = K_of_T(T)
    print(f"{T:6d} " + "".join(f"{100 * ammonia_fraction(K, p):11.1f} %" for p in pressures))
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

KK falls from about 5×1055 \times 10^5 at room temperature to below 10−410^{-4} at 700 K. The two estimates differ by a factor of about four at 700 K; since the true ΔrCp\Delta_\text{r}C_p lies between 0 and −45 J/(mol K) over this range, the real value lies between them, nearer the second. At 1 bar and 700 K almost nothing forms (0.3 %), but at 200 bar the equilibrium mixture holds 28 % ammonia. At 600 K the equilibrium would be much better, 54 % at 200 bar.

So why not run at 600 K or lower? Because equilibrium says nothing about speed. Even with the best catalysts, breaking the N≡N bond is slow at low temperature, and a reactor that produces a high equilibrium yield in a year is useless. The industrial answer is a compromise and a loop:

  1. Temperature of roughly 400 to 500 °C, hot enough for the catalyst to work quickly, cool enough to keep a useful KK. Converters are built in several beds with cooling between them, so the gas is cooled each time the exothermic reaction heats it.
  2. Pressure of roughly 100 to 300 bar, to push KxK_x up, limited by the cost of compressors and thick-walled vessels.
  3. A catalyst, iron promoted with small amounts of potassium, aluminium and calcium oxides, found by Alwin Mittasch's team at BASF after thousands of trials; some plants now use ruthenium catalysts.
  4. Recycling. The gas leaving the converter typically holds only 15 to 20 % ammonia. It is cooled until the ammonia condenses and can be removed (removing a product, so QQ drops), and the unreacted nitrogen and hydrogen go round again. Over many passes almost all the feed is converted.

Real gases at 200 bar are not ideal, and engineers use fugacities instead of partial pressures; the corrections raise the equilibrium yield somewhat, but the ideal-gas picture gets the trends right. The biggest cost today is not the converter but the hydrogen, which is mostly made from natural gas or coal and releases carbon dioxide. According to the IEA's Ammonia Technology Roadmap, ammonia production uses about 2 % of the world's final energy and emits over 1 % of its CO₂. As of 2026, plants that make hydrogen by electrolysis with renewable electricity, and research on catalysts that work at lower pressure and temperature, are active areas, discussed further in Energy chemistry and Sustainable chemistry.

Ammonia is also the starting point for nitric acid and nitrates, which meant that Haber–Bosch plants supplied munitions as well as fertiliser, and Haber himself led Germany's chemical-weapons programme in the First World War. That history is part of why the international community later agreed the Chemical Weapons Convention, and why chemists today are taught to think about the uses of what they make.

Optional Christian reflection · Swords and ploughshares

A reflection from the Christian tradition that inspires Lumenary Academy. It is not part of the mathematics and you are welcome to skip it.

The prophet Isaiah looked forward to a day when nations "shall beat their swords into plowshares, and their spears into pruninghooks" (Isaiah 2:4, King James Version). The story of ammonia runs in both directions: the same reaction that has fed billions also armed nations. Knowledge itself rarely chooses its use; people do. A chemist's skill is a gift, and part of receiving it well is asking what it is for. This reflection is optional, and nothing in the lesson depends on it.

ExplanationH

Equilibrium in practice

Real systems have many reactions and many phases at once: a combustion flame has dozens of species, a natural water has carbonates, metal ions and dissolved gases. Rather than writing one equilibrium constant per reaction, professionals usually minimise the total Gibbs energy of the whole system subject to conservation of each element, which gives every equilibrium at once. Open-source tools such as Cantera do this for gases in combustion and process engineering, and the U.S. Geological Survey's PHREEQC does it for natural waters, where activity coefficients matter. The data come from evaluated tables such as NIST-JANAF. For acid–base equilibria, the most common equilibria of all, see the next lesson.

Common misconceptionsH

Common misconceptions

Misconception

"At equilibrium the reactions stop." Both directions continue at equal rates. Isotope-labelling experiments show atoms moving between reactants and products in a mixture whose composition does not change.

Misconception

"At equilibrium the concentrations of reactants and products are equal." They are whatever makes Q=KQ = K. With K=1010K = 10^{10} there is almost no reactant left; with K=10−10K = 10^{-10} almost no product forms.

Misconception

"Adding a catalyst gives more product." A catalyst gets you to equilibrium faster, but the equilibrium composition is fixed by KK, which depends only on temperature. Catalysts matter enormously in Haber–Bosch because they make the reaction fast enough at temperatures where KK is still useful.

Misconception

"Raising the pressure always shifts the equilibrium." Only if the number of gas molecules changes, and only if the partial pressures change. Compressing H₂ + I₂ ⇌ 2 HI does nothing, and pumping argon into a sealed vessel at constant volume leaves every equilibrium as it was.

Exercises

Exercises

Take R=8.314R = 8.314 J/(mol K). Two exercises ask for Python functions; use a bracketing root finder such as bisection.

1. Chemical equilibrium

Warm-upHuman

A reaction mixture in a closed vessel at constant temperature has reached chemical equilibrium. Which statements are true? Select all that apply.

Choose all that apply

2. Chemical equilibrium

Warm-upHuman

For a reaction at 500 K, K=3.0K = 3.0. A mixture is prepared in which Q=0.5Q = 0.5. What happens?

Choose one

3. Chemical equilibrium

CoreHuman

A reaction has ΔrG∘=−11.4\Delta_\text{r}G^\circ = -11.4 kJ/mol at 298.15 K. What is its equilibrium constant KK, to the nearest whole number?

4. Chemical equilibrium

CoreHuman

Each equilibrium below is compressed to half its volume at constant temperature. In which does the equilibrium composition shift towards the products? Select all that apply.

Choose all that apply

5. Chemical equilibrium

CoreHuman

The equilibrium constant of a reaction doubles when the temperature is raised from 298.15 K to 308.15 K. Assuming ΔrH∘\Delta_\text{r}H^\circ is constant over this range, estimate ΔrH∘\Delta_\text{r}H^\circ in kJ/mol, to the nearest whole number.

6. Chemical equilibrium

StretchHuman

For CH₃COOH + C₂H₅OH ⇌ CH₃COOC₂H₅ + H₂O take K=4.0K = 4.0. Starting from 1.0 mol of acid and 2.0 mol of ethanol (no ester or water), what percentage of the acid is converted at equilibrium? Give the nearest whole number.

7. Chemical equilibrium

CoreComputational

For a reaction A + B ⇌ C + D in which the volume cancels (two molecules on each side), write extent(K, a, b, c=0.0, d=0.0) that returns the equilibrium extent xx (in mol) starting from amounts a, b, c, d. At equilibrium

K=(c+x)(d+x)(a−x)(b−x).K = \frac{(c + x)(d + x)}{(a - x)(b - x)}.

xx is negative if the reaction runs backwards. Use bisection on the interval −min⁡(c,d)<x<min⁡(a,b)-\min(c, d) \lt x \lt \min(a, b), where every amount stays positive; on it, (c+x)(d+x)−K(a−x)(b−x)(c+x)(d+x) - K(a-x)(b-x) increases from negative to positive, so there is exactly one root.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

8. Chemical equilibrium

StretchComputational

Write ammonia_fraction(K, p), which returns the equilibrium mole fraction of NH₃ when a 1 : 3 mixture of N₂ and H₂ reacts at total pressure p (in bar), for N₂ + 3 H₂ ⇌ 2 NH₃ with dimensionless equilibrium constant K and ideal gases (p∘=1p^\circ = 1 bar).

Start from 1 mol N₂ and 3 mol H₂; at extent ξ\xi the amounts are 1−ξ1 - \xi, 3−3ξ3 - 3\xi and 2ξ2\xi, out of 4−2ξ4 - 2\xi in total. Partial pressures are mole fractions times p.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Further reading and resources

  • How a century of ammonia synthesis changed the world · J. W. Erisman, M. A. Sutton, J. Galloway, Z. Klimont and W. Winiwarter · 2008Nature Geoscience. The estimate that synthetic nitrogen fertiliser supports roughly half the world's population.
  • Ammonia Technology Roadmap · International Energy Agency · 2021Energy use and emissions of ammonia production, and routes to lower-emission ammonia.
  • NIST-JANAF Thermochemical Tables · National Institute of Standards and TechnologyGibbs energies of formation and equilibrium constants of formation over wide temperature ranges.
  • CanteraOpen-source software for chemical equilibrium, kinetics and thermodynamics, widely used in combustion and process engineering.
  • PHREEQC · U.S. Geological SurveyThe standard program for equilibrium in natural waters, used by geochemists and water engineers.
  • MIT OpenCourseWare 5.60: Thermodynamics and Kinetics · Massachusetts Institute of Technology