Skip to content

The Boltzmann Distribution

CSIR NET chemistry: microstates, weights, Stirling's approximation, the Boltzmann distribution, population ratios, S = k ln W and quantum statistics.

  • 23 min read
  • Updated
On this page · 16 sections
  1. Prerequisites
  2. The Hook: Why NMR Is Weak and Rotational Bands Have a Peak
  3. Microstates, Configurations and Weights
  4. Deriving the Boltzmann Distribution
  5. Using the Distribution: Population Ratios
  6. What Temperature Means Here
  7. Entropy: \( S = k\ln W \)
  8. Ensembles: Three Ways to Hold a System
  9. Distinguishable Particles, Bosons and Fermions
  10. Memory Tricks
  11. Don’t Confuse
  12. Common Mistakes
  13. Practice
  14. Quick Revision Table
  15. Key Takeaways
  16. What’s Next

Prerequisites

The Hook: Why NMR Is Weak and Rotational Bands Have a Peak

Microstates, Configurations and Weights

Take \( N \) molecules, each with allowed energies \( \varepsilon_0, \varepsilon_1, \varepsilon_2, \ldots \) (from quantum mechanics). The system has a fixed total energy \( E \).

The vocabulary
  • Microstate: a complete specification of which molecule is in which state.
  • Configuration (distribution): only the numbers \( \{n_0, n_1, n_2, \ldots\} \) in each level, without saying which molecules.
  • Weight \( W \) of a configuration: the number of microstates that give it.
  • Principle of equal a priori probabilities: for an isolated system, every microstate with the right \( N \) and \( E \) is equally likely.

For distinguishable (localised) molecules, the weight of a configuration is a multinomial coefficient:

$$\boxed{W = \frac{N!}{n_0!\,n_1!\,n_2!\cdots}}$$

If a level \( i \) has \( g_i \) states, each of the \( n_i \) molecules can choose among them, and \( W \) picks up an extra factor \( \prod_i g_i^{n_i} \).

With 4 molecules the most probable configuration has 60% of the microstates. With \( 10^{23} \) molecules, the most probable configuration and those indistinguishable from it carry essentially all of them: the weight is so sharply peaked that “most probable” and “equilibrium” mean the same thing. That is why we can find equilibrium by maximising \( W \).

Stirling’s approximation

Factorials of \( 10^{23} \) are handled through logarithms:

$$\ln N! \approx N\ln N - N \qquad (N \gg 1)$$
\( N \)exact \( \ln N! \)\( N\ln N - N \)Relative error
1015.1013.0314%
100363.7360.50.9%
10005912.15907.80.07%

The relative error vanishes as \( N \) grows. (The more accurate form adds \( \tfrac{1}{2}\ln 2\pi N \).) Then \( \ln W = N\ln N - \sum_i n_i\ln n_i \).

Deriving the Boltzmann Distribution

Maximise \( \ln W \) subject to two constraints: the number of molecules and the total energy are fixed.

$$\sum_i n_i = N, \qquad \sum_i n_i\varepsilon_i = E$$

Use Lagrange multipliers \( \alpha \) and \( -\beta \):

$$\frac{\partial \ln W}{\partial n_i} + \alpha - \beta\varepsilon_i = 0$$

With Stirling, \( \partial\ln W/\partial n_i = -\ln(n_i/N) \), so

$$\ln\frac{n_i}{N} = \alpha - \beta\varepsilon_i \quad\Rightarrow\quad n_i = Ne^{\alpha}e^{-\beta\varepsilon_i}$$

The first constraint fixes \( e^{\alpha} = 1/\sum_i e^{-\beta\varepsilon_i} \). The sum in the denominator is the molecular partition function \( q \).

The Boltzmann distribution

Over states \( i \) (each counted separately):

$$\frac{n_i}{N} = \frac{e^{-\beta\varepsilon_i}}{q}, \qquad q = \sum_{\text{states}} e^{-\beta\varepsilon_i}$$

Over levels \( j \) with degeneracy \( g_j \):

$$\frac{N_j}{N} = \frac{g_je^{-\beta\varepsilon_j}}{q}, \qquad q = \sum_{\text{levels}} g_je^{-\beta\varepsilon_j}, \qquad \beta = \frac{1}{kT}$$

Why \( \beta = 1/kT \)

The multiplier \( \beta \) is defined only as “whatever enforces fixed energy”. Its identification comes from comparison with thermodynamics. Two routes are standard:

  1. Compute the pressure or energy of a monatomic perfect gas from the distribution and compare with \( pV = nRT \) or \( U = \tfrac{3}{2}nRT \). Both force \( \beta = 1/kT \).
  2. With \( S = k\ln W \), a reversible transfer of heat changes the populations and gives \( dS = k\beta\,dq_{\text{rev}} \). The thermodynamic definition \( dS = dq_{\text{rev}}/T \) then requires \( \beta = 1/kT \).

Here \( k = R/N_A = 1.381 \times 10^{-23} \) J K⁻¹ is Boltzmann’s constant. Per mole, replace \( k \) by \( R \) and molecular energies by molar energies.

Using the Distribution: Population Ratios

Two levels, the workhorse
$$\frac{N_j}{N_i} = \frac{g_j}{g_i}\exp\!\left(-\frac{\Delta\varepsilon}{kT}\right) = \frac{g_j}{g_i}\exp\!\left(-\frac{hc\,\Delta\tilde{\nu}}{kT}\right) = \frac{g_j}{g_i}\exp\!\left(-\frac{\Delta E_m}{RT}\right)$$

Everything hinges on comparing the gap with \( kT \). Keep these values of \( kT \) at 298 K ready:

Unit\( kT \) (or \( RT \)) at 298 K
Joules per molecule\( 4.11 \times 10^{-21} \) J
Molar\( RT = 2.48 \) kJ mol⁻¹
Wavenumber\( kT/hc = 207 \) cm⁻¹ (use \( hc/k = 1.4388 \) cm K)
Electronvolts25.7 meV, about \( \tfrac{1}{40} \) eV
Frequency\( kT/h \approx 6.2 \times 10^{12} \) Hz

A ladder of gaps

Kind of gapTypical size\( \Delta\tilde{\nu}/(kT/hc) \) at 298 KUpper/lower population
Nuclear spin (¹H, 400 MHz)0.013 cm⁻¹\( 6.4 \times 10^{-5} \)0.99994
Electron spin (9.5 GHz, X band)0.32 cm⁻¹\( 1.5 \times 10^{-3} \)0.9985
Rotation (HCl, \( 2B \) for \( J = 0 \to 1 \))21 cm⁻¹0.10many levels filled
Low vibration (I₂, 214.5 cm⁻¹)214.5 cm⁻¹1.040.355
Mid vibration (O₂, 1580 cm⁻¹)1580 cm⁻¹7.6\( 4.9 \times 10^{-4} \)
High vibration (HCl, 2886 cm⁻¹)2886 cm⁻¹13.9\( 8.9 \times 10^{-7} \)
Electronic (visible)\( \sim 20\,000 \) cm⁻¹\( \sim 100 \)effectively zero

Read the table from top to bottom: magnetic-resonance levels are almost equally populated, many rotational levels are occupied, low-frequency vibrations are partly excited, and most vibrations and all electronic excitations are frozen out at room temperature.

Rotational populations and the most populated level

For a linear rotor, \( \varepsilon_J = hcBJ(J + 1) \) and \( g_J = 2J + 1 \):

$$\frac{N_J}{N_0} = (2J + 1)\exp\!\left[-\frac{hcB\,J(J + 1)}{kT}\right]$$

The degeneracy rises linearly while the Boltzmann factor falls, so the population passes through a maximum. Setting the derivative with respect to \( J \) to zero:

$$\boxed{J_{\max} = \sqrt{\frac{kT}{2hcB}} - \frac{1}{2}} \qquad \text{(round to the nearest integer)}$$
Molecule\( B \) / cm⁻¹\( J_{\max} \) formula at 298 KMost populated \( J \)
HCl10.592.633
CO1.936.837

For HCl, the relative populations \( N_J/N_0 \) for \( J = 0 \) to 5 are 1, 2.71, 3.68, 3.79, 3.24, 2.37: the peak sits between 2 and 3 and the integer maximum is \( J = 3 \). This is the envelope of rotational and vibration–rotation bands; see Rotational Spectra of Diatomic Molecules.

What Temperature Means Here

The single parameter \( T \) in the distribution controls how far up the ladder molecules spread.

LimitPopulations
\( T \to 0 \)everything in the ground level; \( q \to g_0 \)
\( T \) finite, positivepopulations fall with energy (per state)
\( T \to \infty \)every state equally populated; level populations in the ratio of \( g_j \)
\( T < 0 \) (formal)upper state more populated than lower: population inversion

At infinite temperature the populations of states become equal but never invert. An inversion, as in a laser medium or a spin system after a 180° pulse, cannot be produced by heating: it is a non-equilibrium state. If you insist on describing it with the Boltzmann formula, the ratio \( N_\text{upper}/N_\text{lower} > 1 \) requires \( T < 0 \). Negative temperatures are hotter than any positive temperature in the sense that heat flows from them to any positive-temperature system. They are possible only for systems whose energy ladder is bounded above (a set of spins), never for translation or vibration.

Entropy: \( S = k\ln W \)

Boltzmann’s definition connects counting to thermodynamics:

$$\boxed{S = k\ln W}$$

It does what the thermodynamic entropy does:

  • Additive. For two independent systems \( W = W_1W_2 \), so \( S = S_1 + S_2 \). The logarithm is what makes entropy extensive.
  • Zero for a perfect crystal at 0 K. One microstate, \( W = 1 \), \( S = 0 \): the statistical form of the third law.
  • Increases on spontaneous change in an isolated system, because the system moves to configurations with more microstates.

With Stirling and the Boltzmann populations, \( S = -Nk\sum_i p_i\ln p_i \), where \( p_i = n_i/N \). This “Gibbs form” is the one used for model systems.

Entropy of mixing by counting

Place \( N_A \) molecules of A and \( N_B \) of B on \( N = N_A + N_B \) lattice sites. Before mixing, \( W = 1 \); after random mixing, \( W = N!/(N_A!N_B!) \). Stirling gives

$$\Delta S_{\text{mix}} = -Nk(x_A\ln x_A + x_B\ln x_B) = -nR\sum_i x_i\ln x_i$$

the same result classical thermodynamics gives for perfect gases. Mixing 1 mol of A with 1 mol of B gives \( 2R\ln 2 = 11.5 \) J K⁻¹.

Ensembles: Three Ways to Hold a System

EnsembleFixedExchangesPartition functionNatural potential
Microcanonical\( N, V, E \)nothing\( \Omega \) (number of microstates)\( S = k\ln\Omega \)
Canonical\( N, V, T \)energy with a bath\( Q = \sum_i e^{-\beta E_i} \)\( A = -kT\ln Q \)
Grand canonical\( \mu, V, T \)energy and particles\( \Xi = \sum_{N, i} e^{-\beta(E_i - \mu N)} \)\( pV = kT\ln\Xi \)

In chemistry the canonical ensemble is used almost always: it is the system in a thermostat, and its partition function is built from molecular partition functions (next-but-one page). For a macroscopic system the three ensembles give the same thermodynamics, because the fluctuations in the exchanged quantity are negligible.

Distinguishable Particles, Bosons and Fermions

The weight \( N!/\prod n_i! \) assumes molecules can be told apart. Quantum particles of one kind cannot. Two kinds of indistinguishable particle exist:

Maxwell–BoltzmannBose–EinsteinFermi–Dirac
Particlesdistinguishable (classical)indistinguishable, integer spinindistinguishable, half-integer spin
Occupancy of a stateanyany0 or 1 (Pauli)
Mean occupancy of state \( i \)\( e^{-(\varepsilon_i - \mu)/kT} \)\( \dfrac{1}{e^{(\varepsilon_i - \mu)/kT} - 1} \)\( \dfrac{1}{e^{(\varepsilon_i - \mu)/kT} + 1} \)
Examplesmolecules in a dilute gas (as a limit)photons, ⁴He, H₂ (as a whole)electrons, protons, ³He

When the occupancy of every state is much less than 1, the \( \pm 1 \) is negligible and both quantum distributions reduce to the Boltzmann form. That is the situation for ordinary molecular gases: there are vastly more translational states than molecules. The exceptions are electrons in metals (Fermi–Dirac) and helium or photons at low temperature (Bose–Einstein).

Memory Tricks

Don’t Confuse

ThisvsThat
Population of a state: \( e^{-\beta\varepsilon}/q \)Population of a level: \( ge^{-\beta\varepsilon}/q \)
Configuration \( \{n_i\} \)Microstate (who is where)
\( W \): weight of one configuration\( \Omega \): total microstates of the system
\( T \to \infty \): states equally populated\( T < 0 \): upper state more populated (inversion)
Lagrange multiplier \( \alpha \) (fixes \( N \))\( \beta \) (fixes \( E \)), \( = 1/kT \)
\( k \) per molecule, energies in J\( R \) per mole, energies in J mol⁻¹
Bosons: any occupancy, \( -1 \) in denominatorFermions: 0 or 1, \( +1 \) in denominator

Common Mistakes

Practice

All questions below are original practice questions written for this page. They are not from any CSIR NET paper.

Use \( hc/k = 1.4388 \) cm K, \( k = 1.381 \times 10^{-23} \) J K⁻¹, \( h = 6.626 \times 10^{-34} \) J s, \( R = 8.314 \) J K⁻¹ mol⁻¹.

Level 1: Foundation

  1. How many microstates does the configuration (2, 1, 1, 0) of four distinguishable molecules have?
  2. What is \( kT/hc \) at 298 K, to the nearest 10 cm⁻¹?
  3. Two levels have degeneracies \( g_0 = 1 \) and \( g_1 = 3 \). What is \( N_1/N_0 \) as \( T \to \infty \)?
Answers
  1. \( 4!/(2!\,1!\,1!\,0!) = \mathbf{12} \).
  2. About 210 cm⁻¹ (207 cm⁻¹).
  3. 3, the ratio of the degeneracies. The Boltzmann factor tends to 1.

Level 2: Part B Style

Practice Q1. A vibrational mode has wavenumber 414 cm⁻¹. At 298 K the ratio of molecules in \( v = 1 \) to \( v = 0 \) is closest to

(a) 0.50 (b) 0.37 (c) 0.14 (d) 0.02

Answer: (c)

\( \Delta\tilde{\nu}/(kT/hc) = 414/207 = 2.0 \). \( N_1/N_0 = e^{-2.0} = 0.135 \). Vibrational levels are non-degenerate, so there is no \( g \) factor. (b) is \( e^{-1} \), which would be correct for a 207 cm⁻¹ mode.

Practice Q2. For CO (\( B = 1.93 \) cm⁻¹) at 298 K, the most populated rotational level is

(a) \( J = 0 \) (b) \( J = 3 \) (c) \( J = 7 \) (d) \( J = 10 \)

Answer: (c)

\( J_{\max} = \sqrt{kT/2hcB} - \tfrac{1}{2} = \sqrt{207/3.86} - 0.5 = 7.33 - 0.5 = 6.8 \), so \( J = 7 \). Checking: \( N_J/N_0 \) is 8.79 at \( J = 6 \), 8.90 at \( J = 7 \), 8.69 at \( J = 8 \). (d) drops the factor of 2 under the root: \( \sqrt{207/1.93} - 0.5 = 9.9 \).

Practice Q3. Two identical particles are distributed over three single-particle states. The numbers of distinct arrangements for distinguishable particles, bosons and fermions are, respectively,

(a) 9, 6, 3 (b) 6, 3, 9 (c) 9, 3, 6 (d) 6, 6, 3

Answer: (a)

Distinguishable: \( 3^2 = 9 \). Bosons: \( \binom{3 + 2 - 1}{2} = 6 \) (the three single and three double occupancies). Fermions: \( \binom{3}{2} = 3 \) (no double occupancy).

Practice Q4. Which statement about a system obeying the Boltzmann distribution at positive temperature is false?

(a) At \( T \to 0 \) all molecules occupy the ground level. (b) As \( T \to \infty \) all non-degenerate states become equally populated. (c) As \( T \to \infty \) all energy levels become equally populated, whatever their degeneracies. (d) A state of higher energy is never more populated than a state of lower energy.

Answer: (c)

At infinite temperature the states equalise, so levels are populated in the ratio of their degeneracies. A level with \( g = 3 \) ends up with three times the population of a level with \( g = 1 \). (d) is true: it is the per-state statement, and it fails only for a population inversion, which needs \( T < 0 \).

Practice Q5. In a proton NMR experiment at 400 MHz and 298 K, the excess fraction of spins in the lower state, \( (n_\text{lower} - n_\text{upper})/N \), is about

(a) \( 6.4 \times 10^{-5} \) (b) \( 3.2 \times 10^{-5} \) (c) \( 3.2 \times 10^{-3} \) (d) 0.5

Answer: (b)

\( h\nu/kT = (6.626 \times 10^{-34})(4.00 \times 10^8)/[(1.381 \times 10^{-23})(298)] = 6.44 \times 10^{-5} \). The excess fraction is \( \tanh(h\nu/2kT) \approx h\nu/2kT = 3.2 \times 10^{-5} \). (a) is \( h\nu/kT \), which is the fractional difference between \( n_\text{upper}/n_\text{lower} \) and 1, not the excess fraction.

Level 3: Part C Style

Practice Q6. A two-level system has \( g_0 = 1 \) and \( g_1 = 3 \). At 300 K the measured ratio \( N_1/N_0 \) is 0.25. Which statements are correct?

  1. The energy gap is about 518 cm⁻¹.
  2. At about 679 K the two levels hold equal numbers of molecules.
  3. At 679 K the system has a population inversion.
  4. At 150 K, \( N_1/N_0 \) is about 0.021.

(a) 1 and 2 only (b) 1, 2 and 4 only (c) 1, 3 and 4 only (d) 2 and 3 only

Answer: (b) 1, 2 and 4 only
  1. Correct. \( 0.25 = 3e^{-x} \Rightarrow x = \ln 12 = 2.485 \); \( \Delta\tilde{\nu} = 2.485 \times 300/1.4388 = 518 \) cm⁻¹.
  2. Correct. Equal populations need \( e^{-x} = 1/3 \): \( T = 518 \times 1.4388/\ln 3 = 679 \) K.
  3. Wrong. Each upper state holds one third as many molecules as the ground state; equal level populations come from the degeneracy, not from an inversion.
  4. Correct. At 150 K, \( x = 4.97 \); \( N_1/N_0 = 3e^{-4.97} = 0.0208 \). (Halving \( T \) doubles \( x \), so \( N_1/N_0 = 3(0.25/3)^2 = 0.0208 \).)

Practice Q7. Iodine (\( \tilde{\nu} = 214.5 \) cm⁻¹, harmonic levels) is held at 298 K. Which is closest to the fraction of molecules in \( v = 0 \)?

(a) 0.36 (b) 0.50 (c) 0.65 (d) 0.90

Answer: (c)

For harmonic levels the ratios form a geometric series with \( r = e^{-214.5 \times 1.4388/298} = e^{-1.036} = 0.355 \). The vibrational partition function (ground level as zero) is \( q = 1/(1 - r) = 1.550 \), and the fraction in \( v = 0 \) is \( 1/q = 1 - r = 0.645 \). So about 35% of iodine molecules are vibrationally excited at room temperature, which is why hot bands are prominent in its spectrum. (a) is \( r \) itself, the ratio \( N_1/N_0 \).

Practice Q8. Consider \( N \) distinguishable molecules, each with two non-degenerate levels \( 0 \) and \( \varepsilon \). Which statements are correct?

  1. The configuration with \( N/2 \) molecules in each level has the largest weight, \( W = N!/[(N/2)!]^2 \).
  2. For one mole, the entropy of that configuration is \( R\ln 2 \).
  3. The configuration in statement 1 is reached as \( T \to \infty \).
  4. The configuration with all molecules in the upper level has \( W = 1 \) and corresponds to \( T \to 0^- \) (just below zero).

(a) 1 and 3 only (b) 1, 2 and 3 only (c) 1, 2, 3 and 4 (d) 2 and 4 only

Answer: (c) 1, 2, 3 and 4
  1. Correct. \( \binom{N}{n} \) is largest at \( n = N/2 \).
  2. Correct. Stirling: \( \ln W \approx N\ln 2 \), so \( S = Nk\ln 2 = R\ln 2 \) for a mole.
  3. Correct. As \( T \to \infty \) the two non-degenerate states are equally populated.
  4. Correct. All-up has only one microstate (\( S = 0 \)). As \( T \) runs from \( +0 \) to \( +\infty \), then from \( -\infty \) to \( -0 \), the system goes from all-down to half-and-half to all-up. A system with a bounded energy ladder can formally reach it, as in an inverted spin system.

Quick Revision Table

IdeaFact
Weight (distinguishable)\( W = N!/\prod n_i! \)
Stirling\( \ln N! \approx N\ln N - N \)
Boltzmann distribution\( N_j/N = g_je^{-\varepsilon_j/kT}/q \)
Partition function\( q = \sum g_je^{-\varepsilon_j/kT} \)
\( \beta \)\( 1/kT \), from comparison with thermodynamics
\( kT \) at 298 K207 cm⁻¹; 2.48 kJ mol⁻¹; 25.7 meV; \( 4.11 \times 10^{-21} \) J
Two-level ratio\( (g_j/g_i)e^{-\Delta\varepsilon/kT} \)
Rotational maximum\( J_{\max} = \sqrt{kT/2hcB} - \tfrac{1}{2} \); HCl 3, CO 7 at 298 K
NMR excess\( h\nu/2kT \): 32 per million at 400 MHz, 298 K
Limits\( T \to 0 \): ground level; \( T \to \infty \): states equal, levels as \( g \)
Inversionneeds \( T < 0 \); possible only for bounded ladders
Entropy\( S = k\ln W \); \( S = -Nk\sum p_i\ln p_i \)
Mixing\( \Delta S = -nR\sum x_i\ln x_i \)
Ensemblesmicro \( (N, V, E) \); canonical \( (N, V, T) \); grand \( (\mu, V, T) \)
Quantum statisticsBE \( -1 \), FD \( +1 \); dilute limit → Boltzmann
2 particles, 3 states9 (MB), 6 (BE), 3 (FD)

Key Takeaways

What’s Next

The partition function \( q \) appeared here as a normalising constant. The next page applies the Boltzmann distribution to the speeds of gas molecules, giving the Maxwell distribution, mean speeds, collision rates and mean free paths.

→ Kinetic Theory of Gases

After that, Partition Functions and Thermodynamic Quantities turns \( q \) into \( U \), \( S \), \( A \), \( G \) and equilibrium constants. Return to the chapter overview at any time.