A traffic density calculator uses the basic traffic flow equation to find the density of vehicles on a road from the flow and the average speed, or to find the flow or the speed from the other two. Enter the numbers per lane in US or metric units and the calculator shows the density, flow and speed, the total flow across all lanes, the average gap between vehicles in time and distance, and a rough traffic condition from free flow to a jam.
The traffic density formula
Flow q = density k × speed v
Density k = flow q ÷ speed v
Speed v = flow q ÷ density k
Headway h = 1 ÷ q
Wikipedia's Traffic flow article gives the fundamental relation q = kv. Flow is the number of vehicles passing a point in a unit of time, in vehicles per hour. Density is the number of vehicles per unit length of road, usually per mile or per kilometre of lane. The speed in the relation is the space mean speed, the average speed of all the vehicles on a stretch of road at one moment. The same article gives flow as the inverse of the headway, the time between successive vehicles passing a point.
How to use the traffic density calculator
- Choose what to solve for. Density is the default; you can also solve for flow or speed.
- Choose US or metric. US uses vehicles per mile and miles per hour; metric uses vehicles per kilometre and kilometres per hour.
- Enter the two known values per lane. Flow is in vehicles per hour per lane.
- Add the number of lanes if you want the total flow for the whole road.
- Press Calculate to see the result and the traffic condition.
Worked example
A count on a motorway lane finds 1,500 vehicles per hour, and the average speed on the stretch is 60 miles per hour. The density is 1,500 ÷ 60 = 25 vehicles per mile per lane, which Wikipedia's bands describe as stable flow. The average headway is 3,600 seconds ÷ 1,500 = 2.4 seconds, and the average spacing from the front of one vehicle to the front of the next is 5,280 feet ÷ 25 = 211.2 feet. With three lanes the road carries 4,500 vehicles per hour in that direction.
In the other direction, if a traffic camera shows 40 vehicles per mile per lane moving at 35 miles per hour, the flow is 40 × 35 = 1,400 vehicles per hour per lane. The density is above 30, so the flow is in the unstable range, where small disturbances can turn into stop-and-go waves.
Traffic condition bands
| Density (vehicles per mile per lane) | Condition |
|---|---|
| Under 12 | Free flow |
| 12 to 30 | Stable flow |
| Over 30 | Unstable flow |
| Over 67 | Breakdown |
| 185 to 250 | Jam density, traffic stops |
These bands come from the overview in Wikipedia's Traffic flow article. It describes flow as free below 12 vehicles per mile per lane and stable between about 12 and 30. Above 30 the flow becomes unstable, and a breakdown occurs when traffic is unstable and density goes beyond 67. Jam density, where traffic stops completely, is usually in the range of 185 to 250 vehicles per mile per lane. The article adds that jam density is in general about five times the critical density. In metric mode the calculator converts your density to vehicles per mile with 1 mile = 1.609344 km before choosing a band.
Why flow and density are not the same
A road with few cars moving fast and a road with many cars moving slowly can carry the same flow. At low densities, adding vehicles raises the flow because each one keeps moving at a good speed. As density keeps rising, speeds fall, and past a certain point the flow drops even though there are more vehicles on the road. That is why a congested motorway can move fewer vehicles per hour than the same motorway at a lighter, faster density. Knowing both the flow and the density tells you which side of that peak a road is on.
Headway and spacing
The headway is the average time between vehicles passing a point, worked out as 3,600 seconds divided by the flow per hour. The spacing is the average distance from one vehicle to the next, worked out as one mile or one kilometre divided by the density. They show the same traffic from two angles: a headway of 2 seconds at 60 miles per hour means vehicles are about 176 feet apart. Short headways at high speed leave little time to react, which is one reason dense, fast traffic is prone to sudden slowdowns.
Who uses traffic density
Traffic engineers use density to rate how well a road is working and to plan new lanes, ramp meters and signal timings. Students meet q = kv in transport and civil engineering courses. Drivers and commuters can use the calculator to understand why traffic slows at certain times. For converting between speed units, use the speed converter, and for the cost of a journey, try the trip cost calculator.
Common mistakes
- Mixing per-lane and whole-road figures. Enter flow and density for one lane, then add the number of lanes.
- Using a spot speed. The relation uses the average speed of vehicles on the stretch, not the speed of one car or the speed limit.
- Mixing units. Use vehicles per mile with miles per hour, or vehicles per kilometre with kilometres per hour.
- Expecting exact bands. The condition bands are rough guides, not hard limits.
What next
Use this often? Add Traffic Dens to your Home screen.
Frequently asked questions
How does a traffic density calculator work?
It uses the traffic flow relation q = k × v. Density is the flow in vehicles per hour per lane divided by the average speed, giving vehicles per mile or kilometre per lane.
What is traffic density?
Wikipedia defines density as the number of vehicles per unit length of roadway, usually given per mile or kilometre per lane.
What density counts as a traffic jam?
Wikipedia's Traffic flow article puts jam density, where traffic stops completely, usually at 185 to 250 vehicles per mile per lane. Breakdown can start above 67.
What is headway in traffic?
Headway is the time between successive vehicles passing a point. Flow is its inverse, so 1,500 vehicles per hour means an average headway of 2.4 seconds.
Which speed should I use?
Use the space mean speed: the average speed of the vehicles on the stretch of road, not one car's speed or the speed limit.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.