HomeArticlesAlgorithms & AI

Wolfram's Elementary Cellular Automata: 256 Rules and the Edge of Computation

A single row of black and white cells. One rule that looks left, centre and right. Apply it for a thousand generations — and one of the 256 possible rules turns out to be capable of universal computation.

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

Definition and encoding

An elementary cellular automaton (ECA) is a one-dimensional, two-state, three-neighbour cellular automaton. The universe is a binary string — each cell holds 0 (white) or 1 (black) — and at each discrete step every cell simultaneously updates based on itself and its immediate left and right neighbours. Because each neighbourhood has 2³ = 8 possible configurations, and a rule must specify one of 2 outputs for each, there are 2⁸ = 256 possible rules. Rule 0 maps every neighbourhood to 0 (all cells die); Rule 255 maps every neighbourhood to 1 (all cells live forever); Rule 30 and Rule 110 sit at opposite ends of the complexity spectrum.

Reading a rule table

To decode rule N, write N in 8-bit binary. The k-th bit from the right tells you what output a neighbourhood of numeric value k produces:

Rule 110 = 01101110₂
neighbourhood: 111 110 101 100 011 010 001 000
output:          0   1   1   0   1   1   1   0

A standard visualisation stacks time downward — row 0 is the initial condition (a single black cell on white is canonical), row 1 is after one step, and so on. Of the 256 rules, many are equivalent under reflection or colour complement; after accounting for both symmetries there are only 88 genuinely distinct rules. Rule 30 and its mirror Rule 86 produce different-looking patterns but the same complexity class; Rule 110 and Rule 137 are mirrors of each other.

live demo · a rule table generating a spacetime diagram● LIVE

Rule 110: proof of universal computation

Matthew Cook proved in 1994 (published 2004 after a legal dispute over release rights) that Rule 110 can simulate a cyclic tag system, a rewriting system known to be Turing complete. Rule 110's spacetime diagrams contain persistent moving structures called particles embedded in a quasi-periodic period-14 background called the ether. Cook's key insight was that particle collisions — roughly 16 distinct interaction types — are rich enough to simulate the tag system's append and delete operations, with the ether acting as a blank tape and particles encoding data symbols. Because any Turing machine reduces to it, the question "does Rule 110 starting from condition X ever produce a 1 somewhere?" is undecidable, equivalent to the halting problem — a striking result for a rule with only 8 binary degrees of freedom.

Rule 184 and traffic flow

Not every notable rule is about chaos or computation. Rule 184 is a minimal model of one-lane traffic: cells represent road segments, state 1 means a car is present, and a car moves right if the next cell is empty, otherwise it stays. The rule correctly reproduces a free-flow phase at density below 0.5, traffic-jam formation above it, shock waves propagating backward through the jam, and conservation of car number throughout — the simplest cellular automaton that exhibits both phases of the fuller Nagel-Schreckenberg traffic model.

Reversible rules and larger neighbourhoods

A CA rule is reversible if every state has exactly one predecessor. Among the 256 elementary rules, only Rule 51 (complement) and Rule 204 (identity) are reversible — Toffoli and Margolus developed the block-CA formalism specifically to construct reversible 2D rules for modelling physical time-reversibility. Wolfram also extended the study to k-color, radius-r rules: for k=2, radius=2 (a five-cell neighbourhood) there are 2³² ≈ 4 billion rules, with the Wolfram code generalising the same way — rule N maps neighbourhood configuration i to bit i of N.

Frequently asked questions

How do you decode a Wolfram rule number like Rule 110?

Write the rule number in 8-bit binary. Rule 110 is 01101110 in binary. The k-th bit from the right tells you the output for the neighbourhood whose 3-bit (left-centre-right) pattern equals k in binary — so neighbourhood 110 (which equals 6) reads bit 6, which is 1, meaning that neighbourhood produces a live cell next generation. Doing this for all 8 possible neighbourhoods fully specifies the rule.

Why is Rule 110 considered such a surprising result?

Rule 110 has only 8 binary degrees of freedom — the 8 output bits of its rule table — yet Matthew Cook proved in 1994 (published 2004) that it can simulate a cyclic tag system, a type of Turing-complete rewriting system. That means the question "does Rule 110 starting from condition X ever produce a 1 somewhere?" is undecidable, equivalent to the halting problem, despite the rule itself being describable in a single byte.

What does Rule 184 model?

Rule 184 is a minimal one-lane traffic model: cells represent road segments, state 1 means a car is present, and a car moves right only if the next cell is empty. It correctly reproduces both a free-flow phase at low density and a jammed phase at high density, with jam waves propagating backward and total car count conserved — making it the simplest cellular automaton exhibiting both phases of the more detailed Nagel-Schreckenberg traffic model.

Try it live

Everything above runs in your browser — open Wolfram 1D Cellular Automata and drag the rule slider or jump straight to presets 30, 90, 110, 54, 184, 45, 18 and 150 to see chaos, fractals and computation unfold. Nothing is installed, nothing is uploaded.

▶ Open Wolfram 1D Cellular Automata simulation

What did you find?

Add reproduction steps (optional)