Statistical vs Thermodynamic Entropy

Melt an ice cube and its entropy rises. Thermodynamics tells you how much, from heat and temperature. It never tells you why the liquid is more disordered at the molecular level. Ludwig Boltzmann answered that question. He connected the macroscopic entropy of classical thermodynamics to the number of microscopic arrangements consistent with a given macroscopic state. This bridge, carved on his tombstone in Vienna as S=kln⁡WS = k \ln W, is one of the most consequential equations in science. This article builds the Boltzmann relation from the ground up. You will see what WW actually counts. Then you will connect it to the Clausius definition of entropy. Finally you will apply it to real numbers, including residual entropy in crystals, and see where the analogy to "disorder" breaks down.

Key takeaways
  • Boltzmann entropy: S=kln⁡WS = k \ln W, where WW is the number of microstates consistent with a given macrostate.
  • Thermodynamic (Clausius) entropy is defined from heat and temperature: dS=dqrev/TdS = dq_{rev}/T.
  • The two definitions agree numerically and conceptually; statistical mechanics explains why the thermodynamic laws hold.
  • Larger WW means more ways to arrange energy and particles, so entropy measures multiplicity, not literal "messiness."
  • Boltzmann's constant k=1.381×10−23 J K−1k = 1.381 \times 10^{-23}\ \text{J K}^{-1} converts a dimensionless count into joules per kelvin.
  • Key idea: entropy is a measure of the number of equivalent microscopic ways a system can realize one observable macroscopic state.
The core insight

Entropy is not a substance or a measure of chaos; it is kln⁡Wk \ln W, a precise count (via Boltzmann's constant) of how many indistinguishable microscopic configurations produce the same macroscopic description, so that systems evolve toward the macrostate that can be realized in overwhelmingly more ways.

The physical picture

Consider a macroscopic sample: a mole of gas, a crystal, a beaker of solution. Thermodynamics describes it with a handful of variables — TT, PP, VV, nn — the macrostate. But at any instant the system also has a precise microscopic configuration: which atom has which position and momentum, which spin points which way. This is the microstate. Enormously many microstates correspond to the same macrostate, because swapping the labels on two identical, indistinguishable gas molecules with the same speeds changes nothing observable. Boltzmann's insight was that the macroscopic property we call entropy is proportional to the logarithm of WW, the number of microstates compatible with a given macrostate. A gas confined to half a box has far fewer accessible microstates than the same gas free to roam the whole box — after all, every molecule's position is restricted. When the partition is removed, the number of accessible microstates increases enormously, so WW increases, and so does SS. Nothing has to be "pushed" toward disorder; the system simply spends essentially all its time in whichever macrostate has overwhelmingly the largest WW, because that macrostate is so much more probable. The word "disorder" is only a loose metaphor. What is really being counted is multiplicity: the number of distinguishable ways of distributing energy quanta, positions, or orientations among the particles while keeping the total energy, volume, and particle number fixed. A perfect crystal at absolute zero, with every atom in one unique ground-state arrangement, has W=1W = 1 and therefore S=0S = 0 — this is the microscopic content of the Third Law, developed fully in the next article.

Figure
Same macrostate, many microstates: gas expanding into vacuum
before: W small left half only, N = 5 molecules after: W much larger whole box accessible Removing the partition increases positional microstates, so S = k ln W increases
Figure
Distributing 4 quanta of energy among 3 oscillators: counting W
Macrostate: total energy = 4 quanta, 3 oscillators A, B, C Sample microstates (each a distinct way to split 4 quanta among 3 boxes): A=4,B=0,C=0 A=0,B=4,C=0 A=3,B=1,C=0 A=2,B=2,C=0 A=2,B=1,C=1 A=1,B=1,C=2 ... and more Total number of distinct arrangements: W = C(4+3-1, 3-1) = C(6,2) = 15 S = k ln 15 = 1.381e-23 J/K x 2.708 = 3.74e-23 J/K More quanta or more oscillators makes W — and S — grow rapidly.

The core relations

S=kln⁡WS = k \ln W

where kk is Boltzmann's constant (1.381 × 10⁻²³ J K⁻¹) and WW is the number of microstates for the given macrostate.

dS=dqrevTdS = \frac{dq_{rev}}{T}

where dqrevdq_{rev} is heat absorbed reversibly at temperature TT; this is the Clausius (thermodynamic) definition.

ΔSmix=−nR∑ixiln⁡xi\Delta S_{mix} = -nR \sum_i x_i \ln x_i

where xix_i are mole fractions of ideal gases mixed at constant T,PT,P; this is the entropy of mixing recovered from statistical counting.

Sm(0)=Rln⁡W0S_m(0) = R \ln W_0

where W0W_0 is the number of energetically equivalent ground-state arrangements per mole, giving residual entropy when W0>1W_0 > 1.

Derivation AFrom microstate counting to the entropy of mixing

Goal. Show that the statistical definition S=kln⁡WS = k \ln W reproduces the known thermodynamic result for mixing two ideal gases, confirming the two definitions describe the same physical quantity.

Step 1. Set up the counting problem. Take NAN_A molecules of gas A and NBN_B molecules of gas B, each initially confined to its own container of volume VV, then combined into a shared volume 2V2V at the same temperature and pressure. Before mixing, each gas occupies its own volume; after mixing, both gases share the full volume 2V2V.

Step 2. Relate volume accessible to number of microstates. For an ideal gas, the number of positional microstates available to NN molecules in volume VV scales as W∝VNW \propto V^{N} (each molecule's position can be assigned independently across the volume, to good approximation at low density). Expanding one component's accessible volume from VV to 2V2V therefore multiplies its WW by 2N2^{N}.

Step 3. Write the entropy change for each component. Using S=kln⁡WS = k \ln W,

ΔSA=kln⁡ ⁣(W2VWV)=kln⁡ ⁣((2V)NAVNA)=NAkln⁡2\Delta S_A = k \ln\!\left(\frac{W_{2V}}{W_V}\right) = k \ln\!\left(\frac{(2V)^{N_A}}{V^{N_A}}\right) = N_A k \ln 2

and similarly ΔSB=NBkln⁡2\Delta S_B = N_B k \ln 2 for gas B expanding into the shared volume.

Step 4. Generalize to arbitrary mole fractions. If instead of a 1:1 split the final mixture has mole fraction xA=NA/Nx_A = N_A/N and xB=NB/Nx_B = N_B/N with N=NA+NBN = N_A + N_B, each gas expands from its own partial volume xiVtotalx_i V_{total} into the full VtotalV_{total}, giving a factor 1/xi1/x_i rather than 22:

ΔSi=Nikln⁡ ⁣(1xi)=−Nikln⁡xi\Delta S_i = N_i k \ln\!\left(\frac{1}{x_i}\right) = -N_i k \ln x_i

Step 5. Sum over components and convert to molar quantities. Summing over all species and using Nik=niRN_i k = n_i R (since NAk=RN_A k = R per mole, with NAN_A Avogadro's number):

ΔSmix=−∑iniRln⁡xi=−nR∑ixiln⁡xi\Delta S_{mix} = -\sum_i n_i R \ln x_i = -nR\sum_i x_i \ln x_i

This is exactly the thermodynamic entropy of mixing derived earlier from the ideal-gas free energy — obtained here purely by counting microscopic spatial arrangements.

ΔSmix=−nR∑ixiln⁡xi , identical whether derived from dqrev/T or from kln⁡W\boxed{\Delta S_{mix} = -nR \sum_i x_i \ln x_i \ \text{, identical whether derived from } dq_{rev}/T \text{ or from } k\ln W}

Worked examples

Example 1 — Counting microstates for a tiny spin system. Consider 4 non-interacting magnetic dipoles, each either "up" or "down," with no external field (all arrangements have equal energy, so all are equally probable microstates of one macrostate: total system, unconstrained). Total number of microstates:

W=24=16W = 2^4 = 16

Boltzmann entropy of this macrostate:

S=kln⁡W=(1.381×10−23 J K−1)(ln⁡16)S = k \ln W = (1.381\times10^{-23}\ \text{J K}^{-1})(\ln 16)
ln⁡16=2.773\ln 16 = 2.773
S=1.381×10−23×2.773=3.830×10−23 J K−1S = 1.381\times10^{-23} \times 2.773 = 3.830\times10^{-23}\ \text{J K}^{-1}

Now restrict to the macrostate "exactly 2 up, 2 down." The number of ways to choose which 2 of the 4 spins are up is

W′=(42)=6W' = \binom{4}{2} = 6
S′=kln⁡6=(1.381×10−23)(1.792)=2.475×10−23 J K−1S' = k \ln 6 = (1.381\times10^{-23})(1.792) = 2.475\times10^{-23}\ \text{J K}^{-1}

Sanity check: W′=6<W=16W' = 6 < W = 16, so S′<SS' < S, as expected — restricting to a specific balanced macrostate excludes some microstates (like all-up or all-down) and lowers the count, even though "2 up, 2 down" is actually the single most probable outcome among all possible up/down counts for 4 spins. This distinction — most probable individual outcome versus total count over all outcomes — is exactly why real systems (with N∼1023N \sim 10^{23} spins) show such sharply peaked, reproducible macroscopic behavior: the most probable distribution utterly dominates the sum over all distributions.

Example 2 — Residual entropy of carbon monoxide, comparing statistical and calorimetric values. Solid CO has a small third-law "residual entropy" because the nearly symmetric CO molecule can sit in a crystal site as CO or OC with almost equal energy, so the crystal freezes in with essentially random orientation rather than achieving a unique order at absolute zero.

Statistical prediction. If each of the NAN_A molecules in one mole has 2 equally likely orientations, independent of its neighbors,

W0=2NAW_0 = 2^{N_A}
Sm(0)=Rln⁡2=(8.314 J K−1mol−1)(0.6931)=5.76 J K−1mol−1S_m(0) = R \ln 2 = (8.314\ \text{J K}^{-1}\text{mol}^{-1})(0.6931) = 5.76\ \text{J K}^{-1}\text{mol}^{-1}

Experimental comparison. The calorimetric (third-law) entropy of CO obtained by integrating Cp/TC_p/T from near 0 K up to the gas phase, and comparing with the entropy computed independently from spectroscopic/statistical thermodynamic data (which assumes perfect order at T=0T=0), shows a discrepancy of about

Sm(0)exp≈4.6 J K−1mol−1S_m(0)_{exp} \approx 4.6\ \text{J K}^{-1}\text{mol}^{-1}

Sanity check: the observed residual entropy (≈4.6 J K⁻¹ mol⁻¹) is smaller than the naive Rln⁡2=5.76R\ln 2 = 5.76 J K⁻¹ mol⁻¹ predicted for fully random, independent orientation, because real CO crystals have some residual short-range correlation between neighboring dipoles that slightly reduces the true count of accessible microstates below 2NA2^{N_A}. The order of magnitude and the very existence of a nonzero residual entropy, however, is exactly what the simple two-orientation counting model predicts — a clean, checkable link between S=kln⁡WS = k\ln W and calorimetry.

Limiting cases & common traps

SituationWhat happensWhy
Perfect crystal at T→0T \to 0 KW→1W \to 1, so S→0S \to 0Only one unique ground-state arrangement is accessible
Gas expanding into vacuumWW increases sharplyVastly more positional microstates become available
Frozen-in molecular disorder (CO, H2O\text{H}_2\text{O} ice)S(0)>0S(0) > 0Orientational choices get "locked in" before equilibrating, so W0>1W_0 > 1
Very large NNMost probable macrostate totally dominatesMultiplicities peak so sharply that fluctuations are unobservable
Comparing SS for two statesOnly ln⁡(W2/W1)\ln(W_2/W_1) mattersAbsolute WW is uncomputable for macroscopic systems; ratios are what count

The chemist behind it

Ludwig Boltzmann spent much of his career defending the atomic hypothesis against skeptical contemporaries (notably Ernst Mach and the energeticists) who doubted that atoms were real, physical entities rather than convenient bookkeeping devices. His statistical interpretation of entropy, developed through the 1870s–1890s, required accepting that gases really are collections of discrete, countable particles whose arrangements could, in principle, be enumerated. The formula S=kln⁡WS = k \ln W (the constant kk was named in his honor by Max Planck, who first wrote the relation in this precise form) turned the abstract, purely macroscopic entropy of Clausius into something with a concrete, calculable microscopic meaning. Boltzmann did not live to see atomic theory fully vindicated by Einstein's and Perrin's work on Brownian motion; he died in 1906, and the equation is engraved on his gravestone in Vienna's Zentralfriedhof.

Origins · 1 minLudwig Boltzmann and how this was discovered
LB
Ludwig Boltzmann
1844–1906 · linked microscopic particle arrangements to macroscopic entropy via S = k ln W

Ask the tutor: How does the Third Law reconcile perfect crystals with real substances that keep a nonzero residual entropy down to absolute zero?

Is W literally a number you can compute for a real sample of gas

In principle yes, in practice no. WW for a mole of gas is astronomically large — of order 10102310^{10^{23}} or larger — far beyond any numerical computation or even meaningful comparison to familiar numbers. What matters physically is never the absolute value of WW, but the ratio W2/W1W_2/W_1 between two states, since ΔS=kln⁡(W2/W1)\Delta S = k\ln(W_2/W_1) is what's measurable and what appears in every thermodynamic calculation. Statistical mechanics gives formulas (partition functions) for computing these ratios without ever evaluating WW itself.

Does S = k ln W apply only to isolated systems

The simplest form, with WW counted at fixed total energy, applies to an isolated system (the microcanonical ensemble). For systems in thermal contact with a bath at temperature TT (the canonical ensemble), entropy is instead computed from the partition function qq, via S=U/T+kln⁡qS = U/T + k\ln q for a single particle or the corresponding molar expression. These are equivalent, consistent formulations; the microcanonical picture is simply the most transparent way to first introduce the logic of S=kln⁡WS=k\ln W.

How does this connect to the Third Law of Thermodynamics

The Third Law states that the entropy of a perfect crystal approaches zero as T→0T \to 0 K. Statistically this is because a perfect, defect-free crystal in its unique lowest-energy configuration has exactly one accessible microstate, so W=1W=1 and S=kln⁡1=0S = k\ln 1 = 0. Real crystals sometimes retain small residual entropies (like CO or ice) because some disorder gets kinetically trapped before the system can fully order — this is explored in depth in the dedicated Third Law article.

Why is entropy of mixing always positive for distinguishable gases

Because combining two initially separated gases strictly increases the number of accessible positional microstates: molecules of each species now have access to the entire combined volume rather than just their original share. Since ln⁡xi<0\ln x_i < 0 for any mole fraction xi<1x_i < 1, every term −nR xiln⁡xi-nR\,x_i\ln x_i is positive, so ΔSmix>0\Delta S_{mix} > 0 for any nontrivial mixture. This holds regardless of whether the gases interact, as long as they are genuinely distinguishable species.

Before this

Where this leads