For distinguishable noninteracting spins, let a fraction occupy the level and the remainder occupy . The Stirling formula gives
The relation yields
Positive temperature corresponds to ; a population inversion has negative temperature.
The microcanonical ensemble describes an isolated system at fixed energy, volume and particle number. The canonical ensemble describes fixed particle number and volume with heat exchange at a prescribed temperature. The grand canonical ensemble additionally allows particles to exchange with a reservoir, prescribing temperature, volume and chemical potential. Their respective equilibrium probabilities are uniform on the accessible energy shell, proportional to , and proportional to . For stable short-range systems in the thermodynamic limit, concentration of relative energy and particle-number fluctuations and concavity of entropy make their bulk predictions equivalent; phase coexistence or nonadditive interactions require care.
For the microcanonical case restrict the allowed states to the fixed-energy shell of size , imposing outside it. Maximize the Gibbs entropy subject to . A Lagrange multiplier gives on the shell, so
For the canonical case impose both normalization and . Stationarity of gives . Thus
The last identification follows from . Entropy is strictly concave in the probabilities, so these stationary distributions are maxima.
For the independent three-level particles, put and . The full partition function is because the particles occupy labeled lattice sites. Differentiation gives
The heat capacity also equals , confirming positivity. As , the three occupations become equal:
As , all particles occupy their unique lowest state:
A negative temperature is possible because the total energy is bounded above. An equilibrated population inversion has more particles at than at . For example probabilities correspond to and mean energy . This is a macroscopic occupation pattern; an isolated individual microstate is not itself assigned a temperature. At the positive zero-temperature limit the ground state is unique, so the entropy tends to zero: the system obeys the third law of thermodynamics. The negative-temperature branch likewise approaches the unique highest-energy state as ; it does not introduce residual ground-state entropy.
Let two systems exchange energy inside an otherwise isolated composite system, so is fixed. By the Second law of thermodynamics, equilibrium maximizes the total entropy
At an interior maximum,
Thus , which is entropy maximization under thermal contact and the condition for thermal equilibrium.
Stability requires this entropy maximum to be locally strict, so each ordinary subsystem has a concave entropy-energy relation. Since
one has , or equivalently
This is the entropy concavity and positive heat capacity criterion.
Now let and . Because the spins are distinguishable, the number of microstates is the binomial coefficient
The Boltzmann entropy and the Stirling formula give, to leading order for large ,
The total energy is
Therefore
Solving for the up-spin fraction gives the independent spin-one-half two-level system result
For ordinary positive absolute temperature,
with as and as . Since the spectrum is bounded above, the population-inverted range is also mathematically possible and corresponds to negative temperature; is the infinite-temperature state.
Substitution gives
and direct differentiation yields
Thus the energy increases with temperature throughout either finite-temperature branch, in particular throughout the required positive-temperature range.
Because the one-particle spectrum is bounded above, a negative temperature is possible. A population-inverted configuration with more particles in the level than in the level has
which requires . Equivalently, above the maximum-entropy energy , adding energy reduces the number of compatible microstates, so . The limiting configuration with every particle at has , zero entropy, and .
Immediately after the reversal the state populations have not changed, but the new Hamiltonian satisfies
Thus
so the same state is canonical for the reversed field with
This is the magnetic-field reversal and negative temperature construction. Since
the partition function is unchanged. Therefore
A gas has kinetic energy unbounded above. Its partition function diverges for , so it cannot have a normalizable negative temperature canonical state and cannot satisfy the zeroth-law equilibrium condition .
If an amount flows from the spins into a positive-temperature gas, the total entropy change is
The second law therefore selects heat flow
This is the general ordering expressed by heat flow from negative to positive temperature.
Specify the magnetic coupling before fixing its sign: let the magnetic moment be , where is a signed gyromagnetic ratio. The Zeeman effect gives . For spin one-half, , so with and ,
This is the quantum Gibbs state. Its eigenvalues are , so its purity is . For nonzero level splitting it approaches a pure state as : positive inverse temperature selects the lower energy, while negative inverse temperature selects the upper one. It is a maximally mixed state at , including infinite temperature or zero magnetic splitting. At zero field the Gibbs state remains ; lowering temperature alone does not select a unique pure state from that degeneracy.
Negative temperature is meaningful for an internally equilibrated spin sector with a bounded energy spectrum and population inversion. It must be sufficiently isolated from unbounded motional degrees of freedom: the oscillator's unbounded spectrum, for instance, makes its partition sum diverge at negative inverse temperature. The two-level spin partition sum itself stays finite for either sign.
For , the quantum Gibbs state is diagonal in the basis. Its two probabilities are proportional to . Thus
At small inverse temperature, . As a function of , the normalized spin component is the smooth odd curve : it crosses zero at and saturates at . As a function of its direction is reversed if . For , positive temperature favors , while negative temperature gives the inverted population.
Figure 1.
Thermal spin one-half polarization versus dimensionless inverse temperature
. Original plot of , with . For , the negative- half corresponds to negative temperature. Dashed lines mark the fully polarized limits. Details.
Temperature Created 2026-09-24 Updated 2026-10-18
Temperature labels thermal equilibrium: two internally equilibrated bodies have the same temperature when contact permitting only heat exchange produces no net heat transfer. The zeroth law of thermodynamics makes the comparison transitive. If bodies A and B separately reach thermal equilibrium with the same thermometer without appreciably disturbing either body, they agree with each other. This is what lets a gas thermometer compare a metal block with water, despite their different internal energies and heat capacities. Insulation alone makes no such comparison: it can prevent heat transfer between bodies at different temperatures. [ref]
The zeroth law of thermodynamics establishes equality comparisons, but does not choose a numerical scale. Thermodynamic temperature supplies an absolute scale consistent with Carnot's theorem and entropy. For a simple compressible system at thermodynamic equilibrium with fixed particle number and composition,
Here is internal energy, is entropy, and is volume; the second equality assumes the derivative can be inverted. Temperature is a thermodynamic conjugate variable to entropy and belongs to the intensive and extensive thermodynamic quantities as an intensive quantity. Its partial derivative tells us how much internal energy must change per unit change of entropy under the stated constraints. More general systems require their other mechanical and material variables to be held fixed too. [ref]
For an infinitesimal quantity of heat transferred from A to B, with no work or matter exchange, the equilibrium entropy changes give
For ordinary positive temperatures, spontaneous heat transfer from increases total entropy; thermal equilibrium has . This comparison uses changes in entropy, rather than the total internal energy contained in either body. A small hot object can have less internal energy than a large cool one. See entropy maximization under thermal contact for the equilibrium criterion and negative temperature for the special case of bounded energy spectra.
Express absolute thermodynamic temperature in kelvin, and a Celsius reading in degree Celsius:
The offset is exact: corresponds to , and to . Their absolute temperature ratio is ; dividing their Celsius readings gives a different number. Thus gas thermometer pressure ratios and Carnot's theorem require thermodynamic temperature. The modern SI definition of the kelvin fixes the Boltzmann constant ; a reference bath realizes or transfers the scale rather than defining that constant.[ref]
Temperature is not universally the mean kinetic energy of a particle. In a classical, nonrelativistic ideal gas at thermal equilibrium, the equipartition theorem gives the mean translational kinetic energy relative to the gas's bulk motion:
Here is particle mass, its velocity, and the mean flow velocity. In this regime, different particle masses at the same temperature have equal mean translational kinetic energies but different characteristic speeds. A moving gas can also carry bulk kinetic energy without being hotter in its rest frame. Internal molecular modes and quantum statistics require further care; the equipartition theorem has classical assumptions, whereas the equilibrium entropy definition applies more widely. [ref]