Equilibrium Thermodynamics of the Early Universe
For the first fractions of a second, the universe was a furnace so dense that every particle collided with its neighbours billions of times before the cosmos expanded appreciably. When reactions run that much faster than the Hubble expansion, thermodynamics wins: each species forgets its history and relaxes to the unique maximum-entropy state compatible with the conserved charges. That state is astonishingly economical to describe. A whole plasma of photons, electrons, positrons, neutrinos, quarks and gluons is captured by two universal distribution functions — Bose-Einstein for integer spin, Fermi-Dirac for half-integer spin — each pinned by one shared temperature and, per conserved charge, a chemical potential . This is the statistical-mechanical bedrock beneath the hot Big Bang. From those distributions three macroscopic numbers follow by integration over momentum: the number density , the energy density , and the pressure — the only microphysical inputs the expanding universe demands. The Friedmann equation asks for the total ; entropy conservation asks for ; the reaction networks of nucleosynthesis and recombination measure their departures from these equilibrium values. The bookkeeping of every relativistic species compresses into a single running number, the effective degrees of freedom for energy and for entropy — a staircase that drops each time a species goes cold. This article derives , and from first principles in both limits, fixes the equation of state, and threads the results into photon counting, neutrino temperatures and the seeds of Big Bang Nucleosynthesis.
- In the hot early universe, rapid interactions enforce thermal equilibrium, so every species is a Bose-Einstein or Fermi-Dirac phase-space distribution set by one shared temperature and a chemical potential .
- Integrating those distributions over momentum yields the number density , energy density and pressure — the sole microphysical inputs to the Friedmann equations and to the thermal history.
- For relativistic species (, ), and , with fermions suppressed by the exact factors (energy) and (number) relative to bosons.
- For non-relativistic species () the density is Boltzmann-suppressed, , so heavy particles disappear from the plasma as it cools.
- All relativistic species pack into ; it falls from above the electroweak scale to at MeV to today, and it governs entropy conservation, neutrino decoupling and recombination.
- Key idea: a species in thermal equilibrium is fixed entirely by , , its mass and its internal degrees of freedom ; integrating its Bose-Einstein or Fermi-Dirac distribution gives , and , which are everything the expanding universe needs to know about it.
A particle species in thermal equilibrium is fully characterised by , , its mass and its internal degrees of freedom ; integrating the Bose-Einstein or Fermi-Dirac distribution over phase space gives , and — the only microphysical inputs the expanding universe requires.
Where this lives today
Equilibrium thermodynamics is the running engine of every precision-cosmology pipeline. The functions and are tabulated to high accuracy — including the lattice-QCD treatment of the quark-hadron transition — because they set the expansion rate during nucleosynthesis, where a percent-level error shifts the predicted helium and deuterium abundances that BBN codes test against quasar-absorption measurements. The same entropy bookkeeping fixes the effective neutrino number , whose refined value is a target CMB experiments (Planck, and next CMB-S4 and Simons Observatory) measure to hunt for extra relativistic species. And the relic neutrino background at K, a direct consequence of the derived above, is the quarry of the PTOLEMY experiment. Every one of these frontier measurements rests on the equilibrium integrals in this article.
The physical picture
Picture the early universe as a box of gas so hot and dense that collisions randomise everything far faster than the box expands. Statistical mechanics then guarantees a unique end-state: all interacting species share one temperature, and the average occupation of each momentum state is fixed by nothing but spin statistics. Bosons are gregarious — they pile into low-energy states without limit. Fermions obey Pauli exclusion — no state holds more than one, so their occupation never exceeds unity. The first figure is the whole story of the in the denominator: where the fermion factors and are secretly born, and where all three statistics merge into the classical Boltzmann tail once energies climb above .
Whether a species counts as "relativistic" is decided by the single ratio . When its rest mass is an afterthought and it behaves like pure radiation, and . When it costs an energy merely to conjure the particle, so its abundance is throttled by — the species freezes out and dumps its entropy into whatever lighter particles remain. As the universe cools it steps through a sequence of thresholds, and at each one the count of relativistic degrees of freedom drops. The second figure is the quantity a cosmologist actually reaches for: the running staircase , carrying the three canonical plateaus that anchor the thermal history.
The and that separate fermions from bosons are not fudge factors; they are the arithmetic fingerprint of the exclusion principle, the alternating Fermi-Dirac series trimming the sum by exactly relative to the all-positive Bose-Einstein one. Chemical potentials, meanwhile, are almost always negligible: the cosmic particle-antiparticle asymmetry is tiny (baryon-to-photon ratio ), so setting turns the relativistic densities into pure functions of and .
The core equations
Everything begins with the average occupation of a single quantum state. Kinetic and chemical equilibrium fix it to depend on the state only through its energy , with the sign in the denominator selecting the statistics: for fermions, for bosons. This is the one input from which , and are all built.
where: — mean number of particles per quantum state of momentum ; — relativistic energy (natural units ); — chemical potential; — temperature shared by all interacting species; — Fermi-Dirac (fermions); — Bose-Einstein (bosons). Reading it: the whole thermodynamic state of a species lives in this one function of . Summing over all momentum states with the phase-space measure gives the number density; the angular integral contributes , leaving a one-dimensional integral over .
where: — particles per unit physical volume; — internal degrees of freedom (spin, colour, particle/antiparticle counted separately); the prefactor is . Reading it: weight each momentum shell by its occupation and its phase-space volume. Weighting the same integrand by each mode's energy gives the energy density; weighting by the momentum flux gives the pressure. These two, with , are the complete macroscopic description.
where: — energy per unit volume; — isotropic pressure, the momentum flux. Reading it: in the relativistic limit , the pressure integrand becomes the energy integrand, so ; in the non-relativistic limit , so . Carrying out the massless, integrals collapses the sum over all relativistic species into one number, the effective count of relativistic degrees of freedom — every boson with weight , every fermion with weight .
where: — effective relativistic degrees of freedom for energy; — the fermion suppression factor; — accounts for species (like neutrinos after decoupling) that no longer share the photon temperature. Reading it: the total radiation energy is times a running headcount of who is still relativistic. The entropy density follows from the Gibbs relation at and is what stays conserved in a comoving volume. Its headcount uses cube-of-temperature weights.
where: — entropy per unit volume; — effective degrees of freedom for entropy; for radiation. Reading it: conservation of is the workhorse that relates temperatures across the expansion. For a non-relativistic species the quantum is irrelevant and the density is exponentially suppressed — the seed of both the Saha equation and of freeze-out.
where: the Boltzmann factor is the cost of the rest mass; because rest energy dominates; recovers the ideal-gas law with . Reading it: heavy particles are exponentially rare once falls below their mass. Collecting the two regimes gives the equation of state that feeds the Friedmann equation directly.
where: — equation-of-state parameter. Reading it: radiation () and dust () are the two limits the equilibrium integrals interpolate between as a species crosses its mass threshold.
The goal is to turn the abstract phase-space integrals of equations (2) and (3) into the closed-form powers of temperature that every cosmology calculation quotes, and to expose where the celebrated coefficients , and the fermion factors and come from. We work in the ultra-relativistic, chemical-potential-free limit — set so , and — the regime in which photons and every hot species actually live.
Step 1. Change variables to the dimensionless in the number-density integral, . Why: the substitution factors the entire temperature dependence out front as , leaving a pure number to evaluate once and reuse forever.
Step 2. Evaluate the bosonic case by expanding the denominator, , so , giving . Why: the sum over is precisely the Riemann zeta function, which is how enters cosmology.
Step 3. The fermionic denominator expands with alternating signs, , so the sum becomes the Dirichlet eta ; with this is , giving . Why: the sign alternation is the direct arithmetic imprint of Pauli exclusion — the entire origin of the .
Step 4. Repeat for the energy density, where the extra factor of raises the integrand to and the prefactor to : , with . Why: the same series machinery now lands on , which is what converts the messy integral into the clean .
Step 5. Collect: , and the fermionic version carries the eta factor , giving . Why: these are exactly the weights that build in equation (4), so this single derivation underwrites the whole staircase. *Note: the key identities used above are and .*
Go deeper · Derivation B · 1 minThe non-relativistic limit and Boltzmann suppression
The aim is to show how the same phase-space integral that gave clean powers of for radiation instead produces an exponential once a species goes cold, because this Maxwell-Boltzmann form is the microscopic seed of every abundance calculation downstream — the neutron-to-proton ratio, the Saha ionisation fraction, and dark-matter freeze-out. We take the regime and track how the quantum statistics quietly switch themselves off.
Step 1. When the exponent is large and positive for every momentum, so the occupation number is tiny and the in the denominator is negligible: . The integral becomes . Why: with occupation numbers far below one there is never a contest for states, so Bose and Fermi statistics become indistinguishable from classical Boltzmann counting.
Step 2. Expand the energy for , , so the exponential factorises into a constant rest-mass piece and a Gaussian in momentum: . Why: the rest energy pulls out as the temperature-independent suppression , which is the whole physical content of the limit.
Step 3. Do the Gaussian moment , and assemble the constants to reach . Why: this is the classical ideal-gas density with a thermal de Broglie volume , now carrying the exponential mass penalty that empties the plasma of heavy particles.
Step 4. Finally, because each particle's energy is dominated by its rest mass, while from the equipartition of the Gaussian kinetic energy, so . Why: a cold gas contributes rest-mass energy but almost no pressure, which is why non-relativistic matter behaves as pressureless dust in the Friedmann equation. *Note: the Gaussian moment , evaluated at , is what produces the prefactor in the non-relativistic number density.*
Go deeper · Derivation C · 1 minEntropy density and the conservation of comoving entropy
The purpose is to establish why is conserved and why the entropy headcount — not the energy headcount — relates temperatures across mass thresholds, because this one conservation law is what lets us compute the neutrino temperature, the photon reheating from electron-positron annihilation, and the redshift-temperature relation of the microwave background. We start from the first law for a comoving volume at negligible chemical potential.
Step 1. For an adiabatically expanding fluid the first law reads , which rearranges to when , identifying the conserved quantity as with . Why: expansion does no work on the surroundings and adds no heat, so the total entropy in a comoving box is fixed even as , and all change.
Step 2. For a relativistic gas , so ; inserting gives . Why: the enthalpy density is what turns the of the energy density into the of the entropy density.
Step 3. Conservation of then reads , so . Why: whenever a species annihilates and pours its entropy into the remaining plasma, drops and falls more slowly than for a moment — the photons are reheated relative to anything already decoupled.
Step 4. Apply this across electron-positron annihilation to the decoupled neutrinos, which carry their own conserved : the photon bath is heated but the neutrinos are not, leaving . Why: a bare bookkeeping identity fixes the relic neutrino temperature to K today, from the fermion factor alone. *Note: with pre-annihilation and post-annihilation photon , entropy conservation gives ; today and .*
Limiting cases
The phase-space integrals collapse into simple closed forms in two opposite regimes, governed by the ratio . Between them, near a mass threshold, only a full numerical evaluation of the Fermi-Dirac and Bose-Einstein integrals will do — which is exactly what happens across electron-positron annihilation.
| Case | Result | Meaning |
|---|---|---|
| Ultra-relativistic bosons (, ) | Photons () are the archetype; | |
| Ultra-relativistic fermions (, ) | The and are the Pauli-exclusion signatures | |
| Non-relativistic (, either statistic) | Boltzmann suppression; quantum statistics irrelevant since | |
| Degenerate fermions (, ) | below , above | Fermi sea; white dwarfs and neutron stars, not the hot early universe |
Worked examples
1 · The photon number and energy density today (fully worked)
The CMB is a relativistic Bose gas with polarisation states at K. Find the present photon number density and energy density.
Step 1. Convert the temperature to natural (energy) units: eV. To turn an energy into an inverse length use , so .
Step 2. Apply the relativistic boson number density from the limiting-case table: . Cubing gives , and , so — roughly four hundred CMB photons in every cubic centimetre of space.
Step 3. For the energy density use ; in the same units this is , and dividing by the critical density gives the radiation share . These are the standard anchor values for the radiation content of the universe.
2 · The temperature of the relic neutrino background (fully worked)
Before electron-positron annihilation the plasma held photons, electrons, positrons and three neutrino species in equilibrium. The neutrinos decouple just before annihilation. Find the neutrino-to-photon temperature ratio, and today.
Step 1. Count the entropy degrees of freedom coupled to the photons just before annihilation. Photons contribute ; electrons and positrons contribute (two spin states each, particle and antiparticle). So .
Step 2. After the pairs annihilate, only photons remain in that bath, so . Comoving entropy conservation for the photon sector gives , while the decoupled neutrinos independently keep ; before annihilation .
Step 3. Taking the ratio, , so , and with K, . The same factor gives today's headcounts and .
3 · The neutron-to-proton ratio before freeze-out
While weak interactions keep neutrons and protons in equilibrium, their abundance ratio is Boltzmann-controlled by the mass gap MeV. Estimate the ratio at MeV, just before weak freeze-out.
Step 1. Both are non-relativistic at these temperatures, so equation (6) applies to each. Their prefactors are nearly identical because , so the ratio reduces to the exponential of the mass difference: .
Step 2. Insert the numbers: , so , about one neutron for every five protons.
Step 3. This equilibrium ratio is the input Big Bang Nucleosynthesis inherits. Once the weak rates fall below the Hubble rate near MeV the ratio freezes near this value (drifting only through neutron decay), and essentially all surviving neutrons end up bound in helium-4 — fixing the primordial helium mass fraction near . The Boltzmann suppression sets the starting line for the light-element abundances.
Physics of the portrait
Equilibrium cosmology is a fusion of two nineteenth- and twentieth-century revolutions — statistical mechanics and general relativity — and the person who first married them rigorously was Richard Tolman.
Origins · 1 minRichard Tolman and how this was discovered
Richard Chace Tolman was a physical chemist turned mathematical physicist who, more than anyone, established that thermodynamics could be applied consistently to the universe as a whole. Working at Caltech through its golden age, he asked a question that sounds naive but is deep: does a box of blackbody radiation stay in thermal equilibrium as the space containing it expands? His answer, codified in the 1934 classic Relativity, Thermodynamics and Cosmology, was yes — provided the temperature redshifts as , exactly the scaling the equilibrium entropy density demands. This is why we can still speak of a photon "temperature" 13.8 billion years after the photons last interacted: Tolman proved the Planck spectrum is preserved by free expansion, with only its temperature sliding down. The distribution functions themselves were the gift of others — Bose and Einstein for integer spin in 1924, Fermi and Dirac for the exclusion principle in 1926 — and the numerical thermal history was later built by Gamow, Alpher and Herman, whose 1948 relic-background estimate pointed straight at the CMB that Penzias and Wilson found in 1965. But it was Tolman who made the thermodynamics of an expanding universe a rigorous subject rather than a plausibility argument.
Going further
Texts. Ryden, Introduction to Cosmology, 2nd ed., Ch. 9 · Dodelson, Modern Cosmology, 2nd ed., Ch. 2–3 · Kolb & Turner, The Early Universe, Ch. 3 · Carroll & Ostlie, An Introduction to Modern Astrophysics, Ch. 30 · Mo, van den Bosch & White, Galaxy Formation and Evolution, Ch. 3 · Weinberg, Cosmology, Ch. 3. The coefficients , , , and all follow from the and Dirichlet-eta identities, with the key steps being and the Gaussian moment . Numerical anchors: and at K; (electroweak), (post-QCD), (MeV era), (today) with ; ; ; .
Prerequisites. Statistical Mechanics (Bose-Einstein / Fermi-Dirac distributions) · Special Relativity (energy-momentum relation) · Friedmann Equations and the Expanding Universe. Leads to. Thermal History of the Universe · Effective Number of Relativistic Degrees of Freedom · Entropy Conservation and Comoving Entropy · Decoupling and Freeze-Out · Neutrino Decoupling and the Cosmic Neutrino Background · Recombination and the Saha Equation.
Ask the tutor: Ask me to walk through how the fermion factor propagates from the Fermi-Dirac integral all the way to the K neutrino background, or to build the staircase species-by-species for any epoch you name.
Why can a whole universe of particles be described by just T, μ and g?
Because thermal equilibrium erases microscopic history. When collisions are much faster than the expansion, a species reaches the unique maximum-entropy state consistent with its conserved charges, and the second law guarantees that state is the Bose-Einstein or Fermi-Dirac distribution. That distribution depends on each quantum state only through its energy, and on the species only through its temperature , chemical potential , mass and degrees of freedom . All the intractable many-body dynamics is thrown away, leaving four numbers per species — which is why cosmology can predict the CMB and the light-element abundances without ever solving the full equilibrium collision network.
What exactly is g, and how do I count it for a given particle?
The degrees of freedom count the distinct quantum states a particle can occupy at a given momentum. A photon has (two transverse polarisations). A massive spin- electron has spin states, with the antiparticle counted separately, so an electron-positron pair contributes . Quarks carry an extra factor of for colour. Standard-Model neutrinos have one helicity each, so three flavours plus antiparticles give . In every bosonic degree of freedom enters with weight and every fermionic one with weight — getting right for each species is the whole of building the staircase.
Where do the factors 7/8 and 3/4 actually come from?
They come from the difference between adding and alternating a series. The Bose-Einstein denominator expands into an all-positive series summing to the Riemann zeta ; the Fermi-Dirac denominator instead gives an alternating series summing to the Dirichlet eta . For the energy density , so the fermion-to-boson ratio is ; for the number density , giving . Both are exact imprints of Pauli exclusion: fermions cannot crowd the low-energy states the way bosons can, so they carry slightly less energy and fewer particles.
If neutrinos decoupled, how can we still assign them a temperature?
A decoupled species keeps a thermal-shaped distribution even without collisions, because free expansion redshifts every momentum by the same factor . A Fermi-Dirac distribution in simply continues to look Fermi-Dirac with — the functional form is frozen, only the scale slides. So the cosmic neutrino background is genuinely thermal at a well-defined K today, even though the neutrinos last scattered when the universe was one second old. This is Tolman's insight applied to fermions: expansion preserves the equilibrium spectrum and merely cools it — the same reason the photon background stays a perfect blackbody long after photons stopped interacting.
Why does the baryon-to-photon ratio η matter so much?
Because it is the one number the equilibrium formalism cannot supply, and everything else keys off it. The photon density is fixed by equilibrium thermodynamics, while the net baryon number is a nearly conserved relic of an earlier asymmetry. Their ratio is the single free parameter of Big Bang Nucleosynthesis: it sets how quickly protons and neutrons build deuterium and helium, and thus the primordial abundances. The same is independently pinned by the acoustic peaks of the CMB, and the two agree — one of the tightest consistency checks in cosmology.
When must I abandon the equilibrium formulas and solve the Boltzmann equation?
Precisely when a reaction rate falls below the Hubble rate — the condition for freeze-out. As long as the species tracks its equilibrium abundance and the algebraic formulas here are exact. Once it can no longer keep up: its abundance departs from equilibrium and freezes at a relic value the equilibrium formulas would badly misestimate. Computing that relic requires integrating the Boltzmann equation with a collision term, using the equilibrium densities as the reference the actual abundance is chasing. Dark-matter freeze-out, neutron-proton freeze-out, and recombination are all of this type — equilibrium sets the stage, but the final abundance is a non-equilibrium calculation.