HomeArticlesChaos & Dynamics

Sandpile Model & Self-Organised Criticality

Drop grains of sand one at a time onto a flat grid. Most land quietly, but occasionally one addition triggers an avalanche that cascades across the whole pile — and nobody tunes the system to behave this way. It tunes itself.

mysimulator teamUpdated July 2026≈ 8 min read▶ Open the simulation

The toppling rule and how avalanches emerge

The most studied version is the Abelian sandpile, defined on a 2D grid of cells, each holding an integer number of grains. Grains are added one at a time to a randomly chosen cell. Whenever a cell accumulates four or more grains, it becomes unstable and topples: it loses four grains and passes one to each of its four orthogonal neighbours. A single toppling can push a neighbour over the threshold, which then topples too, and so a chain reaction — an avalanche — propagates outward until every cell is stable again. Grains that topple off the boundary simply fall away; this dissipation at the edges is essential, letting the pile shed the energy injected by each added grain rather than filling up indefinitely.

if z(x, y) >= 4:
  z(x, y)   -= 4
  z(x±1, y) += 1   // each of the 4 orthogonal neighbours gains one grain
  z(x, y±1) += 1

Remarkably, the final stable configuration does not depend on the order in which unstable cells are relaxed — a property that gives the model its name, Abelian, and connects it to results in abstract algebra. After many additions the pile reaches a statistical steady state in which the size of the next avalanche is fundamentally unpredictable.

live demo · a system relaxing toward its critical slope● LIVE

Power laws and the meaning of criticality

Once the sandpile settles into its steady state, the statistics of avalanches follow a power law: P(s) ~ s−τ, where τ is a critical exponent of order 1 to 1.5 in two dimensions. The profound consequence is the absence of a characteristic scale — there is no typical avalanche size; tiny single-topple events are common, while system-spanning catastrophes are rare but never impossible. This scale-invariance is normally the signature of a state that, in equilibrium physics, requires careful fine-tuning of a parameter such as temperature to a phase-transition value. Per Bak, Chao Tang and Kurt Wiesenfeld showed in 1987 that the sandpile reaches criticality automatically — the slow drive of adding grains, balanced against fast relaxation and boundary dissipation, holds the system at its critical point as an attractor. No external knob is turned; the criticality is self-organised.

Real-world applications

Self-organised criticality has been proposed across a remarkable range of disciplines: earthquakes obey the Gutenberg-Richter law, a power-law relationship between magnitude and frequency, mirroring the sandpile's drive-and-avalanche cycle; forest fires show frequency-versus-burnt-area distributions that often approximate a power law; neuronal avalanches in cortical networks can follow power-law size distributions, prompting the hypothesis that the brain operates near a critical point to maximise information processing; and financial markets and traffic both show large-movement and jam-formation distributions studied through the same lens.

Common misconceptions

The sandpile model does not accurately describe a real pile of sand — genuine granular materials involve inertia and friction and tend to produce large quasi-periodic slides rather than clean power-law statistics. Self-organised criticality is also not a single universal law explaining all complex systems; it's one mechanism among several, and a power-law fit alone is not proof of criticality. And criticality should not be confused with chaos: a self-organised critical system is a statistically stationary state with scale-free fluctuations, not deterministic chaos in the sense of the logistic map or the Lorenz system.

Frequently asked questions

What is self-organised criticality?

Self-organised criticality is the tendency of certain dynamical systems to evolve, without any external tuning, toward a critical state poised between order and disorder, where events of all sizes occur following power-law statistics. The sandpile model, introduced in 1987 by Per Bak, Chao Tang and Kurt Wiesenfeld, was the first system shown to reach this state automatically through the balance of slow driving and fast, dissipative relaxation.

Does the sandpile model describe real sand?

Not precisely. Real granular piles involve inertia, friction and humidity, and tend to produce large quasi-periodic slides rather than clean power-law statistics — rice grains in narrow channels behave closer to the idealised model. The sandpile is an abstract metaphor that captures the essence of criticality, not the detailed physics of actual sand.

Why is the sandpile model called Abelian?

The final stable configuration after an avalanche does not depend on the order in which unstable cells are relaxed — toppling operations commute, just like addition in an abelian group. This commutativity gives the model an elegant mathematical structure connected to results in abstract algebra, and is where the name Abelian sandpile comes from.

Try it live

Everything above runs in your browser — open Sand Pile Criticality and drop grains one at a time until the pile self-organises to its critical slope. Nothing is installed, nothing is uploaded.

▶ Open Sand Pile Criticality simulation

What did you find?

Add reproduction steps (optional)