Traffic Density Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the flow rate and the space-mean speed of a traffic stream to get its density, the average gap between vehicles and the time headway.
Result
Density (vehicles per mile per lane)
Average spacing, front to front (ft)
- Average time headway (seconds)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Flow rate (vehicles per hour per lane): enter 0 or more.
- Space-mean speed, in mph: enter 0.1 or more.
- Read the result: Density (vehicles per mile per lane); the panel also shows Average spacing, front to front (ft) and Average time headway (seconds).
How this calculator works
The fundamental equation of traffic flow is q = k × u, so density k = q ÷ u, with q the flow (vehicles per hour), u the space-mean speed and k the density (vehicles per unit length). Source: FHWA, Revised Monograph on Traffic Flow Theory, chapter 2, Traffic Stream Characteristics (F. L. Hall), equations 2.15 and 2.20 (fhwa.dot.gov/publications/research/operations/tft/chap2.pdf, read 2026-10-27).
Spacing is the inverse of density (5,280 ft per mile ÷ k) and mean headway the inverse of flow (3,600 s ÷ q). The monograph notes the equation holds best in uncongested flow; in stop-and-go traffic, density from speed and flow is only an estimate.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Flow rate (vehicles per hour per lane) | ||
| Space-mean speed | mph | |
| Density (vehicles per mile per lane) |
Worked example
| Flow rate (vehicles per hour per lane) | 1,500 |
|---|---|
| Space-mean speed | 60 mph |
| Average spacing, front to front (ft) | 211.2 |
|---|---|
| Average time headway (seconds) | 2.4 |
Density (vehicles per mile per lane) 25
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the density of 1,500 veh/h/lane at 60 mph?
25 vehicles per mile per lane: one vehicle every 211.2 ft, 2.4 seconds apart.
Why use space-mean speed?
The relation q = k × u holds with the harmonic (space-mean) speed of the vehicles, not the average of spot speeds at a point.