# Maxwell's demon

> Source: https://modeladay.com/models/maxwells-demon/
> Category: principle | Topics: science | Difficulty: 3/5

## 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.

## Core Rule

A hypothetical little demon that measures molecular speeds and opens a small gate at the right moment, separating fast and slow molecules — seemingly reducing the system's local entropy without expending work, violating the second law of thermodynamics. Common form: a thought experiment using information to "fight" entropy increase.

## Opening Context

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 It Works (Preview)

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?

## When It Fails (Preview)

The team could measure what one kind of reset cost. When you use that result elsewhere, check the operation and what's inside the system you're counting.

## Full Lesson, Audio & Practice

Get the full Maxwell's demon breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist 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
- Web page: https://modeladay.com/models/maxwells-demon/

## 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/)
