Find a course

Module 4: Entropy and the Second LawLesson 7 of 1115 min

Entropy: Counting the Ways

What entropy measures, how Boltzmann linked it to microstates, how to use ΔS = Q/T, and why heat flowing from hot to cold raises total entropy.

Step 1 of 11Learn

The movie played backward

Film an ice cube melting in a glass of lemonade, then play it backward. Water spontaneously gathers into a cube while the drink around it warms up. Nothing in that reversed film breaks the first law; energy is still conserved. Yet you instantly know it's backward, because it never happens.

The same goes for a dropped egg reassembling itself, perfume drifting back into its bottle, or a cold spoon making hot coffee hotter. The first law says which processes are allowed by energy accounting. It says nothing about which direction they go. For that, we need a new quantity: entropy.

Entropy is often described loosely as "disorder." That's a helpful first picture, but it can mislead. A better description: entropy measures how many microscopic arrangements are consistent with what we observe on the large scale, or equivalently, how spread out energy is among the available ways of storing it.

Processes run in the direction that increases the total number of possible arrangements, simply because there are overwhelmingly more of them. The ice melts because there are vastly more ways to share the energy among liquid water molecules in a warm drink than to keep it locked in a cold, ordered crystal next to warm lemonade.

Step 2 of 11Learn

Microstates and Boltzmann's formula

Toss four coins. The macrostate "two heads, two tails" can happen in 6 different ways (HHTT, HTHT, HTTH, THHT, THTH, TTHH). These specific arrangements are microstates. "Four heads" can happen in only 1 way. So a random toss is six times more likely to give 2 heads than 4 heads.

Now scale up. With 100 coins, there's 1 way to get all heads but about 1029 ways to get 50 heads. With the roughly 1023 molecules in a few grams of gas, the most mixed, most spread-out macrostates are so overwhelmingly more numerous that the system is essentially guaranteed to be found in them. Nothing forbids all the air molecules in your room from gathering in one corner; it's just so improbable that it would not be expected to happen in many times the age of the universe.

In the 1870s Ludwig Boltzmann connected this counting to thermodynamics:

S = k ln W

where S is entropy, k is Boltzmann's constant (1.38 × 10-23 J/K) and W is the number of microstates consistent with the macrostate. The logarithm means that combining two systems adds their entropies, just as multiplying possibilities adds logarithms. The formula is engraved on Boltzmann's tombstone in Vienna.

Entropy rises when a system gets more space (gas expanding), more energy to share (heating), more freedom (melting, boiling) or more ways to mix (dissolving).

Step 3 of 11Practice · Chart

Microstates for four coins

Each bar is a macrostate (number of heads); its height is the number of ways to get it. Out of 16 equally likely microstates, the mixed results dominate.

Tap the macrostate with the highest entropy.

Tap the bar that answers the question, then press Check.

Microstates for four coinsBar chart with 5 categories: 0 heads: 1; 1 head: 4; 2 heads: 6; 3 heads: 4; 4 heads: 1.02460 heads1 head2 heads3 heads4 heads14641
Microstates for four coins
ItemMicrostates
0 heads1
1 head4
2 heads6
3 heads4
4 heads1

Step 4 of 11Practice · Work it out

Six coins are tossed. In how many different ways (microstates) can the result be exactly 3 heads and 3 tails?

Step 5 of 11Learn

Entropy change from heat: ΔS = Q/T

Before Boltzmann, Rudolf Clausius defined entropy change in terms of heat. When a small amount of heat Q flows reversibly into a system at absolute temperature T:

ΔS = Q / T (units: J/K)

Why divide by T? Adding energy to a cold system makes a bigger relative difference to how its particles can be arranged than adding the same energy to a hot system that's already got plenty. A dollar means more to someone with ten dollars than to a millionaire.

Phase changes happen at constant temperature, so they're the easiest case. Melting 1.0 kg of ice at 0 °C (273 K) absorbs Q = m L = 334,000 J, so

ΔS = 334,000 / 273 ≈ +1,220 J/K.

Freezing the same water releases that heat, so its entropy falls by 1,220 J/K. That doesn't break any law; the heat goes into the surroundings and raises their entropy by at least as much.

When temperature changes during heating, you add up Q/T in small steps. For a substance with constant specific heat, that gives ΔS = m c ln(T2/T1). Heating 1 kg of water from 293 K to 373 K: ΔS = 4,186 × ln(373/293) ≈ +1,010 J/K.

Remember: T must be in kelvins. Dividing by 0 °C would make no sense at all.

Step 6 of 11Practice · Work it out

How much does the entropy of 0.50 kg of water change when it boils completely at 100 °C (373 K)? The latent heat of vaporization is 2,260 kJ/kg. Give your answer in J/K.

Step 7 of 11Learn

Why heat flows from hot to cold

Put a hot block (Th) in contact with a cold block (Tc) and let a small amount of heat Q pass from hot to cold. The hot block loses entropy Q/Th; the cold block gains Q/Tc. Since Tc is smaller than Th, the gain is larger than the loss:

ΔS(total) = Q/Tc − Q/Th > 0

Example: 1,000 J flows from a 400 K block to a 300 K block. The hot block's entropy falls by 1,000/400 = 2.50 J/K. The cold block's rises by 1,000/300 = 3.33 J/K. Total change: +0.83 J/K.

Now imagine the reverse: heat flowing from cold to hot on its own. The total entropy would fall by 0.83 J/K. That's what never happens spontaneously, and it's why the backward ice-cube movie looks wrong.

This gives the most general statement of the second law of thermodynamics: in any spontaneous process, the total entropy of an isolated system (or of a system plus its surroundings) increases. It can stay constant only in an idealized reversible process, and it never decreases.

Notice that the entropy of part of a system can go down, as when the hot block cools, as long as a larger increase happens somewhere else. Refrigerators, growing crystals and living organisms all lower entropy locally, while exporting more entropy to their surroundings as heat.

Step 8 of 11Diagram

Entropy bookkeeping when heat flows hot → cold

Entropy bookkeeping when heat flows hot → coldProcess diagram: Hot block loses Q/Th → Cold block gains Q/Tc → Tc < Th, so Q/Tc > Q/Th → Total entropy rises.Hot block losesQ/ThCold block gainsQ/TcTc < Th, soQ/Tc > Q/ThTotalentropy rises

Tap a shape with to see more.

Hot block loses Q/Th
Cold block gains Q/Tc
Tc < Th, so Q/Tc > Q/Th

Dividing the same Q by a smaller temperature gives a bigger number.

Total entropy rises

Reversing the flow would make the total fall, which the second law forbids.

Step 9 of 11Try the calculator

Entropy of heat flow

Heat Q passes from a hot reservoir to a cold one. Temperatures in kelvins.

Entropy change of hot reservoir
-2.5 J/K
Entropy change of cold reservoir
3.333 J/K
Total entropy change
0.833 J/K

Step 10 of 11Practice · True or false

When water freezes into ice in a freezer, entropy decreases, so the process violates the second law.

Step 11 of 11Practice · Choose one

In which of these processes does the entropy of the system decrease?