Transport & Traffic

Traffic Flow, Density & Mean Headway Calculator

Relate an observed lane-group flow and space-mean speed to density, spacing and mean arrival headway.

How the calculation works

Density = flow/speed vehicles/km. Expected vehicles on section = flow/speed*length vehicles. Mean time headway = 3600/flow if flow > 0 else "Undefined for zero flow" seconds. Mean longitudinal spacing = 1000*speed/flow if flow > 0 else "Undefined for zero density" m.

Worked example

Example inputs — Observed lane-group flow (vehicles/hour): 1800; Space-mean speed (km/hour): 60; Road section length (km): 2. Expected results — Density: 30 vehicles/km; Expected vehicles on section: 60 vehicles; Mean time headway: 2 seconds; Mean longitudinal spacing: 33.33333333 m.

Assumptions and limits

Stationary aggregate traffic relation q=k×space-mean speed. Lane-group inputs describe the whole group, so spacing represents equivalent aggregate spacing; use one lane for physical same-lane spacing. Headway is the reciprocal of average flow, not each vehicle’s gap. No prediction of safe following distance or capacity.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.