Why does a gas spread through an available container? One part of the answer is counting: a nearly uniform macrostate can be realized by vastly more microstates than a macrostate with every particle crowded into one corner. Boltzmann's entropy formula turns that multiplicity into entropy. The useful insight is that a large entropy measures how many microscopic realizations fit a specified macroscopic description, rather than how untidy a picture looks.
For a specified macrostate containing accessible, equally likely microstates, write
Here is the Boltzmann constant, and is the natural logarithm, also written in this article's title. The count is dimensionless; entropy has units of energy divided by temperature. Always specify the macrostate, the constraints and the model's microscopic resolution before counting. A microcanonical ensemble provides a familiar equilibrium setting for the equal-probability assumption. [ref]
The natural logarithm compresses an enormous count into a manageable number and makes products of counts into sums of entropies; see additivity of Boltzmann entropy. With this counting convention, one allowed microstate has zero Boltzmann entropy. This zero refers to the chosen model and resolution; it does not by itself assign an absolute entropy to a real material.
A single photon thermalized in a macroscopic body adds energy . If its heat capacity is sufficiently large that the temperature change is negligible, the entropy increase is . The Boltzmann entropy then gives the displayed ratio of accessible microstates. The exponential can be enormous even though the deposited energy is macroscopically tiny.
The part of entropy associated with the number of distinct spatial or occupancy arrangements consistent with chosen macroscopic constraints. For equally weighted configurations, the Boltzmann entropy formula gives the displayed expression. Unequal probabilities require over configurations. For indistinguishable empty sites among otherwise occupied sites, . Vibrational or internal degrees of freedom can contribute additional entropy even at fixed site arrangement.
Randomly distributing species with equal fractions over sites gives . Stirling approximation gives , or per mole of sites. Configurational entropy alone does not decide whether a multicomponent alloy is a stable single thermodynamic phase.
Take distinguishable, labeled particles and two boxes of equal volume. Retain only whether each particle is in the left or right box: use a bit for left and for right. Each length-20 string is one coarse microstate of this toy model. Assume the labels make independent side choices with equal probability, so the strings are equiprobable. Equal volumes motivate these weights for noninteracting particles with no preference for either box; equal volumes alone would not establish them for an arbitrary interacting gas.
Now retain only the number in the left box as the macrostate. Choosing which labels are left gives a binomial coefficient, so
The factorials count assignments to labels; the probability of a macrostate sums the probabilities of its constituent microstates. This is the binomial distribution with parameters and . The same binomial coefficient appears in the counting of distinguishable two-level systems, although here the macrostate records occupancy rather than energy. [ref]
The largest binomial coefficient occurs at , the balanced macrostate. All-left means and supplies just one string. Thus
There are balanced strings for every all-left string, even though each individual string has the same probability. Exact balance has about of the total probability; equilibrium reasoning concerns the many macrostates near balance too, rather than certainty of exactly ten particles on each side. The diagram compares the counts with their natural logarithms.
Figure 1.
Counts and Boltzmann entropies of the occupancy macrostates of twenty labeled particles
. Details.
Four fair, independent coins give a smaller worked example with the same binomial distribution. If is the number of heads, the five macrostates contain respectively microstates. Their probabilities are respectively . In particular, two heads is one macrostate containing six ordered coin sequences, with Boltzmann entropy in this counting analogy. A prescribed ordered sequence has one realization. The next diagram enumerates the same sixteen strings as left/right assignments.
In Boltzmann entropy of a two-box occupancy, impose an initial restriction that all labels are left. There is one allowed coarse microstate. Remove that restriction, allowing all occupancy values: the allowed set is now the union of every occupancy macrostate, containing strings. If the final description assigns equal probability to this whole set, its Boltzmann entropy change is
The counting identity is the binomial theorem. For twenty labels, . This final description fixes neither box occupancy; it is coarser than the particular macrostate , whose Boltzmann entropy is . The two counts answer different questions, so substituting the balanced macrostate for the full allowed set would change the calculation.
For four labels, the initial all-left string is 0000; removing the restriction makes all sixteen strings available. The column has only six strings. Accordingly, the whole allowed set has Boltzmann entropy , while the balanced macrostate has Boltzmann entropy .
Figure 1.
Sixteen configurations of four labeled particles grouped by left occupancy, compared with the all-left restriction
. Details.
Removing a barrier changes the allowed set immediately, but it does not instantaneously randomize the actual probability distribution. Motion and equilibration must make those configurations accessible. The counting result illustrates the configurational contribution to free expansion; it does not describe the relaxation time or every contribution to the entropy of a real gas.
For two subsystems with independently specified macrostates, suppose every allowed microstate of can be paired with every allowed microstate of . Their allowed set is a Cartesian product. With equal probability for each pair, Boltzmann's entropy formula gives
For example, take two independent copies of the toy model, each with two labels choosing between its two boxes. Each copy has four configurations and Boltzmann entropy . Combining their independent labels gives sixteen configurations and Boltzmann entropy . This explains why entropy adds even though microscopic counts multiply. [ref]
The product assumption matters. A constraint shared between the subsystems can forbid some pairs; for example, fixing only their combined energy generally requires summing over its possible divisions. See entropy maximization under thermal contact for how thermal equilibrium selects the dominant division. Statistical independence cannot be inferred merely from drawing a boundary between two parts.
The strings in Boltzmann entropy of a two-box occupancy are complete microstates only within the binary toy model. They retain a coarse-grained variable for each particle and omit its exact position within a box and its momentum. An actual classical gas instead occupies continuous phase space; obtaining a dimensionless count from a phase space volume requires a specified cell convention and the appropriate treatment of particle identity. A quantum state count must respect the allowed quantum states and quantum statistics. Thus is not a general count of microstates for a gas obeying quantum ideal-gas statistics. [ref]
For a discrete probability distribution with unequal weights, use the existing Gibbs entropy article; its equal-weight case gives Boltzmann's entropy formula. Shannon entropy uses the corresponding information measure, with the logarithm base setting its units. A count alone cannot replace the specified probability distribution, as the Boltzmann distribution examples demonstrate. [ref]
Overwhelming multiplicity explains why thermodynamic equilibrium is overwhelmingly probable in macroscopic systems under the appropriate statistical assumptions. It does not make low-entropy thermal fluctuations logically impossible. Nor does counting alone derive irreversible macroscopic evolution: one also needs dynamics, an initial preparation, and a reason the system samples the allowed microstates on the timescale of interest. [ref]
Historically, Boltzmann's 1877 paper counted microscopic arrangements, called complexions, and related the natural logarithm of their number to entropy. The Sharp and Matschinsky translation appeared in Entropy 17 (2015), pages 1971–2009, DOI 10.3390/e17041971. Its notation differs from ours: Boltzmann's permutability measure is already logarithmic, whereas here is the count. [ref] Josiah Willard Gibbs's Elementary Principles in Statistical Mechanics (1902) developed the statistical ensemble framework; Chapter XIV compares several statistical definitions of entropy with thermodynamics. [ref] [ref]

Articles by others on the same topic (1)

Boltzmann's entropy formula is a fundamental equation in statistical mechanics that relates the entropy \( S \) of a system to the number of microstates \( \Omega \) associated with that system. The formula is expressed as: \[ S = k \ln \Omega \] where: - \( S \) is the entropy of the system. - \( k \) is Boltzmann's constant (\( k \approx 1.