Photon Gas and Planck Radiation Law
Open a small hole in the wall of a furnace and the light that leaks out carries no fingerprint of what the furnace is made of — only its temperature. Iron, ceramic, or coal, heated to 1000 K, all glow the same dull red; at 6000 K all glow the same white as the Sun. That universality is the signature of a photon gas: the electromagnetic field in thermal equilibrium inside a cavity, a collection of field oscillators — one per standing-wave mode — each holding an integer number of photons of energy . We take one thing from quantum mechanics and add one thing of our own. From aq-qm-blackbody-radiation-planck-quantum we inherit the single-mode result: the mean number of photons in a mode is the Planck factor , and the classical mode count survives quantization untouched — that article "keep[s] the classical mode count, quantize[s] the energy exchange," and its "is the mean number of quanta in the mode." The microscopic reason photons are freely made and destroyed lives in aq-qm-spontaneous-emission-einstein-coefficients. What statistical mechanics owns is the step from one mode to the whole radiation field as a thermodynamic body: because photon number is not conserved, the free energy is minimized over , forcing ; integrating the Planck spectrum over the density of states then delivers the Stefan–Boltzmann energy density, a radiation pressure equal to one third of that density, and an entropy scaling as . The photon gas is the simplest nontrivial quantum gas and a recurring template — it shares its mathematics with lattice phonons, with relic particle backgrounds, and with any gas of massless number-non-conserving bosons. The cosmic microwave background is a real photon gas that has been expanding and cooling for 13.8 billion years while keeping its Planck shape.
- A photon gas is an ideal Bose gas with zero chemical potential, because photon number is not conserved — walls freely create and absorb photons, so at every temperature.
- The mean occupation of a mode of frequency is the Planck factor — the special case of the Bose–Einstein distribution.
- Multiplying by the photon density of states (two polarizations, linear dispersion ) gives Planck's spectral energy density, whose limits reproduce Rayleigh–Jeans and Wien.
- Integrating over frequency yields Stefan–Boltzmann with , radiation pressure , and photon number .
- Thermodynamics closes: , , and adiabats const that cool the CMB as .
- Key idea: set in the Bose–Einstein occupation because photons are not conserved; everything — Planck's law, , — then follows from counting field modes and integrating.
Set in the Bose–Einstein occupation because photons are not conserved; everything — Planck's law, the energy density, and — then follows from counting field modes and integrating.
Where this lives today
The photon gas is not a historical relic — it is working infrastructure. The cosmic microwave background is the most precisely measured blackbody in nature: COBE/FIRAS found its spectrum Planckian to a few parts in at K, and the tiny anisotropies map the seeds of every galaxy. In astrophysics, the radiation pressure sets the Eddington luminosity that caps how bright a star can shine before its own light blows it apart, and it supports the cores of the most massive stars against gravity. On the laboratory bench, because a cavity's spectral radiance depends only on , blackbody radiation is an absolute, material-independent thermometer — the basis of non-contact pyrometry, the calibration of infrared cameras, and, since the 2019 SI redefinition fixed and exactly, of primary temperature metrology itself.
The physical picture
Picture the cavity field as an infinite orchestra of independent oscillators, one per standing-wave mode. At temperature each oscillator is thermally excited to a mean energy . The low-frequency instruments () play loudly and classically, carrying each; the high-frequency instruments () are frozen silent, because exciting even one photon there costs more than the thermal budget . The balance point is the Planck peak — and the frozen high-frequency modes are exactly what save the total energy from the classical ultraviolet catastrophe. The chemical potential vanishes because the cavity can always lower its free energy by adjusting . Equilibrium with the walls fixes and but lets the photon number float; photons cost no rest energy to create, so self-adjusts until . This is the one structural fact that separates the photon gas from a conserved-number atomic Bose gas — and the reason ordinary blackbody photons never Bose-condense. The hero figure below is the Planck spectrum at three temperatures. Read three things off it: the low-frequency rise (Rayleigh–Jeans), the exponential Wien cutoff at high frequency, and the peak sliding rightward and the whole area (the total energy density) swelling as — a modest temperature increase makes the furnace vastly brighter and bluer at once.
The second picture is the mode-counting and pressure story. Each allowed wavevector occupies a cell of volume in -space; a thin shell of radius holds modes, and with two transverse polarizations and this becomes the density of states . The pressure factor is pure geometry: photons carry momentum , and a wall feels the flux averaged over directions, .
The core equations
The starting point is the one thing statistical mechanics supplies that quantum mechanics does not fix on its own: the value of the chemical potential. Because the cavity walls create and destroy photons at no rest-energy cost, the equilibrium state minimizes the free energy over the photon number itself.
where: — chemical potential of the photon gas; — Helmholtz free energy; — total photon number, itself a free variable. The vanishing is exact and temperature-independent — it is the defining property that makes the photon gas the cleanest of all quantum gases, and the reason no fugacity ever appears. With , the mean occupation of a mode is the Planck factor. This single-mode result is owned by the quantum-mechanics track (aq-qm-blackbody-radiation-planck-quantum); we quote it and build on it rather than re-deriving it.
where: — mean photon number in a mode of frequency ; — photon energy. At low frequency (many photons per mode, classical); at high frequency (mode almost empty). To turn one mode into a spectrum we need the density of modes. Counting wavevectors in -space, including the factor 2 for the two transverse polarizations and the linear dispersion , gives a density of states rising as .
where: — number of field modes per unit angular frequency; — cavity volume; — speed of light. The growth (not the of massive particles) reflects the linear photon dispersion; it is the same "pure wave geometry" the QM owner keeps intact. Multiplying energy per photon, occupation, and mode density gives Planck's spectral energy density — the curve plotted above.
where: — energy per unit volume per unit angular frequency. The numerator is mode-count photon-energy; the Bose denominator is the quantized occupation. This is Planck's 1900 law, the historical birthplace of the quantum. Integrating over all frequencies collapses the spectrum to a single power law — the Stefan–Boltzmann result. The temperature dependence factors out completely, leaving a pure number (a Bose integral) times .
where: — total internal energy; — radiation constant, . Four powers of : three from phase space () and one from the energy of each active mode. The equation of state is what most sharply separates radiation from an ordinary gas. Because photons are ultrarelativistic (), the pressure is one third of the energy density, not two thirds.
where: — radiation pressure. The is the hemisphere average combined with ; contrast the non-relativistic . At fixed this pressure is independent of volume — unlike . The radiant power leaving a black surface follows from the energy density by a geometric factor , giving the familiar Stefan–Boltzmann constant.
where: — radiant exitance (power per unit area of a black surface); . This constant is, in the QM owner's phrase, just ", , and in a trench coat" — no new constant of nature. Finally the caloric quantities. Differentiating and integrating the energy gives an entropy and heat capacity that both scale as , and a photon number that also scales as .
where: — entropy; — heat capacity at constant volume; . As every one of these vanishes, so the third law is manifest — there is nothing left to excite in an empty cavity at absolute zero.
The goal is to assemble Planck's spectral energy density from three ingredients and then check that it reduces to the two known classical limits. We combine the QM-owned single-mode occupation (at ) with the photon density of states, forming the energy in a frequency shell as (number of modes) (energy per photon) (mean occupation). The subtlety to watch is that the density of states here grows as because the dispersion is linear — a massive gas with would give instead, and a completely different spectrum. Success is recovering Rayleigh–Jeans at low and Wien at high from one formula.
Step 1. Write the energy in modes with frequency in : . Why: each mode carries energy times its mean occupation, and there are modes in the shell.
Step 2. Insert the Planck occupation (2) and the density of states (3): . Why: the occupation is QM-owned (aq-qm-blackbody-radiation-planck-quantum, "the mean number of quanta in the mode"); the mode density is the standing-wave count with two polarizations.
Step 3. Divide by to get the spectral energy density:
Why: this is Planck's law (4). The peak sits where , i.e. , giving — Wien's displacement.
Step 4. Low-frequency limit (): expand , so . Why: this is Rayleigh–Jeans — classical equipartition, -free, and it diverges on integration. The ultraviolet catastrophe is real; quantization cures it by freezing the high-frequency modes.
Step 5. High-frequency limit (): the is negligible, so . Why: exponential suppression makes the frequency integral converge — Wien's empirical law, recovered when . *Verified: the Wien peak and both classical limits are checked numerically in verify_photon-gas-planck-radiation.py.*
Go deeper · Derivation B · 1 minStefan-Boltzmann law by frequency integration
The goal is to integrate the Planck spectrum over all frequencies and obtain the total energy density , with the radiation constant expressed in fundamental constants. The strategy is a dimensionless substitution that pulls every factor of out front, leaving a pure number — the Bose integral . The one slip to avoid is dropping the : the integral is a standard form, and the same integral is evaluated by the QM owner for exactly this photon gas, so our value must match theirs.
Step 1. Integrate the spectral density over all frequencies: . Why: total energy density is the spectrum summed over its whole support; photons have no frequency ceiling, so the range is .
Step 2. Substitute , so :
Why: four powers of come out — three from and the visible one — leaving a pure number.
Step 3. Evaluate the standard Bose integral:
Why: expanding and integrating term by term gives at ; , . This is the identical integral aq-qm-blackbody-radiation-planck-quantum evaluates for the same gas — the seam check.
Step 4. Collect: , and the emissive power is . Why: identifying the prefactor as finishes Stefan–Boltzmann; the is the geometric conversion from energy density to one-sided flux. *Verified: and reproduced from to CODATA precision, and confirmed, in verify_photon-gas-planck-radiation.py.*
Go deeper · Derivation C · 1 minThermodynamics: the 1/3 pressure, entropy, and adiabats
The goal is to derive the equation of state , the entropy , and the adiabatic law const from the grand potential of the massless Bose gas. The clean route is ; integrating by parts converts the logarithm into the energy integral and produces exactly, whence . The number is set entirely by the linear dispersion — the same antiderivative that a massive gas would replace by a different power. Success is a closed thermodynamics with a manifest third law.
Step 1. Write the grand potential of the photon gas (, two polarizations): . Why: for bosons ; converting the sum to a frequency integral introduces the density of states.
Step 2. Integrate by parts with (so ); the boundary term vanishes at both ends, leaving
Why: the surviving integral is exactly the total energy ; the comes entirely from the antiderivative of .
Step 3. For a homogeneous system , so . Why: this is the ultrarelativistic equation of state; a non-relativistic gas () would give and instead.
Step 4. Entropy from with : , and . Why: differentiating the potential; as , , so the third law holds automatically.
Step 5. Adiabat: const gives const, and with eliminating yields const. Why: the photon gas has adiabatic index ; this governs CMB cooling, . *Verified: , the symbolic for photons versus for a massive gas, and with are all checked in verify_photon-gas-planck-radiation.py.*
Limiting cases
The single Planck spectrum interpolates between two classical laws and obeys one scaling relation.
| Case | Result | Meaning |
|---|---|---|
| Rayleigh–Jeans () | Classical equipartition, per mode; diverges — the ultraviolet catastrophe. | |
| Wien () | High modes frozen; exponential cutoff makes the total energy finite. | |
| Wien displacement | ; m K | Spectral peak shifts linearly with ; solves in , in . |
| Equation of state | Ultrarelativistic; at fixed , pressure is independent of . | |
| Non-relativistic contrast | Same geometry, but — the source of versus . |
Worked examples
1 · The Stefan-Boltzmann constant and the Sun's surface flux (confidence builder)
Step 1. Assemble from fundamental constants: . Plugging , , gives — matching the measured Stefan–Boltzmann constant, with no adjustable parameter.
Step 2. The Sun's effective temperature is K. The surface radiant exitance is .
Step 3. Evaluate , so .
Step 4. Sanity check: multiply by the solar surface area to get the luminosity W — the measured solar luminosity. The furnace formula, fed only and the surface temperature, reproduces the Sun's power output.
2 · Radiation pressure and photon number in the cosmic microwave background (exam level)
Step 1. The CMB is a photon gas at K. Its energy density is with : .
Step 2. The radiation pressure is one third of this: — utterly negligible today, but in the radiation-dominated early universe (when was times larger, so was times larger) it drove the expansion.
Step 3. The photon number density is . Compute , cube it to .
Step 4. Multiply by : . There are roughly 411 relic photons in every cubic centimetre of the universe — about a billion for every atom.
Origins · 1 minPhoton and how this was discovered
The word "photon" was coined by the chemist Gilbert N. Lewis in a 1926 letter to Nature, though the object long predates its name. Planck (1900) quantized the exchange of energy between cavity walls and field but resisted the idea that light itself is grainy; Einstein (1905) took the decisive step, treating radiation as a gas of energy quanta to explain the photoelectric effect, and (1917) derived the A and B coefficients that fix emission and absorption rates. The photon gas thus sits at the confluence of thermodynamics, electromagnetism, and quantum theory — the first system where "counting states" and "quantizing energy" had to be done together.
Going further
References. Pathria & Beale, Statistical Mechanics, 3rd ed., §7.3–7.4 (Black-body radiation) · Kardar, Statistical Physics of Particles, Ch. 7 · Reif, Fundamentals of Statistical and Thermal Physics, §9.13–9.15 · Landau & Lifshitz, Statistical Physics Part 1, §63 · Sethna, Statistical Mechanics: Entropy, Order Parameters, and Complexity, Ch. 7.
Provenance. Equations and limits cross-checked against Pathria & Beale §7.3–7.4, Kardar Ch. 7, Reif §9.13–9.15, and Landau–Lifshitz §63. The single-mode occupation and mode count are owned by aq-qm-blackbody-radiation-planck-quantum; the A/B emission mechanism by aq-qm-spontaneous-emission-einstein-coefficients. A verifier should recompute: (i) the density of states with polarization factor 2 and linear dispersion; (ii) the Bose integral ; (iii) the constants and (CODATA); (iv) the Wien peak ; (v) the photon number density .
Builds on: Quantum Statistics of Ideal Gases: Occupation Numbers · Density of States for Free Particles · Bose-Einstein Condensation in the Ideal Gas · Blackbody Radiation and the Planck Quantum (QM) · Spontaneous Emission and the Einstein Coefficients (QM). Leads to: Debye Model of Solids · Cosmic Microwave Background · Thermodynamics of the BEC Transition.
Why exactly is the chemical potential of the photon gas zero, and not just small?
It is exactly zero, and the reason is a conservation law that is absent. Ordinary particles are conserved, so their number is fixed and adjusts to enforce it. Photons are freely created and absorbed by the cavity walls, so is not fixed — it is a free variable that the system relaxes to minimize the free energy. The minimum of at fixed occurs where , and that derivative is the chemical potential. So is exact and temperature-independent, not an approximation.
If I open a hot oven, why does everything inside glow the same colour regardless of what it is made of?
Because the equilibrium radiation inside a cavity depends only on the temperature, never on the wall material — a result Kirchhoff proved in 1859. Any surface that absorbs strongly at a frequency must, in equilibrium, emit equally strongly there (otherwise it would heat up or cool relative to the field), so a good absorber is a good emitter and every object approaches the same universal blackbody spectrum. That universality is what makes the Planck curve a temperature standard: the colour tells you and nothing else.
The article says the mode count is owned by the quantum-mechanics track. What does statistical mechanics actually add?
Quantum mechanics (aq-qm-blackbody-radiation-planck-quantum) supplies two things per mode: the classical count of standing waves and the quantized mean occupation . What statistical mechanics adds is the step from one mode to the whole field as a thermodynamic body. That means fixing (the number is not conserved), integrating over all frequencies to get , and deriving the pressure, entropy, and adiabats. The occupation is quantum; the thermodynamics of the ensemble of modes is ours.
Why is the radiation pressure while an ordinary gas gives ?
It comes down to the dispersion relation. For any gas, the grand potential of massless-or-massive bosons integrated by parts gives where the single-particle energy scales as in dimensions. Photons have (, ), giving and . A non-relativistic gas has (), giving and . Equivalently, the wall feels the momentum flux averaged over directions, . The exponent in the dispersion is literally the numerator of the pressure fraction.
Does the ultraviolet catastrophe mean classical physics is simply wrong here?
The Rayleigh–Jeans law is not garbage — it is the exact low-frequency limit of Planck's law and is still used as the "brightness temperature" formula in radio astronomy. What fails is extrapolating it to all frequencies: classical equipartition assigns to every mode, and since there are infinitely many high-frequency modes, the total energy diverges. Quantization fixes this by making high-frequency modes expensive — exciting one costs , so they stay empty and the integral converges. The catastrophe is real; it is the sharpest early evidence that energy exchange is quantized.
How can there be so many CMB photons — 411 per cubic centimetre — yet the radiation pressure be negligible?
Number density and pressure measure different things. The photon number density is large because the wavelengths are long (millimetre-scale) so many modes fit in a small volume. But each CMB photon carries a tiny energy eV, so the energy density is minuscule, and the pressure with it. In the early universe the same scaling made both enormous — at recombination ( K) the energy density was times today's, and radiation pressure genuinely governed the dynamics.
Why does the Debye model of solids reuse the photon-gas mathematics?
Because lattice vibrations (phonons) are also number-non-conserving bosons with an approximately linear dispersion . Replace the speed of light by the sound speed , use three polarizations (two transverse, one longitudinal) instead of two, and impose a high-frequency Debye cutoff (a crystal has a finite number of modes, unlike the field), and the identical mode-counting gives the Debye heat-capacity law at low temperature. The photon gas is the template; the Debye solid is the same calculation with a ceiling — which is why aq-sm-debye-model-phonons builds directly on this article.