Traffic Lab

Online traffic simulator

Does adding a lane ease traffic? Change the road layout and see how many vehicles get through.

Choose map
Live
Isometric highway with a line of traffic approaching a narrow bridge.

Drag or use the arrow keys to pan. Press Home for the overview, Enter to select vehicles, and Escape to clear the selection.

100 %
Throughput
–veh/min
Mean speed
–km/h
Queue in section
–veh
– upstream – total

Entries and exits

last 60 seconds
Direction In Out
Towards bridge – –
Opposite direction – –
Compare lane layouts

The first number is the lanes before the bridge, the second is the lanes on it. A starts with your current settings. Both layouts receive the same arrivals for five minutes.

The four Traffic Lab maps

The "Just one more lane, bro." meme inspired Traffic Lab. Change the lane count on the highway or in Bonn. On the other maps, test a short passing lane or compare a roundabout with traffic lights.

What do studies say about adding lanes?
How do drivers merge in real traffic?

How many vehicles can the bottleneck handle?

Compare six lane drops at the same desired speed. The table shows how many vehicles got through in the busiest minute beyond the bridge.

80 km/h
Display
Lanes on the bridge · Vehicles/min and loss
Approach1 lane2 lanes3 lanes
2 lanes35−46%——
3 lanes38−61%72−27%—
4 lanes38−69%73−41%106−15%

Darker orange means a larger loss compared with a highway that keeps its original width.

Data and methodology

How was this measured?

Each speed and layout uses the same three vehicle sequences. Every run measures five minutes after a two-minute warm-up. Demand is 160 vehicles/min in each direction, driver attention is 80% and 12% of vehicles are trucks. Only bridge-bound exits count. Loss compares each narrowing’s peak minute with the peak for the same approach width continuing across the bridge.

Peak counts without a lane reduction (vehicles/min)
2 → 2: 65 · 3 → 3: 98 · 4 → 4: 124

Where does the simulation differ from real traffic?

The matrix above shows the busiest minute. To compare with research, we count vehicles in one direction for a full hour. We report the median of three runs with different vehicle sequences.

  • Four lanes without an on-ramp

    At a desired speed of 100 km/h, 7,196 vehicles per hour cross the bridge. The German design capacity for a level motorway outside a metropolitan area with 12% heavy vehicles is 7,120. We calibrated the entry flow against that value (+1.1%). At 80 km/h the model falls 2.4% below it, and at 120 km/h it is 3.3% above. The slider sets a desired speed, while the handbook uses the posted limit.

    BASt V 377, Table 2-6 (PDF)
  • Two lanes narrow to one

    At 80 km/h the simulated bottleneck carries 1,827 vehicles per hour. Measurements at one motorway work zone in North Rhine-Westphalia gave a capacity of 1,739. The model is 5.1% higher. The real site had a 3% uphill gradient and 7.5% heavy vehicles. The simulated road is level and trucks make up 12% of demand.

    BASt V 378, Tables 5-1 and 5-2 (PDF)
  • What changes with an on-ramp

    With four lanes and a desired speed of 100 km/h, simulated flow drops from 7,196 to 6,941 vehicles per hour when 13% of demand enters via the ramp. The reference value of 7,120 applies to motorway segments outside the influence of junctions. The difference alone does not show what a real on-ramp costs in throughput.

    Geistefeldt (2016), Section 2.2
  • Lane changes and stops before the bridge

    In the model, a car takes 2.8 seconds to change lanes and a truck takes 3.6. At real work zones, Jiao and colleagues observed that most lane changes in dense traffic began below 30 km/h. That observation describes speed when a lane change begins. How often vehicles would have stopped earlier in the queue at a bridge like ours remains an open question.

    Jiao et al. (2024), Figure 7

About the model

Drivers can take a safe gap early on the parallel acceleration lane. At its end, when both lanes have waiting traffic, the simulation alternates one mainline vehicle and one ramp vehicle. At the bridge lane drop, driving style also influences who goes first. Drivers adjust speed to meet the opening gap.

The single-lane approach adds a longer section upstream. It widens to the selected number of lanes before the bridge. The opposing carriageway has the same number of approach lanes.

What do the controls change?

Drivers use distance and relative speed to anticipate catching a slower vehicle. They check neighbouring lanes for a speed advantage and a safe gap, overtake on the left and return to the right. Defensive drivers wait for larger gaps and are more likely to let others merge at the bottleneck. Aggressive drivers keep shorter gaps and sometimes pull in earlier. Balanced drivers tend to alternate.

Drivers aim for their desired speed when the road is clear. Less attentive drivers check the gap less often and leave a bigger time gap. The slider sets the average. Select a vehicle to see its own setting.

Time lost adds up the extra journey time against the desired speed. Inflow sets the requested new vehicles per minute. When entrances are full, vehicles wait outside the section. Cars accelerate faster than vans and trucks. Trucks keep right and move left for a closing lane or an imminent rear-end conflict when there is enough space.

How do I read the measurements?

The three charts show traffic towards the bridge. Throughput counts exits in the last 60 simulation seconds. Mean speed covers vehicles in the measured section. “Queue in section” counts bridge-bound vehicles below 15 km/h in the measured section. Each chart shows the last minute.

The queue-tail marker shows the length of the continuous slow queue at the bridge. An arrow points towards its tail when it lies outside the view. Each request towards the bridge is paired with one in the opposite direction. The ramp receives 13% of bridge-bound demand. The table counts actual entries and exits at the measured section. Blocked requests wait at their entrances.

How large are the road and vehicles?

Lanes are 3.50 m wide. The car is 4.28 × 1.79 m, the long van 6.84 × 2.04 m, and the model truck 8.30 × 2.55 m. Motion and graphics use metres. The entry lane spans 250 m, including its 60 m taper.

Restarting or changing the scenario or road layout begins a repeatable run with a 120-second warm-up. The sliders take effect during the run. Use the model to compare scenarios. Individual driving manoeuvres still need to be checked against real traffic data.

Emergency response

During a response, slow traffic makes room between the two leftmost lanes. On a single-lane approach or bridge the emergency vehicle follows traffic.

Keyboard shortcuts

Space pauses or starts the simulation. Press 1 or 2 to switch maps, R to restart, or ? to open the model help.