An explorable guide · made for Pawel

Entropy

entropy

Why coffee cools, why an egg won't unscramble, why time only runs one way, and what any of it has to do with your desk.

Every dot moves in a straight line and bounces off the walls. Drag the time slider back and they rebuild the word exactly, because the laws of motion work just as well in reverse. So why has nobody ever watched a real gas do that? That question is this whole page.

01Entropy is a count

Put "disorder" aside for a minute. Entropy counts something precise: how many ways the tiny parts of a thing can be arranged without changing how the thing looks from far away.

Physicists split every situation in two. The microstate is the full detail: which coin landed heads, where each molecule sits. The macrostate is the summary you'd actually notice: two heads out of four, a warm cup of coffee. Entropy measures how many microstates hide behind one macrostate.

Four coins, sixteen possible arrangements

Each column is one macrostate. The stacks are its microstates. Flip and watch which column wins.

"Two heads" wins because six of the sixteen arrangements belong to it, while "all heads" has exactly one. Every arrangement is equally likely; the columns differ only in how many arrangements they hold. Watch what that does once the coins pile up.

How many ways to get each share of heads
arrangements in total
ways to get exactly half
chance of 45 to 55% heads
chance of all heads

That's the second law of thermodynamics with the mystery taken out. A system wanders between its arrangements more or less at random, so it ends up in the macrostate with the most of them, because that's where nearly all the arrangements are. A glass of water holds about 1025 molecules. At numbers like that, "overwhelmingly likely" is as close to "always" as anything in the universe gets.

02Open the gate

A box with a wall down the middle. Every particle starts on the left. Open the gate and watch the count.

Particles in a box with a gate
left 0
entropy
0%
right 0

The line under the box traces the share on the left. The dashed line is 50/50.

Try 6 particles first. They slosh around, and every so often all six land back on the left by pure chance (the counter catches it). Switch to 300 and that never happens: the split hugs 50/50 and the wiggles shrink. Nothing pushes the particles right. The even split owns almost every arrangement, and the more particles there are, the more total that ownership gets.

Heat flowing from hot to cold, perfume filling a room, milk clouding into coffee: no force drives any of them. Each one is a system sliding into its most numerous macrostate.

03Shuffle a deck

A new deck comes out of the box in order. Here each card is a stripe of colour, so the sorted deck is a smooth gradient. Each riffle cuts the deck roughly in half and lets the halves drop together. Watch the gradient go.

52 cards, one riffle at a time
riffles
0
runs still in order
1
possible orders
8.07 × 1067

Sorted deck: one single run of cards in order.

After one riffle you can still see two gradients woven together. Each riffle can at most double the number of runs still in order, so the order fades quickly, though not instantly. In 1992 Dave Bayer and Persi Diaconis showed that around seven riffles is where a 52-card deck becomes properly random. Before that, a sharp card counter can still exploit what's left.

A deck can be ordered in 52! ways, about 8 × 1067. Shuffle well and you are almost certainly holding an order no deck in history has ever been in. And try riffling it back to sorted: no law forbids it, yet it never happens. There is one sorted order and a 68-digit number of others. Undoing a mix means landing on one particular arrangement out of all of those.

04Which way is time running?

Three short clips. Each one plays either forward or rewound. Make your call on each.

Forward or rewound?

The pendulum has no friction, so it looks fine in both directions and nobody can call it. You can only tell which way time runs when entropy is being made: ink mixing into water, a ball losing its bounce as heat in the floor. A rewound bounce would need the floor's jiggling molecules to all kick upward together, which is allowed in the same way the letters rebuilding was allowed, and just as unlikely.

The laws of motion don't care which way time runs. Entropy does. The arrow of time you feel, remembering yesterday and never tomorrow, points in the direction entropy grows.

05Entropy is also surprise

In 1948 Claude Shannon needed a way to measure information and ended up with the same formula as Boltzmann. The story goes that John von Neumann told him to call it entropy, since nobody really knows what entropy is, so he'd win every argument.

Shannon's entropy measures how unpredictable something is, in bits. One bit is one fair yes/no question. The more evenly spread the possible outcomes, the more questions you need, on average, to find out which one happened.

Tomorrow's weather, as an information problem
entropy
0 bits
0: no surprise2: max for 4 outcomes

Rare outcomes carry the most surprise. Snow in the Sahara would make the news; sun in the Sahara wouldn't. A message you could have predicted tells you nothing, which is also why compression works: a zip file squeezes out the predictable parts and keeps the surprise.

It's the honest way to rate a password, too. A 4-digit PIN has 13.3 bits. Twelve characters picked at random from a full keyboard: about 79 bits. Password1! looks complicated and carries almost none, because it sits near the top of every guessing list.

06What this means for your life

Everything you keep in order sits in a rare, low-entropy macrostate: a tidy kitchen, a clean inbox, a codebase that builds, a friendship kept warm. Left alone, each one drifts toward the messy majority. The room below shows the drift. Every thing has a home on the shelf. Things wander off on their own. Tap one on the floor to put it back.

The room
tidy
100%
mess arriving
your taps
0

Turn the habit on with 8 things and the room stays tidy without you. Slide to 30 and the same habit drowns. Trying harder doesn't fix that. A smaller number does.

1

Mess is the default

A desk has a handful of tidy arrangements and millions of messy ones. Random small nudges (a cup set down, a cable dropped) almost always move it toward the messier majority. A messy desk is just what arithmetic does to desks.

2

Order is a subscription

You never tidy once. You pay a small cost forever. Your body does the same: you eat roughly 2,000 kcal a day mostly to keep your own molecules in an improbable arrangement.

3

The count is the lever

Each thing you own, each app, project and commitment, adds more ways to be out of place. In the room, effort can't beat 40 things. Owning 10 can. Simplifying works because it shrinks the number of ways things can drift.

4

Give everything a home

A home defines the low-entropy state, so "done" is one arrangement you already know. A small daily habit is a tiny pump that never stops, and steady small pumps beat heroic weekend cleanups.

5

Spend surprise on purpose

Routine is low-entropy: cheap to run, no decisions, no questions. Novelty is where the information is. Put the repetitive things on rails so your attention stays free for what actually surprises you.

6

Some things only play forward

You can't unscramble an egg, unsay a sentence, or get last Tuesday back. Irreversibility is entropy's other face, and it's the reason moments count: there is no rewind slider for them.

07The big picture

If everything slides toward higher entropy, how do stars, trees and people exist at all? They are local pockets of order paid for by making more entropy somewhere else.

Earth's entropy trade
Sun5,800 K 1 visiblephoton in Earth255 K about 20infraredphotons out

Earth takes in sunlight as a smaller number of high-energy visible photons and sends the same energy back to space as roughly 20 times as many low-energy infrared ones. Energy in equals energy out, but what leaves carries far more entropy. That gap is the budget plants run on, and plants are the budget you run on. Averaged over a day you burn about 100 watts, a bright old light bulb, and all of it leaves you as heat while you stay organized inside.

Zoom out further. The universe began in an astonishingly low-entropy state, hot and smooth right after the Big Bang. Nobody knows why yet; physicists call the assumption the Past Hypothesis. Everything since (galaxies, stars, life, this page) has happened on the long slope from that start toward a final, featureless maximum that cosmologists call heat death.

We live on the slope. It's the only place anything interesting can happen.

Three things people get wrong

"Entropy just means disorder."

Disorder is a handy shortcut, and sometimes a misleading one. Shake oil and water and they separate into neat layers, yet total entropy still goes up: water molecules forced to cage around oil droplets have fewer arrangements than water left alone. Count arrangements, not looks.

"Life breaks the second law."

The second law is about isolated systems, and you aren't one. You lower your own entropy by raising your surroundings' entropy by more: heat, breath, waste.

"Entropy always goes up, like a force."

It's statistics. Small systems fluctuate downward all the time, as the six-particle box showed. With trillions of trillions of particles, a dip big enough to notice is so rare you wouldn't see one in the lifetime of the universe.

The whole page in five lines

  1. Entropy counts the arrangements behind what you see.
  2. Systems drift to the macrostate with the most arrangements. That's the second law.
  3. Time's arrow points the way entropy grows. Without entropy, rewound and forward look alike.
  4. Information is surprise, measured in bits, and it uses the same math.
  5. Order is possible anywhere, as long as you pay for it with more entropy somewhere else.

Go deeper