# Maxwell's demon

> Canonical page: https://modeladay.com/models/maxwells-demon/
> Topics: science | Difficulty: 3/5 | Updated: 2026-11-27
> Also known as: 麦克斯韦妖

## Definition

An imagined imp measuring molecular speeds and timing a tiny door to sort fast from slow, seeming to lower entropy locally at no cost and break the second law.

**In short:** It formally brought "information" into the thermodynamic ledger, proving information is a kind of currency of energy; read today as an information engine, it's a touchstone for quantum information, reversible computing, and research on the boundaries of the second law of thermodynamics.

## Opening scenario

In twenty twelve, physicists in a lab watched a tiny particle suspended in liquid. They drove it to one particular side and measured how much heat that move gave off. How did putting a particle back in one spot help explain a creature that could supposedly heat up a box for free?

Maxwell's demon is an imagined gatekeeper that sorts gas molecules by speed. We'll follow it from the partition in Maxwell's box to that particle in the lab, and see where the cost of doing the job again turns up.

## How Maxwell's demon works

Come back to Maxwell's box and give the demon two chambers of gas at the same temperature. It opens the gate for a fast molecule coming from the left or a slow one coming from the right. Keep sorting that way and one chamber would get warmer while the other got cooler.

You could try to run a heat engine on that temperature difference. If the whole setup could do this over and over without paying a price elsewhere, the second law of thermodynamics would have a problem. So what happens between spotting the molecule and getting ready for the next round?

1. **The demon measures molecules** — The demon measures the speed of each molecule.
2. **Opening the gate at the right moment** — Only fast molecules go to one side, slow ones to the other.
3. **Seemingly entropy decreases** — A temperature difference appears between the two sides, as if entropy dropped without any work.
4. **Information has a cost** — The demon's memory must eventually be erased, and erasure dissipates at least kT·ln2, balancing the books.

## Maxwell's demon examples

The demon stands by a trapdoor between two chambers, letting only fast molecules into the right chamber and slow ones into the left, so the right is hot and the left cold — conjuring a temperature difference out of nothing that could be used to do work, as if getting energy for free through information.

## How to apply Maxwell's demon

It formally brought "information" into the thermodynamic ledger, proving information is a kind of currency of energy; read today as an information engine, it's a touchstone for quantum information, reversible computing, and research on the boundaries of the second law of thermodynamics.

## Maxwell's demon vs. related concepts

Relation to Landauer's principle: Landauer's principle gives the energy cost of erasing information, and it is precisely what resolves Maxwell's demon paradox.

## Limits: when Maxwell's demon fails

"Where exactly the paradox breaks" was debated for a century — Szilard and Brillouin attributed it to measurement energy costs, Bennett and Landauer to erasure energy costs, and the latter is now widely accepted; it's a thought experiment, and no such demon exists in reality.

## Analogy

Like someone claiming to sort a bag of mixed beans effortlessly: but he has to look at each one, note it, and forget it — that effort is the cost that can't be avoided.

## Quick check

**Q:** When does Maxwell's demon mislead you? Think of a case where it does not apply.

**A:** One view holds that measurement itself costs energy, another that erasing memory costs energy; today the latter is more accepted, the Landauer principle explanation.

## Audio lesson and practice

The full narrated 5-minute Maxwell's demon lesson, the animated mechanism, and decision practice are in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow

## Related Mental Models

- [Landauer's principle](https://modeladay.com/models/landauers-principle/)
- [Thought Experiment](https://modeladay.com/models/thought-experiment/)
- [Error-correcting code](https://modeladay.com/models/error-correcting-code/)
