Sandpiles and Crashes: How Systems Tune Themselves to the Brink

A calm coastal landscape with a ploughman, a shepherd, and ships, while in the lower corner a pair of legs vanishes into the sea, the only trace of Icarus falling
Landscape with the Fall of Icarus, attributed to Pieter Bruegel the Elder, c. 1560. Royal Museums of Fine Arts of Belgium, Brussels (public domain).

The last essay ended with a puzzle it did not solve. Markets, it argued, sit near a critical point, the knife-edge where a tiny shock can cascade into a huge move. But phase transitions are fussy. Water turns to ice at one exact temperature. A magnet loses its magnetism at one exact spot on the dial. To sit near that kind of edge, something usually has to hold the dial there with great care.

So who holds the market’s dial? Who tunes millions of independent traders to balance exactly on the edge?

The answer, worked out in 1987 by three physicists, is that nobody does. Some systems walk to the edge on their own and stay there. Per Bak, Chao Tang, and Kurt Wiesenfeld called it self-organized criticality, and the toy they used to show it was a pile of sand.

#I. A pile of sand

Drop sand onto a table, one grain at a time. At first the grains sit where they land. The pile grows, the sides get steeper, and now and then a grain you add rolls a little and knocks another loose. Keep going and the slope reaches a steepness it cannot exceed. Add one more grain there and you might get nothing, or a small slip, or a slide that takes a whole face of the pile down at once. From then on the pile holds that slope. Add sand and it sheds sand, in fits and starts, forever.

That is the whole idea, and it boils down to a rule simple enough to run on a grid. Give every cell a count of grains. Drop a grain on a random cell. If a cell ever holds four or more, it topples: it gives one grain to each of its four neighbors and keeps the rest. Grains that fall off the edge of the grid are gone. A neighbor that just received a grain might now hold four itself, so it topples too, and the spill can run on and on. Count how many topplings a single added grain sets off. That count is the avalanche.

Two square grids. Left, a speckled map of grain counts from zero to three across the whole pile. Right, mostly empty except for one connected blob of cells, the ones that toppled during a single avalanche.

Left, the pile after it has settled into its self-organized state, with cells spread below the toppling threshold. Right, the footprint of one avalanche: every cell that toppled after a single grain landed.

Start the grid empty and drip grains. Early on, little happens. The pile fills up, cells get fuller, the first avalanches appear. Before long it settles into the state on the left, loaded across the grid and close to the edge of toppling. It got there by itself. No one set the slope. The pile found it and stays there.

#II. Avalanches of every size

Now the surprising part. Record the size of every avalanche, meaning how many topplings each added grain triggers, and count how often each size shows up. You do not get a typical size with rare departures, the way human heights cluster around an average. You get this.

A log-log plot. Blue dots, the avalanche sizes from the simulation, fall along a straight downward line across four decades. A dashed line marks a power law of slope about minus 1.2. A red curve, labeled as the “typical size” expectation, starts flat and then plunges steeply, far below the dots, at large sizes.

On a log-log plot the avalanche sizes fall on a straight line. That is a power law, and it means there is no typical avalanche. The red curve shows what a world with a typical size would look like, where anything much bigger than average essentially never happens. The pile does not live in that world.

A straight line on a log-log plot is a power law, and a power law has no characteristic scale. Tiny avalanches are common, big ones rare, enormous ones rarer still, but they all sit on the same smooth slope. There is no special size where the pile says “this one is normal and that one is a freak.” The red curve is the bell-curve intuition, a world with a typical size where large events are effectively impossible. The pile is not in that world. Big avalanches are rare, but they are always on the menu.

Here is the part that should sound familiar from the last essay. Every grain is identical. The grain that sets off a thousand-cell cascade is exactly the same as the millions of grains that did nothing. The big avalanche has no special cause. It is the same process as a small one that happened to keep going. A crash without a cause, built into the rules.

#III. The calm is the setup

Watch the avalanches over time and the pattern is its own kind of warning.

A plot of avalanche size against grains added, one at a time, on a linear scale. Most of the time the line sits near zero, broken by occasional tall spikes reaching into the thousands.

Long quiet stretches broken by sudden cascades, all from the same steady drip of identical grains. The quiet is not a different state from the cascade. It is the same state, loading.

Nothing changes about the input. The grains keep coming at the same rate, all alike. Yet the output is long calm punctuated by sudden collapse. The calm is not safety and the cascade is not an intruder. Every quiet grain nudges the pile a little closer to the next slide. The stillness is the system loading itself.

#IV. What “self-organized” means

This is the piece the last essay was missing. The magnet needed someone to set the temperature to its critical value by hand. The sandpile needs no one. Three plain ingredients do the tuning automatically: a slow drive, the grains added gently one at a time; a threshold, the rule that a cell holds on until it reaches four and only then lets go; and leakage, the grains that fall off the edges and leave.

Put those together and the pile is pushed to the critical slope and pinned there. Drive it too hard and avalanches carry away the excess. Let it slacken and the drive builds it back up. The critical state is not a setting you choose, it is the place the system falls toward from wherever it starts. That is what self-organized criticality means, and it is the answer to the question we opened with. Nobody tunes the market to the edge. A market that keeps loading risk and shedding it in cascades tunes itself.

#V. The same fingerprint everywhere

Bak’s claim was bigger than sand. The same signature, events of every size with no typical scale and no special cause, turns up across nature. Earthquakes obey it: the Gutenberg-Richter law says that a quake ten times larger is a fixed factor rarer, a straight line on a log-log plot, and a great earthquake is just a small tremor whose rupture kept going. Forest fires follow it, and solar flares, and real snow avalanches, and bursts of firing in networks of neurons, and even the sizes of extinctions in the fossil record. Different machinery, the same law. This is the universality from the last essay again. Near the critical state the details stop mattering and only the statistics survive, which is exactly why a model of sand can have anything to say about a market.

#VI. Markets are sandpiles

The mapping to finance is concrete, not poetic. The grains are risk piling up: leverage taken on, positions crowding into the same trades, stop-loss orders stacked at similar prices, promises to deliver that quietly depend on everyone else delivering. The slow drive is an ordinary calm market, where risk accumulates precisely because nothing has gone wrong lately. The toppling is forced selling: a margin call, a triggered stop, a fund that has to liquidate, which pushes the price down, which trips the next stop, which pushes the price again. One sale sets off the next, exactly like one toppling cell spilling into its neighbors.

And the output is the power law. The distribution of market moves is not a bell curve. The big moves are far too common for that, and they fall on roughly a straight line on a log-log plot, the same shape as the sandpile and the earthquakes. Gabaix and colleagues, sifting tens of millions of trades, found the tail of large price moves following close to an inverse-cube power law, steady across markets and decades. The fat tails from the last essay are the avalanche distribution of a market that has loaded itself to the edge. This is the mechanism under the measurement we ended on last time. Bouchaud’s finding that markets sit close to criticality is not a coincidence in search of an explanation. It is what a self-organizing system does.

#VII. Efficiency is the road to the edge

There is a sting in this for anyone who runs anything. What pushes a market, or a supply chain, or a power grid toward the critical edge? Bouchaud’s answer, in his 2024 survey of the field, is uncomfortable. It is the pursuit of efficiency.

An efficient system has no slack. Every resource is used, every buffer trimmed, every part coupled tightly to the next so nothing is wasted. That is also a fair description of a sandpile at the critical slope: fully loaded, nothing to spare, every cell ready to pass a disturbance along. Slack is exactly what keeps a system below the edge. Redundancy, inventory, idle capital, traders who disagree with each other, all of it looks like waste in the good times, and all of it is what stops a local problem from becoming a system-wide cascade.

So the choice is a real tradeoff, not a failure to optimize. You can have a maximally efficient system or a resilient one, but the same lever moves both, in opposite directions. Just-in-time supply chains learned this when one stuck ship or one shut factory rippled around the world. Tightly coupled, heavily leveraged financial systems relearn it every decade or so. Bouchaud’s line, that the quest for efficiency and the need for resilience may be incompatible, is the sandpile talking.

#VIII. What you can and cannot do with this

The sandpile is honest about its limits, and they are worth saying plainly.

You cannot read the big one off the trigger. Every grain is the same, so “what caused the crash” is close to meaningless. The honest answer is the slope, not the grain, and hunting through the news for the cause of an endogenous cascade is hunting for a grain that was never special.

But you can know what kind of system you are standing on. If market moves follow a power law, then large cascades are not flukes to be engineered away. They are a permanent feature, and one is coming. You cannot say when, but you can stop being surprised, and you can act on the slope instead of the grain: carry slack, cut leverage and tight coupling where you can, and read a long calm as loading rather than as safety.

That leaves one question hanging. If the big cascades are built in, and the trigger tells you nothing, is there anything in the run-up that does? Can you see the slope turn dangerous before it goes? That is exactly where Sornette says yes and Taleb says no, and it is where this series goes next.

#Further reading

The original idea:

Power laws in nature and markets:

Self-organized criticality in finance, and the efficiency tradeoff: