Drop sand grains onto a grid, one at a time. Each grain just sits there — until a pile gets too steep. Then it topples, spilling grains onto its neighbours, which can topple in turn: a chain-reaction avalanche. From this trivial rule the pile tunes itself to a knife-edge "critical" state — where a single grain might do nothing, or might set off a cascade of any size at all. This is self-organized criticality, and the same signature shows up in earthquakes, forest fires, and brains.
Every cell holds a number of grains. The single rule, applied over and over:
The remarkable part (proven by Dhar): the final state doesn't depend on the order you topple cells in — it's abelian. Press Add grain to load the centre cell and trigger one topple.
Here the rule runs on a real grid. Keep dropping grains (on random cells) and the pile fills up until the average height hovers around the critical value — then it can't get any steeper, so new grains keep triggering avalanches. The histogram on the right tallies how big each avalanche was (how many topplings it caused). Watch its shape: mostly tiny, occasionally enormous, with no characteristic size — a straight line on log–log axes, the fingerprint of a power law.
Start instead with a single tower of grains at the centre of an empty grid and let it relax completely (topple until nothing is ≥ 4). The result is not random mush — it's an intricate, perfectly symmetric fractal. The same local rule that produces unpredictable avalanches also produces deterministic, self-similar order. Pick a starting amount and run it.
Most systems only sit at a critical point if you tune a knob to exactly the right value (temperature at the boiling point, say). The sandpile is special: it drives itself there with no tuning. Add grains slowly and the pile inevitably climbs to the critical slope and stays balanced on that edge, where the smallest push can trigger a cascade of any scale. That's self-organized criticality (Bak, Tang & Wiesenfeld, 1987).
The lesson: small triggers occasionally cause large cascades not because something rare happened, but because the system organized itself to the point where they're always possible. Power laws and 1/f noise are everywhere precisely because criticality is a natural attractor.