Traffic lab · Stop-and-go waves

Phantom Traffic Jam Simulator

Put 22 cars on a ring road, watch a jam appear out of nowhere and roll backward – then hand one car to a wave-dampening controller and watch the jam melt

Quick Answer:Phantom traffic jams form without any bottleneck when traffic is dense enough to be "string unstable": each driver over-reacts slightly to the car ahead, so a small slowdown grows as it passes backward until cars stop. The jam front then moves against the traffic at about 15 km/h (10 mph). Sugiyama et al. (2008) showed it with 22 cars on a 230 m ring. Stern et al. (2018) showed that one automated car that drives at the average speed and keeps a larger gap can absorb the wave: speed spread fell 50–80 % and fuel use up to 40 %. The simulator below reproduces both experiments with the Intelligent Driver Model.

--

--

stoppedfast

automated car

Last 60 seconds

--

--

Mean speed

--

Speed spread (SD)

--

Flow

--

Fuel (est.)

--

--

The ring road

Human drivers (Intelligent Driver Model)

--

Time–space diagram

--

Each line is one car going round the ring (time left to right, position bottom to top). Red bands running down to the right are jams: cars move up through them while the jam itself drifts backward.

Speed over time

One human driver (orange), the first automated car (blue) and the ring average (white).

Fundamental diagram: when does traffic become unstable?

Flow (cars per hour) the human drivers would reach in perfectly steady traffic at each density. In the red range the linear string-stability test fails: any small wobble grows into stop-and-go. The dot is what your ring actually delivers.

Three things to try

  1. Replay the 2008 experiment. Choose Sugiyama, press Restart and wait about a minute at 4× speed. A cluster of red cars appears although nobody caused it; in the time–space diagram it becomes a red stripe that drifts backward at about 15 km/h.
  2. Switch the automated car on and off. With the Stern preset, untick "Wave-dampening control" and let the waves build, then tick it again. Within one or two laps the stripes fade, the speed spread drops and the estimated fuel use falls – while the average speed goes up, not down.
  3. Find your own stability limit. Raise the time gap from 1.2 s to 2 s, or lower the number of cars: the note under the controls tells you when the traffic crosses into the stable range, and the jam disappears without any automation at all.

Model assumptions – what this model leaves out

  • One lane, a closed ring, identical drivers. There is no lane changing, no on-ramps and no mix of cars and trucks. Real motorways add merging, which is the most common trigger of waves.
  • Humans are the Intelligent Driver Model plus noise. Reaction time is not modelled explicitly; the "sloppiness" adds a slowly varying random acceleration (standard deviation in m/s²). Parameters were chosen so the Sugiyama ring forms jams that move backward at about 15 km/h, not fitted to individual drivers.
  • The automated car is a textbook controller. The wave dampener follows the published FollowerStopper rules with an IDM safety limit and cruises at 90 % of the steady-state speed of the ring. Real systems need sensing, safety margins and testing that this page does not represent.
  • Fuel is a rough estimate. It uses a simple power-based formula for a 1,300 kg car (idle plus energy at the wheels). Use it to compare runs, not to predict your car's consumption.
  • Not a traffic forecast. This is an educational model of a well-studied effect, not a prediction of any real road or a claim about any vehicle's safety.

How the Phantom Traffic Jam Simulator – Ring Road & Self-Driving Car Lab works

Cars drive round a single-lane ring. Every human driver follows the Intelligent Driver Model (IDM): accelerate towards a desired speed, keep a safe time gap to the car ahead, and brake harder the faster you close in. A slowly varying random acceleration (the “sloppiness”) stands in for the small imperfections of real drivers. The simulation steps every 0.1 s and starts with all cars evenly spaced at the steady-state speed.

Whether those small imperfections die out or grow is decided by linear string stability. Around steady traffic the model reacts to the gap (f_s), its own speed (f_v) and the leader’s speed (f_l); a speed wobble passes to the next car amplified when f_v² − f_l² − 2·f_s is negative. The page evaluates this for your drivers at every density and marks the unstable range on the fundamental diagram.

Automated cars use the FollowerStopper controller from the 2017 Tucson ring experiment (Stern et al. 2018): they aim for a fixed cruise speed (here 90 % of the steady speed of the ring) and only slow down when the gap closes, instead of copying every speed change of the car ahead. An IDM limit keeps them from getting too close. The jam speed is the slope of the position of the slowest group of cars over the last two minutes.

IDM: a = a_max·[1 − (v/v0)⁴ − (s*/s)²], s* = s0 + v·T + v·Δv ÷ (2√(a_max·b))

Steady gap at speed v: s_e = (s0 + v·T) ÷ √(1 − (v/v0)⁴)

String stable ⇔ f_v² − f_l² − 2·f_s ≥ 0, with f = a(s, v, v_leader)

Flow = density × mean speed; density = cars ÷ ring length

Worked example

The Sugiyama ring: 22 cars on 230 m, each 4.5 m long; drivers with v0 = 54 km/h, T = 1.2 s, s0 = 2 m, a = 1.2 m/s², b = 2.5 m/s².

  1. Average gap = 230 ÷ 22 − 4.5 = 5.95 m, so the density is 22 ÷ 0.23 km = 96 cars/km.
  2. The steady speed for a 5.95 m gap solves (2 + 1.2·v) ÷ √(1 − (v/15)⁴) = 5.95, giving v = 3.3 m/s (11.8 km/h).
  3. At that point f_v² − f_l² − 2·f_s = −0.20 < 0: the traffic is string-unstable, so the slightest wobble grows.
  4. In the simulation a stop-and-go wave forms within about a minute and travels backward at 15.3–15.9 km/h (five random seeds).

Result: Dense traffic of this kind cannot stay smooth on its own: a jam forms with no cause and drifts backward at about 15 km/h, as on real motorways.

Assumptions and limits

  • One lane, identical drivers, no reaction-time delay, no lane changes or merging. Fuel is a simple power-based estimate for a 1,300 kg car, for comparing runs only. Educational model – not a traffic forecast or a statement about the safety of any vehicle.
  • Human parameters were chosen once so that the Sugiyama ring produces stop-and-go waves; they were not fitted to the Stern experiment.
  • Checked: steady gap at v = 0 equals s0 and the IDM acceleration is zero (−1e−16) at every steady state; the string-stability criterion agrees with a brute-force maximum of the follower transfer function |H(iω)| at gaps of 5.95, 8, 15 and 30 m (unstable cases have max |H| 1.026–1.028, stable ones ≤ 1); Sugiyama ring (22 cars, 230 m): jam speed −15.3 to −15.9 km/h over 5 seeds, in line with the typical −15 km/h (range −10 to −20) of stop-and-go waves on motorways (Treiber & Kesting); Stern ring (22 cars, 260 m) with one FollowerStopper car: speed SD down 72–83 % (Stern et al.: 50–81 %), estimated fuel down 20–28 % (Stern et al.: 22–42 %), mean speed up 6–13 % (Stern et al.: throughput up to +15 %); IDM with highway parameters (120 km/h, T 1.5 s, 5 m cars) has a capacity of 1,836 cars/h, below the 2,105 cars/h upper bound v0 ÷ (v0·T + s0 + length).

Sources

Last reviewed November 8, 2026 · How we build and check our calculators

Frequently Asked Questions About Phantom Traffic Jams

What is a phantom traffic jam?

A jam with no accident, lane closure or on-ramp to blame. When traffic is dense, one driver braking a little harder than needed makes the driver behind brake harder still, and the slowdown grows as it passes backward from car to car until cars stop. In 2008 Japanese researchers reproduced this with 22 cars on a 230 m circular track: a jam formed within minutes although everyone was asked to drive at a steady 30 km/h.

Why do traffic jams move backward?

Cars leave the front of a jam and new cars join its back. Because each driver needs one or two seconds to pull away once the car ahead moves, the front of the jam travels against the traffic at about 15 km/h (10 mph), whatever the road. That is why you can meet a stop-and-go wave kilometres away from where it started, long after its cause has gone.

Can one self-driving car stop a traffic jam?

In a 2017 field experiment on a 260 m ring with 21–22 cars, one automated car that kept a steady speed and left a larger gap instead of copying the car ahead cut the spread of speeds by 50–80 %, braking events by up to 98 % and fuel use by up to 40 %. On a real multi-lane motorway a single car has far less effect; the benefit grows with the share of such cars.

How can I avoid causing stop-and-go traffic?

Leave a larger gap – at least two seconds – and drive at the average speed of the flow instead of closing every gap and braking hard. The extra space lets you absorb the slowdowns of the car ahead with gentle speed changes, so the wave dies out at your car instead of growing behind you.

Browse all 39 3d visualizers & ai tools calculators →

Copied!