Thermochemistry
Which reactions release energy, which absorb it, and — more importantly — which can actually happen. Two scalar quantities (enthalpy and entropy) combine into a third (Gibbs free energy) that answers "will this react?" for every reaction at every temperature.
1. Why thermochemistry matters
Chemistry has two big questions. "Will this reaction happen?" and "How fast?" Thermochemistry answers the first one. Kinetics answers the second. You need both, but thermochemistry comes first because it tells you whether the reaction is worth waiting for in the first place.
At a higher level, thermochemistry is the chemistry version of classical thermodynamics: energy, temperature, heat, and entropy. The physics track emphasizes engines and phase transitions. The chemistry track emphasizes reactions — energy changes when bonds break and form, enthalpies of solution, and the equilibrium constants that come out the other side.
Why should you care?
- Energy technology. Every battery, fuel cell, and combustion engine is a controlled thermochemical process. You can't optimize what you can't calculate, and cell voltages come from $\Delta G$.
- Materials and metallurgy. Smelting, alloying, oxide reduction, phase stability — all of it is free-energy bookkeeping. The Ellingham diagram that metallurgists use to decide whether aluminum can reduce iron oxide is just $\Delta G$ vs. temperature.
- Biology. ATP hydrolysis releases $\approx 30$ kJ/mol and powers the cell. Every enzymatic reaction is coupled to a favorable free-energy change. Metabolism is literally thermochemistry on a conveyor belt.
- Environmental and climate. The atmospheric CO$_2$ uptake by the ocean is a thermochemical equilibrium that shifts with temperature. Global warming models need $\Delta H$ and $\Delta S$ for every relevant reaction.
Every reaction changes two things: enthalpy ($\Delta H$, heat exchanged at constant pressure) and entropy ($\Delta S$, disorder). The combination $\Delta G = \Delta H - T \Delta S$ tells you whether the reaction is spontaneous: if $\Delta G < 0$, it can happen; if $\Delta G > 0$, it can't (and the reverse happens instead). The sign flip at critical temperatures is why reactions are reversible, why the Haber process needs high temperature, why ice melts at 0°C, and why life only exists in a narrow temperature window.
2. Vocabulary cheat sheet
| Symbol | Read as | Means |
|---|---|---|
| $H$ | "enthalpy" | Heat content of a system at constant pressure. Units: kJ/mol for molar quantities. Not directly measurable — only changes $\Delta H$ are. |
| $\Delta H$ | "delta H" | Enthalpy change. Negative = exothermic (releases heat). Positive = endothermic (absorbs heat). |
| $\Delta H_f^\circ$ | "standard enthalpy of formation" | $\Delta H$ for forming 1 mol of a compound from its elements in their standard states at 1 bar, 298 K. |
| $q$ | "q" (heat) | Energy transferred as heat between system and surroundings. Sign convention: $q > 0$ = system absorbs heat. |
| $C_p$ | "heat capacity at constant pressure" | Energy needed per degree to raise the temperature at constant pressure. Units: J/(mol·K). |
| $S$ | "entropy" | A state function measuring the number of accessible microstates. Bigger $S$ = more ways for the system to arrange itself. Units: J/(mol·K). |
| $\Delta S$ | "delta S" | Entropy change. Positive when disorder increases — gases > liquids > solids, more particles > fewer. |
| $G$ | "Gibbs free energy" | $G = H - TS$. The thermodynamic potential whose minimum defines chemical equilibrium at constant $T$ and $P$. |
| $\Delta G$ | "delta G" | The free energy change of a reaction. $< 0$ = spontaneous, $= 0$ = equilibrium, $> 0$ = non-spontaneous. |
| $T$ | "temperature" | Absolute temperature, always in kelvin in thermochemistry equations. Never celsius. |
3. Enthalpy and heat
When a reaction occurs, some energy is released or absorbed as heat. The amount of heat exchanged, at constant pressure, is called the enthalpy change:
Enthalpy and heat at constant pressure
- $\Delta H$
- Enthalpy change of the system, in kJ or kJ/mol. Defined as $H_\text{products} - H_\text{reactants}$.
- $q_p$
- Heat exchanged between system and surroundings at constant pressure. Subscript $p$ is essential — at constant volume you'd measure $\Delta U$ (internal energy) instead.
- sign
- Negative $\Delta H$ means the system loses heat to the surroundings: exothermic. Positive $\Delta H$ means the system absorbs heat: endothermic.
Analogy. Think of a balance. The reactants sit on one side at enthalpy $H_r$; the products sit on the other at $H_p$. If $H_p < H_r$, energy drops out the bottom as heat — that's $\Delta H < 0$. If $H_p > H_r$, you have to supply energy to push reactants up to products — $\Delta H > 0$.
Most combustion reactions are exothermic. Burning methane:
Methane combustion enthalpy
- $\Delta H^\circ$
- The standard enthalpy change at 1 bar and (by convention) 298 K. The degree mark means "standard conditions."
- $(g), (l)$
- Phase labels: $g$ = gas, $l$ = liquid, $s$ = solid, $aq$ = aqueous. Phase matters — the enthalpy of liquid water is different from gaseous water because vaporization itself has a nonzero $\Delta H$.
- $-890$ kJ/mol
- This is "per mole of methane reacted." Burning one mole releases 890 kJ — more than enough to heat a liter of water from freezing to boiling.
Why care. Natural gas has a fuel density about 50 MJ/kg. Gasoline is similar (~45 MJ/kg). Lithium-ion batteries, by contrast, are about 0.5–1 MJ/kg. The gap between chemical combustion and rechargeable storage is the fundamental reason electric aviation is hard.
Heat capacity
If you put heat into a substance but no reaction occurs, the temperature rises. The constant of proportionality is the heat capacity:
Heat capacity relation
- $q$
- Heat added (or removed), in joules.
- $n$
- Number of moles (or mass if $C$ is a specific heat in J/(g·K)).
- $C_p$
- Molar heat capacity at constant pressure, in J/(mol·K). Larger for molecules with more degrees of freedom.
- $\Delta T$
- Temperature change, in kelvin or degrees Celsius (they have the same size).
Water is weird. Liquid water has $C_p \approx 75$ J/(mol·K), or 4.18 J/(g·K) — about twice the heat capacity per gram of most other liquids. That's why it takes so much energy to warm up a pot of water, why the oceans act as a planetary thermal buffer, and why your body uses water as its working fluid for temperature regulation.
4. Calorimetry
Calorimetry is the experimental technique for measuring $\Delta H$. You run a reaction in an insulated container and track the temperature change of the surroundings — usually a known mass of water. Conservation of energy does the rest:
Calorimetry energy balance
- $q_\text{reaction}$
- Heat produced or absorbed by the reaction (what you want).
- $q_\text{surroundings}$
- Heat gained (or lost) by the water bath and calorimeter walls.
- $m_\text{H2O}, c_\text{H2O}$
- Mass of water in the calorimeter and its specific heat, 4.18 J/(g·K).
- $C_\text{cal}$
- The heat capacity of the calorimeter itself (walls, stirrer, thermometer). Calibrated separately by running a reaction of known $\Delta H$.
- $\Delta T$
- Measured temperature change of the water bath.
Two kinds of calorimeter. A coffee-cup calorimeter is a styrofoam cup — constant pressure, measures $\Delta H$ directly, good for solutions and dilute reactions. A bomb calorimeter is a sealed metal container — constant volume, measures $\Delta U$, and is used for combustion because you can pressurize it with oxygen. The $\Delta H$ you get from a bomb is slightly corrected for the $p\Delta V$ of gas changes.
Worked example: coffee-cup calorimetry
You dissolve 2.0 g of solid NaOH in 100.0 mL of water in a styrofoam cup. The temperature rises from 22.0°C to 26.6°C. Find $\Delta H$ per mole of NaOH.
- Heat absorbed by water: $q = m c \Delta T = 100 \cdot 4.18 \cdot 4.6 = 1923$ J.
- That's heat gained by the surroundings, so $q_\text{rxn} = -1923$ J.
- Moles of NaOH: $2.0 / 40.0 = 0.050$ mol.
- $\Delta H = q_\text{rxn} / n = -1923 / 0.050 = -38\,460$ J/mol $= -38.5$ kJ/mol.
The published value is $-44.5$ kJ/mol — off by ~15%, because a styrofoam cup is a lousy adiabatic boundary and loses heat. The method is right; the instrument is crude. That's why the bomb calorimeter exists.
5. Hess's law and standard enthalpies of formation
Enthalpy is a state function, meaning $\Delta H$ only depends on the initial and final states — not on the path between them. That simple fact has enormous practical consequences. It means you can compute $\Delta H$ for any reaction by adding and subtracting $\Delta H$ values from any other reactions that sum (algebraically) to the one you want. That's Hess's law.
In practice you tabulate $\Delta H_f^\circ$, the standard enthalpy of formation, for every compound, and compute any reaction's $\Delta H$ from the difference of sums:
Hess's law via formation enthalpies
- $\Delta H^\circ_\text{rxn}$
- The enthalpy change of the balanced reaction at standard conditions (1 bar, 298 K).
- $\Delta H^\circ_{f,i}$
- Standard enthalpy of formation of species $i$ — the heat released or absorbed when 1 mole of $i$ is formed from its elements in their standard states.
- $\nu_i$
- Stoichiometric coefficient of species $i$ in the balanced reaction. Dimensionless.
- convention
- $\Delta H^\circ_f$ for an element in its standard state is zero by definition. O$_2$(g), N$_2$(g), C(graphite), and so on all have $\Delta H^\circ_f = 0$.
Why it works. You can mentally decompose any reaction into two legs: first tear all reactants down into elements (that costs $-\sum \nu_j \Delta H^\circ_{f,j}$), then reassemble the products from elements (that costs $+\sum \nu_i \Delta H^\circ_{f,i}$). Because $H$ is a state function, the loop gives the right answer regardless of whether any chemist actually ran it that way.
Worked example: burning methane via formation enthalpies
Compute $\Delta H^\circ$ for CH$_4$(g) + 2 O$_2$(g) $\to$ CO$_2$(g) + 2 H$_2$O(l).
From tables (kJ/mol): $\Delta H^\circ_f[\text{CH}_4(g)] = -74.8$; $\Delta H^\circ_f[\text{O}_2(g)] = 0$ (element); $\Delta H^\circ_f[\text{CO}_2(g)] = -393.5$; $\Delta H^\circ_f[\text{H}_2\text{O}(l)] = -285.8$.
Which matches the experimental value. Hess's law lets you calculate combustion, oxidation, and fuel energies for thousands of reactions from a compact table of a few hundred formation enthalpies.
6. Bond enthalpies
If you don't have formation data but you know a reaction's bond changes, you can estimate $\Delta H$ from bond enthalpies — average energies for breaking specific kinds of bonds:
Bond-enthalpy estimate
- $\text{BE}$
- Average bond enthalpy for a specific bond type (C-H, O-H, O=O, etc.). Tabulated in kJ/mol.
- "broken"
- Bonds in the reactants that disappear in the products. Counted with positive sign.
- "formed"
- Bonds in the products that weren't in the reactants. Counted with negative sign.
Limitation. Bond enthalpies are averages across many compounds, not exact values for any one molecule. The method is only accurate to about $\pm 20$ kJ/mol. For better than that, use Hess's law with $\Delta H_f^\circ$ data.
For the methane combustion above: break 4 C-H (413 kJ/mol each) and 2 O=O (498). Form 2 C=O (799 kJ/mol in CO$_2$) and 4 O-H (463). Estimate:
Compare with the tabulated value of $-890$ kJ/mol. An error of 88 kJ/mol is about 10% — reasonable for a method that requires no formation data. The systematic underestimate reflects the fact that bond enthalpies don't quite capture the stability of CO$_2$.
7. Entropy and the second law
Exothermic reactions are common but not universal. Ammonium nitrate dissolves in water endothermically and instantly — the water gets cold and yet the reaction happens. Why?
The answer is entropy. The universe prefers states with more accessible microstates. A jumbled solution of ions has vastly more microstates than a single crystal, so even though dissolving absorbs energy, the resulting increase in disorder makes it worth doing. The formal statement is the second law of thermodynamics:
Second law in two halves
- $\Delta S_\text{universe}$
- Total entropy change of everything — system plus its surroundings.
- $\Delta S_\text{system}$
- Entropy change of the reacting system itself (what most tables list).
- $\Delta S_\text{surroundings}$
- Entropy change of the rest of the universe, which at constant $T$ and $P$ is $-\Delta H/T$ (heat flowing into the surroundings adds entropy there).
- $\geq 0$
- The second law. Equality only at equilibrium; strict inequality for spontaneous change.
The trade-off. A reaction can absorb heat from the surroundings (reducing $\Delta S_\text{surroundings}$) as long as it increases $\Delta S_\text{system}$ enough to more than compensate. That's how endothermic reactions can still happen spontaneously — ice melting at 0°C is a daily example.
Where entropy comes from, informally
Entropy counts the number of ways a system can arrange its microscopic degrees of freedom. More ways = more entropy. Some patterns:
- Phase. Gas $\gg$ liquid $>$ solid. Gases have far more accessible positions and velocities than liquids, which are in turn more flexible than solids.
- Temperature. Hotter = more entropy. Adding heat gives molecules more kinetic energy and more accessible states.
- Mixing. Two separate pure substances have lower entropy than the mixed version. Mixing adds $\Delta S_\text{mix} = -R(x_1\ln x_1 + x_2\ln x_2)$.
- Molecule count. A reaction that produces more molecules than it consumes generally increases entropy, because more independent particles = more microstates.
- Complexity. A flexible linear molecule has higher entropy than a rigid ring. The pieces of a protein have higher entropy than the folded state; that's why protein folding is entropically costly.
At absolute zero, a perfect crystal has exactly one microstate and $S = 0$. That's the third law of thermodynamics, and it lets you tabulate absolute entropies rather than just changes.
8. Gibbs free energy and spontaneity
Keeping track of the universe is inconvenient. Fortunately, at constant $T$ and $P$, you can fold everything into a single system-only quantity that you can compute from tables:
Gibbs free energy change
- $\Delta G$
- Change in Gibbs free energy of the system. Same units as enthalpy (kJ or kJ/mol).
- $\Delta H$
- System enthalpy change, as above. Signed.
- $T$
- Absolute temperature in kelvin. Always positive.
- $\Delta S$
- System entropy change. Signed.
- sign of $\Delta G$
- $\Delta G < 0$: reaction is spontaneous as written. $\Delta G = 0$: system is at equilibrium. $\Delta G > 0$: reverse reaction is spontaneous.
Why this form. Multiplying the second law by $-T$ gives $-T\Delta S_\text{univ} = -T\Delta S_\text{sys} + \Delta H_\text{sys}$, and the left side is $\Delta G$ by definition. Minimizing $G$ at fixed $T,P$ is equivalent to maximizing the total entropy of the universe. Everyone in physical chemistry computes $\Delta G$.
The four quadrants of spontaneity
Because $\Delta G = \Delta H - T\Delta S$ has two signed terms, there are four possibilities:
| $\Delta H$ | $\Delta S$ | Spontaneous? | Example |
|---|---|---|---|
| $-$ | $+$ | Always (all $T$) | Combustion of hydrocarbons |
| $-$ | $-$ | Only at low $T$ | Water freezing (below 0°C) |
| $+$ | $+$ | Only at high $T$ | Ice melting (above 0°C), decompositions |
| $+$ | $-$ | Never | Synthesizing ozone from O$_2$ at STP |
Two quadrants are temperature-sensitive, and the crossover temperature is exactly $T = \Delta H/\Delta S$. That's the boiling point of a liquid, the melting point of a solid, and the temperature at which a reaction switches from spontaneous to non-spontaneous.
Worked example: when does water boil?
For H$_2$O($l$) $\to$ H$_2$O($g$), $\Delta H = +40.7$ kJ/mol and $\Delta S = +109$ J/(mol·K).
- At $T = 298$ K: $\Delta G = 40700 - 298 \times 109 = 40700 - 32482 = +8218$ J/mol. Positive — water doesn't spontaneously boil at room temperature, as expected.
- Set $\Delta G = 0$ and solve for $T$: $T = 40700 / 109 = 373$ K $= 100°$C. The boiling point.
- At $T = 400$ K: $\Delta G = 40700 - 400 \times 109 = -2900$ J/mol. Negative — water does boil, as you'd expect on a stove.
Notice the entropy change is what drives the transition at high temperature. The enthalpy says "don't boil"; the entropy says "boil if you can afford it." The temperature sets the exchange rate between these two votes, and 100°C is where they balance.
$\Delta G^\circ$ and the equilibrium constant are related by $\Delta G^\circ = -RT\ln K$. That single equation links thermochemistry to equilibrium: any reaction's $K$ is a direct function of its free energy change. A reaction with $\Delta G^\circ = -10$ kJ/mol has $K \approx 57$ at 298 K; one with $\Delta G^\circ = +10$ kJ/mol has $K \approx 0.018$. You can read equilibrium constants off a table of free energies.
9. Interactive: spontaneity explorer
Pick $\Delta H$ and $\Delta S$ for a hypothetical reaction and slide the temperature to see $\Delta G$ change sign. The gray band marks the crossover temperature $T_\text{switch} = \Delta H/\Delta S$ where $\Delta G = 0$.
Free energy ΔG (cyan) vs. temperature (K). The zero line is where ΔG = 0. Below the crossover, reactions with ΔS > 0 are non-spontaneous; above, they are spontaneous. The Haber process, ammonia synthesis, and ice-water coexistence all live on similar curves.
10. Thermochemistry in code
Three practical calculations. Hess's law from formation enthalpies, bond-enthalpy estimation, and Gibbs crossover.
import numpy as np
# ---------- 1. Hess's law from formation enthalpies ----------
# dHf in kJ/mol; None for elements in their standard state (zero).
dHf = {
"CH4(g)": -74.8,
"O2(g)": 0.0,
"CO2(g)": -393.5,
"H2O(l)": -285.8,
"H2O(g)": -241.8,
}
def dH_rxn(reactants, products):
# each argument is a list of (species, stoichiometric coefficient) tuples
return (sum(n * dHf[sp] for sp, n in products)
- sum(n * dHf[sp] for sp, n in reactants))
# Methane combustion: CH4 + 2 O2 -> CO2 + 2 H2O(l)
dH = dH_rxn([("CH4(g)", 1), ("O2(g)", 2)],
[("CO2(g)", 1), ("H2O(l)", 2)])
print(f"methane combustion dH = {dH:.1f} kJ/mol") # -890.3
# ---------- 2. Bond-enthalpy estimate ----------
# Average bond enthalpies in kJ/mol
BE = {
"C-H": 413, "O=O": 498,
"C=O": 799, "O-H": 463,
}
def dH_bonds(broken, formed):
return sum(n * BE[b] for b, n in broken) - sum(n * BE[b] for b, n in formed)
# CH4 + 2 O2 -> CO2 + 2 H2O: break 4 C-H + 2 O=O, form 2 C=O + 4 O-H
dH_est = dH_bonds([("C-H", 4), ("O=O", 2)],
[("C=O", 2), ("O-H", 4)])
print(f"bond-enthalpy estimate dH = {dH_est} kJ/mol") # -802
# ---------- 3. Gibbs free energy and crossover temperature ----------
def dG(dH_kJmol, dS_JmolK, T):
return dH_kJmol - T * dS_JmolK / 1000.0
def T_crossover(dH_kJmol, dS_JmolK):
return dH_kJmol * 1000.0 / dS_JmolK # kelvin
# Water vaporization: dH = +40.7 kJ/mol, dS = +109 J/(mol K)
print(f"boiling point of water = {T_crossover(40.7, 109):.1f} K") # ~373
print(f"dG at 298 K = {dG(40.7, 109, 298):.2f} kJ/mol") # +8.22
print(f"dG at 400 K = {dG(40.7, 109, 400):.2f} kJ/mol") # -2.90
import math
# Pure Python version.
R = 8.314 # J/(mol K)
def dG(dH, dS, T):
# dH in kJ/mol, dS in J/(mol K), T in K
return dH - T * dS / 1000.0
def K_from_dG(dG_kJmol, T):
# dG0 = -RT ln K => K = exp(-dG0 / RT)
return math.exp(-dG_kJmol * 1000.0 / (R * T))
# Simple check: water's boiling point
T_boil = 40.7 * 1000.0 / 109.0
print(f"water bp = {T_boil:.1f} K") # 373.4
# Haber process: N2 + 3 H2 -> 2 NH3
# dH = -92 kJ/mol, dS = -199 J/(mol K)
print(f"Haber dG at 298 K = {dG(-92, -199, 298):.2f} kJ/mol") # ~-33, favorable
print(f"Haber dG at 700 K = {dG(-92, -199, 700):.2f} kJ/mol") # ~+47, unfavorable
# K at 298 K for Haber (dG0 = -33 kJ/mol)
print(f"K(298) = {K_from_dG(-33, 298):.2e}") # ~6e5
# Calorimetry: dissolve NaOH and measure T rise
def dH_calorimetry(m_water_g, dT_C, n_moles):
# assume c_water = 4.18 J/(g K), ignore calorimeter heat cap
q_water = m_water_g * 4.18 * dT_C # J absorbed by water
q_rxn = -q_water # by conservation
return q_rxn / n_moles / 1000.0 # kJ/mol
print(f"NaOH dH est = {dH_calorimetry(100, 4.6, 0.050):.1f} kJ/mol") # ~-38.5
Three notes:
- Temperature in Gibbs formulas is always in kelvin. Using celsius is a common and painful mistake.
- Be careful with units when $\Delta H$ is in kJ/mol but $\Delta S$ is in J/(mol·K) — the factor of 1000 trips people up constantly.
- Both $\Delta H$ and $\Delta S$ vary weakly with temperature. For small temperature ranges (a few hundred K), treating them as constants is fine. For wider ranges, you need heat-capacity data and Kirchhoff's law.
11. Cheat sheet
Enthalpy
$\Delta H = q_p$ (heat at constant $P$).
Heat capacity
$q = n C_p \Delta T$.
Hess's law
$\Delta H_\text{rxn} = \sum \nu \Delta H^\circ_f(\text{products}) - \sum \nu \Delta H^\circ_f(\text{reactants})$.
Bond enthalpies
$\Delta H \approx$ BE(broken) $-$ BE(formed).
Second law
$\Delta S_\text{universe} \geq 0$.
Gibbs
$\Delta G = \Delta H - T\Delta S$.
Crossover $T$
$T_\text{switch} = \Delta H / \Delta S$.
Link to $K$
$\Delta G^\circ = -RT \ln K$.
Kelvin
Always K, never °C in formulas.
Phase changes
Boiling: $\Delta G = 0$ at $T_b = \Delta H_\text{vap}/\Delta S_\text{vap}$.
See also
Bonding
Bond enthalpies come from here. Every $\Delta H$ is ultimately a sum of energies to break and reform the bonds from the previous page.
Kinetics
Thermochemistry says whether a reaction can happen. Kinetics says how fast. The Arrhenius activation energy is independent of $\Delta H$ — thermodynamically favorable reactions can still be slow.
Equilibrium
The relation $\Delta G^\circ = -RT\ln K$ is the bridge. Every equilibrium constant you compute comes from a free energy difference.
Physics: Classical Mechanics
Work-energy theorems and conservation of energy — the physics framework on which all of thermodynamics rests.
Math: Calculus
Heat capacity integrals and temperature-dependent enthalpies use $\int C_p(T)\,dT$. The Clausius-Clapeyron equation is a differential equation for phase transitions.
Math: Probability
Entropy is the logarithm of the number of microstates — $S = k_B \ln W$. Boltzmann's bridge from combinatorics to thermodynamics.
Further reading
- Peter Atkins and Julio de Paula — Physical Chemistry. The canonical rigorous text, with careful treatment of the thermodynamic state functions and their derivations.
- Ira Levine — Physical Chemistry. An alternative with more emphasis on worked numerical examples. Good second reference.
- J. Willard Gibbs — On the Equilibrium of Heterogeneous Substances (1876–1878). The original derivation of the free energy, still worth skimming for the sheer clarity of the argument.
- NIST WebBook — webbook.nist.gov/chemistry. Authoritative tables of thermodynamic properties for thousands of compounds.
- Wikipedia — Gibbs free energy and Standard enthalpy of formation. Solid overviews with references.