TL;DR
When a small system sits in contact with a large reservoir of heat at temperature , the chance of finding it in a state with energy falls off exponentially as rises. Low-energy states are the most likely, and higher temperature flattens the preference, letting more of the system reach high-energy states.
This single rule sets the populations of atoms in a gas, the speeds of molecules, and the energy levels occupied in a laser.
Where you'll see it: working out how many atoms sit in an excited level of a gas at a given temperature, the rate of Stimulated Emission in a laser, and the probabilities behind the Metropolis sampling algorithm used in simulations.
Intuition
Picture a bowl with a few shelves at different heights. A jostled ball is most often found on the bottom shelf, because the shelves above cost energy to reach. Shake the bowl gently and nearly all the balls stay low. Shake it hard and a noticeable fraction gets up to the higher shelves. The shaking plays the role of temperature.
Molecules are the balls. They are constantly bumped by their neighbours and exchange energy with them. Because the exchange is random, no state is forbidden, but high-energy states cost more energy to occupy and so are visited less often. The question is how much less. The Boltzmann distribution answers it with one rule: the probability of a state drops by the same factor for every fixed extra amount of energy. Multiplying by a constant factor for each step up is exactly what an exponential function does (see Exponential Function), which is why the answer has that form.
The natural yardstick for "a fixed amount of energy" is the thermal energy , where is the Boltzmann constant. If a state sits one above another, it is about times as likely. If it sits five above, it is about times as likely. Temperature therefore sets the scale of energy at which a system starts to notice the higher shelves.
- two-state population
The math
Consider a system that can be in states , with energies . Let be its absolute temperature, measured in kelvin, and let joules per kelvin be the Boltzmann constant, which converts temperature into energy units.
The probability that the system is in state in thermal equilibrium at temperature is
where the normalisation constant , called the partition function, makes the probabilities add to 1:
The exponential is the Boltzmann factor. It is not a probability on its own, because the values do not sum to 1. Dividing by fixes that.
Ratios cancel the partition function
Take two states and . Dividing their probabilities cancels , which is often what you need in practice:
Only the energy difference matters, not the absolute energy. This is why population ratios are easy to estimate even when is hard to compute.
Limits
Three limits make the formula intuitive.
- Low temperature. As , the exponent for any state above the ground state becomes very large and negative, so all the probability goes to the lowest-energy state.
- High temperature. As , every exponent goes to 0, every factor goes to 1, and all states become equally likely.
- Equal energies. If , the ratio is 1, so degenerate states are equally populated.
The average energy follows from the same probabilities as . For two states it rises smoothly from the ground-state energy towards the midpoint of the two levels as increases.
Worked examples
Example 1: three levels, counted by hand
Take three states with energies , and , and choose the temperature so that . The ratio is then 1.
- Boltzmann factors: state 1 gives , state 2 gives , state 3 gives .
- Partition function: .
- Probability of state 1: .
- Probability of state 2: .
- Probability of state 3: .
- Check that they sum to 1: , which is 1 up to rounding.
Interpretation: about two thirds of the system is in the ground state, about a quarter in the first excited level, and only about one in eleven in the highest level. Each step up costs one and reduces the population by a factor of about , roughly 0.37, in the same way at each step.
Example 2: an excited level in a gas
Atoms in a gas have an excited state 0.10 electronvolts above the ground state. Room temperature is 300 kelvin. What fraction of atoms are excited? Assume only these two states matter.
- Thermal energy in electronvolts: .
- Ratio of energy gap to thermal energy: .
- Population ratio: .
- Fraction in the upper state: .
Interpretation: about 2 percent of the atoms are excited at room temperature. The gap is nearly four times the thermal energy, so the upper state is a rare visit rather than a common one. Raising the temperature to 1000 kelvin would make about 0.086 eV and the gap about 1.2 , so the excited fraction would rise to roughly 24 percent.
Tradeoffs and failure modes
The Boltzmann distribution is the right tool when the system is in thermal equilibrium with a much larger heat bath, and its energy levels are well defined. It fails or needs modification in several common situations.
| Situation | Problem | Better choice |
|---|---|---|
| System is isolated, with fixed total energy | Temperature is not fixed, so the canonical form does not apply directly | Use the microcanonical ensemble, which counts states with the given energy |
| Particles are identical quantum particles at high density | Counting treats particles as distinguishable and gets occupancies wrong | Use Fermi-Dirac Statistics for fermions or Bose–Einstein statistics for bosons |
| System is far from equilibrium, for example just after a sudden change | Populations may not follow the equilibrium formula at all | Model the time evolution directly, for example with rate equations |
| Energy levels are extremely dense or continuous | The sum for becomes an integral that is hard to evaluate | Use classical approximations, or Monte Carlo sampling |
| The energy scale is tiny compared with | All states are nearly equally populated, and the answer is close to a uniform distribution | The formula still holds, but it gives little information; check the energy gap first |
A common mistake is to use absolute energies without setting a zero point. The formula is only sensitive to differences, so any constant shift added to all energies cancels. A second mistake is to use temperature in degrees Celsius. The factor needs the absolute temperature in kelvin, so is 273.15 K, not zero.
History
Ludwig Boltzmann worked out the form of this distribution in the 1870s, as part of his effort to explain the second law of thermodynamics using the motion of atoms. He was building on James Clerk Maxwell's earlier work on the distribution of molecular speeds. Boltzmann's key step was to relate the probability of a state to its energy through an exponential, and to show that this form is stable in equilibrium.
The constant was named after him later, and its modern value is fixed exactly by the 2019 redefinition of the SI units. J. Willard Gibbs then put the framework into a general and systematic form in the early 1900s, and the partition function became the central object in statistical mechanics.
The idea caught on because it made thermodynamic quantities computable from microscopic energy levels. It is now used in chemistry, solid-state physics, astrophysics and, through the Metropolis algorithm, in computer simulation. Exact dates of the early work vary between sources, so treat the decade above as approximate.
Check yourself
QuestionRecall: why does the Boltzmann distribution contain a normalisation constant ?Show answer
The Boltzmann factors do not add up to 1 on their own. is their sum over all states, and dividing by it turns the factors into probabilities that sum to 1. does not change the relative sizes of the probabilities, so ratios of two states do not depend on it.
QuestionComputation: two states differ in energy by . What is the ratio ?Show answer
The ratio is . The upper state is about 0.135 times as likely as the lower one, or about 13 percent as likely.
QuestionWhy does raising the temperature make high-energy states more populated, while lowering it does the opposite?Show answer
The exponent shrinks in size as grows, because increases in the denominator. For a state with positive energy above the ground state, the exponent moves towards zero, and the Boltzmann factor moves towards 1. Higher temperature therefore gives energy states more similar weights. Lower temperature makes the exponent more negative for higher states, concentrating probability in the lowest ones.
QuestionApplied: a laser's gain medium needs more atoms in an excited state than in the ground state. Why can't a system in thermal equilibrium at a single temperature achieve this, and what does it imply?Show answer
At thermal equilibrium the ratio is always less than 1 for a positive energy gap, because the exponential is less than 1 for positive arguments. The upper state can never outnumber the lower state. A laser therefore needs a population inversion, which is a non-equilibrium state created by pumping energy into the system. The Boltzmann formula describes the system at rest, and the inverted state is one it is driven out of equilibrium to reach.