Traffic density is the simplest measure of how crowded a road is: the number of vehicles on each mile of it. A low density means free-flowing traffic and room to spare, while a high density means slow speeds, tight spacing and a real risk of stop-and-go congestion. This traffic density calculator turns a vehicle count, a segment length and a lane count into density per mile and per kilometre, average spacing in feet, traffic flow in vehicles per hour, and a Highway Capacity Manual level of service grade from A to F.
Leave the average speed at 0 if you do not know it. Density, spacing and level of service still work, and only the traffic flow row is left blank.
Please enter vehicles above 0, a segment length above 0 miles, lanes above 0, and a speed of 0 or above.
| Vehicles | Density (veh/mi) | Density per Lane (veh/mi/ln) | Spacing (ft) | Flow (veh/h) | LOS |
|---|
All rows use the segment length, number of lanes and average speed you entered above. Level of Service is based on the per-lane density using the Highway Capacity Manual thresholds for basic freeway segments.
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
The Traffic Density Calculator is a free tool that measures how crowded a road segment is. You enter the number of vehicles on the segment, the segment length in miles, the number of lanes, and optionally the average speed. The calculator returns the total density in vehicles per mile, the density per lane, both figures in vehicles per kilometre, the average spacing between vehicles in feet, the traffic flow in vehicles per hour, and a level of service (LOS) grade from A to F.
Density is measured per lane for the level of service grade, because a road with three lanes carries the same number of vehicles far more comfortably than a single-lane road. The LOS thresholds come from the Highway Capacity Manual (HCM) for basic freeway segments: A up to 11, B up to 18, C up to 26, D up to 35, E up to 45, and F above 45 passenger cars per mile per lane. The HCM thresholds are written in passenger cars, and this calculator counts every vehicle as a passenger car, with no adjustment for trucks or buses, so the grade is an estimate rather than a formal HCM analysis. The thresholds also apply to basic freeway segments, not to signalised streets or intersections, where level of service is judged by delay instead of density.
Density (total) = Vehicles / Segment length in miles
Density per lane = Density (total) / Number of lanes
Density (metric) = Density / 1.609344, giving vehicles per kilometre
Average spacing = 5,280 / Density per lane, giving feet between vehicles in the same lane
Traffic flow = Density (total) x Average speed, giving vehicles per hour. This is the same as per-lane density x speed x number of lanes. It is the fundamental relation of traffic flow, q = k x v, where q is flow, k is density and v is speed.
Level of Service is graded on the per-lane density using the HCM thresholds for basic freeway segments: A at 11 or below, B above 11 up to 18, C above 18 up to 26, D above 26 up to 35, E above 35 up to 45, and F above 45 vehicles per mile per lane.
Take a 2 mile stretch of a 3 lane freeway with 120 vehicles on it, moving at an average speed of 55 mph.
First, the total density is 120 / 2 = 60.00 vehicles per mile.
The per-lane density is 60 / 3 = 20.00 vehicles per mile per lane.
In metric units, the total density is 60 / 1.609344 = 37.28 vehicles per km, and the per-lane density is 20 / 1.609344 = 12.43 vehicles per km per lane.
The average spacing is 5,280 / 20 = 264.00 feet between vehicles in the same lane. You can check this another way: each lane holds 120 / 3 = 40 vehicles over 2 miles, which is 10,560 feet, and 10,560 / 40 = 264 feet.
The traffic flow is 60 x 55 = 3,300 vehicles per hour.
The per-lane density of 20 falls in the 18 to 26 band, so the level of service is C, stable flow.
On a freeway, a per-lane density of 11 vehicles per mile per lane or less is level of service A, free flow, and up to 18 is level of service B, reasonably free flow. Between 18 and 26 is level of service C, stable flow, where traffic still moves well but lane changes need care. Above 26 the road is approaching unstable flow, and above 45 it is in breakdown. As a rule of thumb, keep per-lane density under 26 for comfortable driving and under 18 for genuinely free-flowing traffic.
Density counts how many vehicles are on a stretch of road at one moment, in vehicles per mile. Flow counts how many vehicles pass a point in an hour, in vehicles per hour. They are linked by speed through the fundamental relation of traffic flow: flow equals density times speed. A road can have high flow with low density if vehicles are moving fast, or high density with low flow if vehicles are crawling, which is exactly what happens in a jam.
Higher density forces lower speeds. At level of service A and B, traffic moves at or near the free-flow speed, so travel time is close to the minimum for the distance. At level of service D and E, speeds drop and small disturbances, such as a lane change or a braking driver, can trigger queues that add minutes to a trip. At level of service F, travel time becomes unpredictable. Once you know the density of your route, use the Drive Time Calculator to estimate how long the trip will take at the speed traffic is actually moving.
Level of service is the Highway Capacity Manual’s A to F grade for how well a road is operating, with A the best and F the worst. For basic freeway segments it is set by density per lane: A up to 11, B up to 18, C up to 26, D up to 35, E up to 45, and F above 45 passenger cars per mile per lane. A means free flow with complete freedom to choose speed and lane, C means stable flow with noticeable constraints, E means the road is at or near capacity, and F means forced flow with queues and stop-and-go waves. This calculator grades on the per-lane density using those thresholds.
The density, spacing and flow figures work on any road, because they are simple counts and arithmetic. The level of service grade is different: the HCM density thresholds used here apply to basic freeway segments. On city streets with traffic signals, level of service is judged mainly by delay at intersections, not by density, so an LOS grade from this calculator is only a rough guide for an urban arterial. Use the density and spacing numbers on any road, and treat the LOS grade as freeway-specific.
This calculator provides an estimate for general information only. The level of service grade uses the Highway Capacity Manual thresholds for basic freeway segments and counts every vehicle as a passenger car, with no adjustment for trucks, buses, grades, lane width or weather, so it is an approximation rather than a formal HCM analysis. The thresholds do not apply to signalised streets, intersections, weaving sections or merge and diverge areas, where level of service is judged differently. Actual traffic conditions depend on driver behaviour, incidents and road design, and may differ from the estimate. Do not use this calculator for engineering design or traffic management decisions without a qualified traffic study.
ADVERTISEMENT
ADVERTISEMENT