Consider the gas-phase reaction H2+I2⇌2HI at 700 K. A spectroscopist can measure the bond length, vibrational frequency, and electronic degeneracy of each species. From those numbers alone, without touching a calorimeter, the equilibrium constant can be predicted to within a few percent. This is one of the great triumphs of statistical thermodynamics. The bridge between molecular structure and macroscopic equilibrium runs through the partition function. Once q is known for every species, the Gibbs energy of reaction follows, and from that the equilibrium constant. This closes the loop between spectroscopy and thermodynamics. This article builds the statistical expression for K from molecular partition functions. It separates the exponential energy factor from the entropic factor. It shows how to align energy zeros correctly using the reaction zero-point energy difference. It ends with two full numerical calculations of Kp from molecular data.
Key takeaways
The equilibrium constant is built from the ratio of product to reactant partition functions per unit volume, each raised to its stoichiometric power.
A crucial energy-zero correction appears because each species' partition function is referenced to its own zero-point level, not a common origin.
This correction is the reaction zero-point energy difference Δε0, which enters as e−Δε0/kBT.
Translational and rotational partition functions favor products with more mass and more moments of inertia; this is entropy in disguise.
The method needs only spectroscopic constants (bond lengths, vibrational frequencies, electronic degeneracies) — no calorimetry required.
Key idea: The equilibrium constant is the ratio of molecular partition functions per volume, corrected by a Boltzmann factor for the reaction's zero-point energy difference.
The core insight
For a gas-phase reaction, the equilibrium constant equals a ratio of molecular partition functions (each per unit volume, raised to stoichiometric powers) multiplied by e−Δε0/kBT, because every partition function is computed relative to its own molecule's ground vibronic state and these separate zeros must be reconciled onto one energy scale before Boltzmann statistics can compare populations across species.
The physical picture
Statistical thermodynamics computes the Gibbs energy of each gas from its molecular partition function q, then combines these into ΔrG∘, and finally into K. But there is a subtlety unique to reactions: partition functions for different molecules are conventionally referenced to their own zero-point energy. A partition function for HI is built on a ladder of energy levels whose zero is the HI ground vibronic state; a partition function for I₂ uses I₂'s own ground state as zero. When molecules interconvert in a reaction, their electronic and vibrational origins sit at different absolute energies on a true physical scale — set by bond dissociation energies and electronic energies of the separated atoms. To combine partition functions correctly, everything must be re-referenced to one common zero: typically the collection of atoms at rest, infinitely separated, in their ground electronic states. The energy needed to promote reactants (in their own ground vibronic states) into products (in their own ground vibronic states) is the reaction zero-point energy difference, Δε0. It plays the same role that ΔU0 or ΔH0∘ plays in classical thermodynamic tables — it is the reaction enthalpy at T=0, referenced to nuclei-at-rest. Once this energy alignment is made, the equilibrium constant falls out of the condition ΔrG∘=−RTlnK, using the partition-function expression for the chemical potential of each perfect gas. The result separates cleanly into an entropic piece (a ratio of molecular partition functions, which encodes how much phase space each species has available) and an energetic piece (the Boltzmann factor for Δε0).
Figure
Aligning energy zeros for a reaction A + B ⇌ 2C
Figure
Partition function ratio versus temperature for an endothermic reaction
The core relations
K=(J∏(NAqJ∘)νJ)e−Δε0/RT
where: qJ∘ is the standard molar partition function of species J (per mole, at p∘), νJ is the stoichiometric number (positive for products, negative for reactants), and Δε0 is the reaction zero-point energy difference per mole.
qJ=qJTqJRqJVqJE
where: translational, rotational, vibrational, and electronic partition functions are separable and multiply for each species.
qT=(h22πmkBT)3/2V
where: m is molecular mass, V is the container volume (replaced by RT/p∘ for the standard molar quantity).
Δε0=J∑νJNAε0,J
where: ε0,J is the zero-point energy of one molecule of J measured from the common (separated-atoms) reference.
ΔrG∘=−RTlnK
where: this is the ordinary thermodynamic link connecting the statistical expression for K to classical equilibrium thermodynamics.
Derivation AFrom molecular partition functions to K
Goal. Derive the expression for K of a general gas-phase reaction
aA+bB⇌cC+dD
starting from the chemical potential of a perfect gas written in terms of its molecular partition function.
Step 1: Chemical potential from the partition function. For a perfect gas of N indistinguishable molecules, the canonical partition function is Q=qN/N!, and the Helmholtz energy is A=−kBTlnQ. Using Stirling's approximation and μ=(∂A/∂N)T,V, one finds
μ=−RTln(NAqm)
per mole, where qm is the molar partition function evaluated at the actual volume. To get the standard chemical potential μ∘, evaluate qm at Vm∘=RT/p∘, giving qm∘.
Step 2: Insert the zero-point energy explicitly. Every qJ implicitly sums Boltzmann factors e−εi/kBT measured from that molecule's own ground state. Write this ground state's true energy (on the common, separated-atoms scale) as ε0,J. Then the chemical potential referenced to the common scale is
μJ∘=−RTln(NAqJ,m∘)+NAε0,J
where the first term is entropic (from internal, relative energy-level spacing) and the second restores the absolute energy origin.
Step 3: Form the reaction Gibbs energy.
ΔrG∘=cμC∘+dμD∘−aμA∘−bμB∘
Substituting Step 2 for each species and collecting terms,
This is the master formula: a ratio of standard molar partition functions per mole, raised to stoichiometric powers, times the Boltzmann factor for the reaction's zero-point energy difference. Each qJ,m∘ is computed as the product of translational, rotational, vibrational, and electronic factors, with vibrational and electronic partition functions built using each molecule's own ground state as the local zero — consistent with the conventions used when deriving qV and qE separately.
Worked examples
Example 1 — Dissociation of I₂: I₂(g) ⇌ 2 I(g), at T=1000 K Data: I₂ bond length R=266.6 pm, vibrational wavenumber ν~=214.5 cm−1, dissociation energy from the ground vibrational state D0=1.5417 eV=148.75 kJ mol−1. Both I₂ and I have nondegenerate ground electronic states for this estimate (gI=4 from the 2P3/2 level including spin-orbit degeneracy, gI2=1; we use these as electronic degeneracies). Translational partition functions (per mole, at p∘=105 Pa, so Vm∘=RT/p∘):
qmT=(h22πmkBT)3/2p∘RT
For I atom, mI=126.90×1.6605×10−27 kg=2.1069×10−25 kg.
Numerator: 2π×2.1069×10−25×1.3807×10−23×1000=1.8272×10−44. Denominator: 4.3904×10−67. Ratio =4.162×1022 m−2, so raised to the 3/2 power: (4.162×1022)1.5=8.49×1033 m−3. Vm∘=RT/p∘=(8.314)(1000)/105=0.08314 m3.
qI,mT=8.49×1033×0.08314=7.06×1032
For I₂, m=2×126.90×1.6605×10−27 kg=4.2137×10−25 kg, twice mI, so the translational factor scales as 23/2=2.828:
qI2,mT=2.828×7.06×1032=2.00×1033
Rotational partition function of I₂ (symmetry number σ=2, homonuclear):
Vibrational partition function of I₂ (measured from its own zero-point level):
θV=kBhcν~=1.3807×10−23(6.626×10−34)(3.00×1010)(214.5)=308.6 K
qV=1−e−θV/T1=1−e−0.30861=1−0.73441=3.766
Electronic partition functions: qI2E=1; qIE=4 (accounting for spin-orbit degeneracy of ground state I atom, standard tabulated value). Assemble K for I2⇌2I:
Numerator per-mole ratio: qI,mT/NA=7.06×1032/6.022×1023=1.172×109; squared: 1.374×1018; times 16 (electronic): 2.198×1019. Denominator: qI2,mT/NA=2.00×1033/6.022×1023=3.32×109; times 9300×3.766×1=35030: gives 3.32×109×3.503×104=1.163×1014. Entropic ratio: 2.198×1019/1.163×1014=1.890×105. Energy factor: Δε0=D0=148.75 kJ mol−1 (energy to dissociate I₂ from its ground vibrational level into two ground-state I atoms).
RTΔε0=8.314×1000148750=17.89
e−17.89=1.70×10−8
K=1.890×105×1.70×10−8=3.2×10−3
This is dimensionless (Kp referenced to p∘), meaning I₂ is only weakly dissociated at 1000 K — sensible, since D0/RT≈18 is large. The literature value at 1000 K is close to K≈3×10−3, confirming the calculation.
Example 2 — Isotope exchange: H2+D2⇌2HD at T=300 K This reaction has no electronic contribution difference (all species singlet ground states, g=1) and, crucially, Δε0=0 even though bond order is conserved, because zero-point vibrational energies differ with isotope mass. Approximate vibrational wavenumbers: ν~H2=4401 cm−1, ν~D2=3115 cm−1, ν~HD=3813 cm−1 (close to the reduced-mass-scaled estimate). Zero-point energies (ε0=21hcν~) contribute:
Δε0=NA[2(21hcν~HD)−21hcν~H2−21hcν~D2]
Using hc=1.986×10−23 J cm (i.e., hcν~ in J when ν~ in cm⁻¹, times 1.986×10−23 J·cm): 21hcν~H2=0.5×1.986×10−23×4401=4.371×10−20 J21hcν~D2=0.5×1.986×10−23×3115=3.093×10−20 J21hcν~HD=0.5×1.986×10−23×3813=3.786×10−20 J
Per mole: Δε0=0.108×10−20×6.022×1023=650 J mol−1 (a small, positive value — this reaction is very weakly endothermic at T=0 due to imperfect harmonic cancellation).
RTΔε0=8.314×300650=0.2606,e−0.2606=0.771
Now the entropic (partition-function ratio) part. Translational factors: masses are mH2=2.016 u, mD2=4.028 u, mHD=3.022 u (in atomic mass units, 1 u=1.6605×10−27 kg). Since Vm∘ and T are common factors that cancel in the ratio (2 HD over H₂ + D₂ has equal mole totals, 2 = 1+1), only the mass-dependence survives:
Rotational factors (using σ=2 for H₂ and D₂, σ=1 for heteronuclear HD; moments of inertia scale with reduced mass μ=m1m2/(m1+m2), bond length essentially isotope-independent, R≈74.1 pm): μH2=1.008 u=1.674×10−27 kg; μD2=2.014 u=3.344×10−27 kg; μHD=(1.008×2.014)/(3.022) u=0.6717 u=1.115×10−27 kg. Since qR∝μR2T/σ (high-T limit valid at 300 K for these light rotors is marginal, but used here for the estimate, with R2 common),
=(1.674)(3.344)4(1.115)2×10−27⋯(u2 cancel, using u ratios directly)=1.008×2.0144(0.6717)2=2.0301.805=0.889×4(recheck)
Using u-values directly: 4×(0.6717)2/(1.008×2.014)=4×0.4512/2.030=1.805/2.030=0.889. This factor is close to unity, as expected since rotational symmetry differences (loss of σ=2 in both reactants, gain of σ=1 nondegenerate product count doubling) roughly balance mass effects. Vibrational factors are close to 1 at 300 K since θV/T≫1 for all three (H₂: θV≈6330 K), so qV≈1 for each, contributing negligibly to the ratio (each is close to 1, ratio ≈1). Combining: entropic ratio ≈1.192×0.889×1=1.060.
K=1.060×0.771=0.817
This compares well with the experimental/statistical literature value K≈3.2 at 300 K reported in some tables using more refined anharmonic data; the harmonic, rigid-rotor treatment here is an estimate accurate to within the approximations used (rigid rotor at low T underestimates rotational populations for H₂). The key qualitative result — K of order 1, with a small positive Δε0 from zero-point energy mismatch — is the physically important takeaway: isotope-exchange constants are governed almost entirely by zero-point energy differences, not by translational or electronic factors.
Limiting cases & common traps
Situation
Behavior
Δε0=0 (isodesmic, isotope-only reactions)
K is set purely by symmetry numbers, masses, moments of inertia — a "pure entropy" reaction
T→∞
e−Δε0/RT→1; K approaches the ratio of partition functions' high-T growth (often still temperature-dependent through qT,qR,qV)
T→0
K→0 for endothermic (Δε0>0) reactions; frozen equilibrium
Forgetting the common energy zero
Using tabulated q values referenced to each molecule's own ground state, without adding Δε0, gives wildly wrong K — often many orders of magnitude off
Symmetry number errors
Forgetting σ=2 for homonuclear diatomics inflates K by up to a factor of 2 per such species
The chemist behind it
This synthesis of spectroscopy and thermodynamics rests on statistical mechanics developed largely by Josiah Willard Gibbs, but its practical use for computing real equilibrium constants from molecular data was pioneered in the early twentieth century as spectroscopic data on diatomic and small polyatomic molecules became available. Henry Eyring and collaborators, working alongside contemporaries applying statistical mechanics to reaction rates and equilibria in the 1930s, helped establish partition-function methods as standard tools for physical chemists — turning band spectra into equilibrium constants without a single calorimetric measurement.
Origins · 1 minJosiah Willard Gibbs and how this was discovered
JW
Josiah Willard Gibbs
1839–1903 · Founded chemical thermodynamics and statistical mechanics, providing the Gibbs energy framework that links ΔrG∘ to K and, through the partition function, to molecular structure
Ask the tutor: How would this formula change for a reaction involving a linear triatomic molecule with two rotational and four vibrational modes?
Why do we divide q by Avogadro's number NA in the formula for K?
The molar partition function qm used in the chemical potential formula for indistinguishable particles carries a factor from the Stirling approximation to N!, which effectively divides the naive partition function by NA per mole (equivalently, converts a per-particle partition function into the correct per-mole thermodynamic quantity). This ensures μ=μ∘+RTln(p/p∘) has the right reference state, consistent with the ideal-gas standard state used throughout classical thermodynamics.
How does this formula relate to the van't Hoff equation?
Differentiating lnK with respect to T using the statistical formula reproduces the van't Hoff equation, dlnK/dT=ΔrH∘/(RT2), once the temperature dependence of the partition-function ratio is included alongside the Δε0/RT term. The statistical route additionally predicts the absolute magnitude and temperature dependence of ΔrH∘ itself, something van't Hoff's phenomenological law alone cannot supply.
Can this method be used for reactions involving polyatomic molecules?
Yes. The same master formula applies; only the individual qJ become more elaborate, with three (or two, for linear molecules) rotational degrees of freedom, multiple vibrational modes each contributing its own factor 1/(1−e−θV/T), and possibly internal rotations treated separately. The essential physics — separate energy zeros reconciled by Δε0 — is unchanged.
Why did the H2 + D2 example use approximate rather than exact spectroscopic constants?
The calculation illustrates the method transparently using rounded, textbook-level input data; real quantitative work uses anharmonicity-corrected vibrational term values and centrifugal-distortion-corrected rotational constants from high-resolution spectroscopy. The qualitative conclusion — that K is close to unity and governed mainly by the small zero-point energy mismatch — is robust to these refinements.
What happens if Δε0 is negative, i.e., the reaction is exothermic at T = 0?
Then e−Δε0/RT>1, boosting K above what the entropic partition-function ratio alone would give. Highly exothermic reactions (large negative Δε0) tend to have very large K at low-to-moderate temperature, exactly as expected from the exponential sensitivity of equilibrium to bond energy differences, analogous to the Arrhenius-like sensitivity seen in rate constants.