Intermediate

Traffic Density Calculator — Flow, Speed & Level of Service

Apply the fundamental equation of traffic flow — density = flow ÷ speed — to find the number of vehicles per kilometre (or mile), the average spacing between vehicles, and which Level of Service (LOS) band A through F the roadway is operating in.

vehicles/hour

Total vehicles per hour across all lanes

km/h

Space-mean speed of traffic stream
Total lanes in the direction of travel

Distance unit

Traffic density (all lanes)
15veh/km

k = q ÷ v — the fundamental equation of traffic flow

Density per lane
7.5 veh/km/lane
Avg spacing (all lanes)
67 m
Avg spacing per lane
133 m
Flow (volume)
1,200 veh/h
Speed
80 km/h
Lanes
2
Step by step
  1. 1

    Traffic flow

    1,200
    Total vehicles per hour across all lanes (q).
  2. 2

    Space-mean speed

    80
    Speed of the traffic stream (v) in km/h.
  3. 3

    Traffic density

    1,200 ÷ 80 = 15
    Fundamental equation of traffic flow: k = q ÷ v.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Traffic density k = flow q ÷ speed v (vehicles per km or mile). Average spacing = 1 000 m ÷ density per lane. A freeway with 1 200 veh/h flow and 80 km/h speed has k = 15 veh/km total; with 2 lanes that is 7.5 veh/km per lane (LOS B). Higher density → shorter spacing → risk of congestion.

Formula
k = q ÷ v (density = flow ÷ speed) • Spacing (m) = 1 000 ÷ k (per lane)
How this is calculated

Traffic flow theory is built on three macroscopic variables: flow (q, vehicles per hour), space-mean speed (v, km/h or mph), and density (k, vehicles per km or mile). They are linked by the fundamental equation of traffic flow: k = q / v. If 1,200 vehicles per hour pass a cross-section at an average speed of 80 km/h, the density is 1,200 / 80 = 15 vehicles per km across all lanes combined — or 7.5 vehicles per km per lane for two lanes.

The reciprocal of density gives the average headway (spacing) between vehicles: 1,000 m ÷ density. At 15 veh/km a vehicle has roughly 67 m of road ahead. As density rises and speed falls, spacing shrinks; at some critical density the flow breaks down into stop-and-go congestion.

The Level of Service (LOS) bands shown follow approximate thresholds from the US Highway Capacity Manual (HCM 7th edition) for basic freeway segments, expressed in vehicles per km per lane. LOS A (< 7 veh/km/lane) is free-flow with full driver freedom; LOS E is at or near capacity; LOS F indicates breakdown and queuing. Exact thresholds vary by road type, free-flow speed, and edition of the HCM — use these bands as indicative guidance, not precise engineering limits.

Frequently asked questions

Flow (volume) is a rate measured at a fixed point — vehicles passing per hour. Density is a spatial measure — vehicles present on a stretch of road at an instant. They are related by speed: density = flow ÷ speed. A freeway can have the same flow at two very different densities (high speed with wide spacing, or slow speed with bumper-to-bumper queuing).

Space-mean speed is the average speed of all vehicles in a road segment at a given instant (or equivalently, total distance ÷ total travel time). Time-mean speed is the arithmetic average of speeds measured at a fixed point. For the fundamental equation k = q / v, always use space-mean speed — the distinction matters when speeds vary, because the arithmetic average overestimates.

LOS A–F (HCM) describe the quality of traffic flow. A is free flow with no restriction on manoeuvring; B and C are stable flows with some constraint; D approaches instability; E operates at or near capacity; F is forced flow with demand exceeding capacity, causing queues and breakdown. LOS is typically determined from density for freeways and from delay for signalised intersections.

Also known as

traffic density calculator
vehicles per km calculator
traffic flow density speed
level of service calculator
fundamental equation of traffic flow
highway capacity traffic density
traffic headway spacing calculator

APA

TG we-Calculate Editorial Team. (2026). Traffic Density Calculator — Flow, Speed & Level of Service [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/traffic-density-calculator

Chicago

TG we-Calculate Editorial Team. "Traffic Density Calculator — Flow, Speed & Level of Service." TG we-Calculate. 2026. https://we-calculate.com/calculator/traffic-density-calculator.

IEEE

TG we-Calculate Editorial Team, "Traffic Density Calculator — Flow, Speed & Level of Service," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/traffic-density-calculator

BibTeX

@misc{wecalculate_traffic_density_calculator, title = {Traffic Density Calculator — Flow, Speed & Level of Service}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/traffic-density-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?