Traffic Density Calculator

Quick answer

The traffic density calculator works out traffic flow, density, space-mean speed, spacing and headway from vehicle counts on a road, using the fundamental relation of traffic flow.

Flow
1,800 vehicles/h
Density
30
Space-mean speed
60
Average spacing
33.3
Average headway
2 s

Traffic engineers describe a stream of vehicles with three linked quantities: flow (vehicles per hour), density (vehicles per kilometre or mile) and speed. Flow equals speed times density. As density rises, speed drops, and beyond a critical density flow falls too. That is when jams form.

How to use the Traffic Density Calculator

  1. Vehicles passing a point
  2. Counting time
  3. Vehicles on the stretch
  4. Length of the stretch

Results update as you type, and every field accepts the units shown in its menu.

How it works

Enter the number of vehicles counted passing a point and over what time, and the number of vehicles on a measured stretch of road.

Inputs explained

Field What to enter
Vehicles passing a point A number
Counting time Units: min, h, s
Vehicles on the stretch A number
Length of the stretch Units: km, mi, m

What each result means

  • Flow = [Vehicles passing a point]÷[Counting time]
  • Density = [Vehicles on the stretch]÷[Length of the stretch]
  • Space-mean speed = [Flow]÷[Density]
  • Average spacing = 1000÷[Density]
  • Average headway = 3600÷[Flow]

Example values

How the main result changes when Vehicles passing a point changes and everything else stays at the example values above:

Vehicles passing a point Flow (vehicles/h)
225 900
337.5 1,350
450 1,800
562.5 2,250
675 2,700
900 3,600

Formula

Flow q = vehicles passing ÷ time Density k = vehicles on the road ÷ length Speed v = q ÷ k; spacing = 1 ÷ k; headway = 1 ÷ q

Worked example

Inputs: Vehicles passing a point: 450; Counting time: 15 min; Vehicles on the stretch: 30; Length of the stretch: 1 km.
Results: Flow = 1,800 vehicles/h; Density = 30 veh/km; Space-mean speed = 60 km/h; Average spacing = 33.3 m; Average headway = 2 s.

Frequently asked questions

What is a typical lane capacity?

About 1,800–2,200 vehicles per hour per lane on a motorway.

What is jam density?

Around 115–150 vehicles per km per lane, when traffic is stopped.

What headway is safe?

At least 2 seconds between vehicles in good conditions.

Cite this calculator

Speedy Calculator. (2026). Traffic Density Calculator. Speedy Calculator. https://speedycalculator.com/calculators/everyday-life/traffic-density/