Traffic Flow Calculator
Calculate traffic flow rate, density, and speed using the fundamental traffic flow equation. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Traffic Flow Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: q = k x u | Capacity = uf x kj / 4
Worked example โ Density: 31.0 veh/mi/ln | V/C: 0.429 | LOS D (Approaching unstable flow)
Formula
q = k x u | Capacity = uf x kj / 4
Where q is flow rate (veh/hr), k is density (veh/mi), u is speed (mph), uf is free-flow speed, and kj is jam density. The Greenshields model assumes a linear speed-density relationship and yields a parabolic flow-density curve with maximum capacity at half the jam density.
Worked Examples
Example 1: Freeway Segment Analysis
Problem:A 3-lane freeway carries 5,400 vehicles per hour at a mean speed of 58 mph. Free-flow speed is 70 mph and jam density is 240 veh/mi. Determine LOS and v/c ratio.
Solution:Flow per lane = 5400 / 3 = 1800 veh/hr/ln Density k = q / u = 5400 / 58 = 93.1 veh/mi total = 31.0 veh/mi/ln Capacity = uf x kj / 4 = 70 x 240 / 4 = 4200 veh/hr per lane Total capacity = 4200 x 3 = 12,600 veh/hr V/C ratio = 5400 / 12600 = 0.429 LOS based on density of 31.0 pc/mi/ln = LOS D (26-35 range)
Result:Density: 31.0 veh/mi/ln | V/C: 0.429 | LOS D (Approaching unstable flow)
Example 2: Two-Lane Highway Capacity Check
Problem:A two-lane highway has a volume of 1,200 veh/hr with average speed of 48 mph. Free-flow speed is 55 mph, jam density is 200 veh/mi. Is this near capacity?
Solution:Density = 1200 / 48 = 25.0 veh/mi total = 12.5 veh/mi/ln Capacity = uf x kj / 4 = 55 x 200 / 4 = 2750 veh/hr total V/C ratio = 1200 / 2750 = 0.436 Density per lane = 12.5, which is LOS B (11-18 range) Headway = 3600 / (1200/2) = 6.0 seconds
Result:Density: 12.5 veh/mi/ln | V/C: 0.436 | LOS B (Reasonably free flow) | 6.0s headway
Frequently Asked Questions
What is the fundamental traffic flow equation and what does it describe?
The fundamental traffic flow equation is q = k x u, where q is the flow rate (vehicles per hour), k is the density (vehicles per mile), and u is the space mean speed (miles per hour). This deceptively simple equation describes the macroscopic relationship between the three fundamental traffic stream variables. It forms the basis of all traffic flow theory and is used in highway capacity analysis, traffic simulation, and congestion management. The equation tells us that traffic flow is the product of how many vehicles occupy a stretch of road and how fast they are moving. Understanding this relationship is essential because increasing density beyond a critical point actually reduces flow, which is the fundamental mechanism of traffic congestion and breakdown.
What is Level of Service (LOS) and how is it determined?
Level of Service (LOS) is a qualitative measure that characterizes traffic operating conditions from the perspective of road users, graded from A (best) through F (worst). The Highway Capacity Manual (HCM) defines LOS criteria based on different measures for different facility types. For freeways, LOS is based on density per lane (passenger cars per mile per lane). LOS A represents free-flow conditions with density at or below 11 pc/mi/ln, while LOS F represents breakdown conditions with density exceeding 45 pc/mi/ln. For signalized intersections, LOS is based on average control delay per vehicle. For urban streets, LOS uses travel speed as a percentage of free-flow speed. Transportation agencies use LOS to evaluate existing conditions, compare design alternatives, and set performance standards for development approvals.
What is the Greenshields traffic flow model and its assumptions?
The Greenshields model, proposed by Bruce Greenshields in 1935, was the first mathematical model relating speed and density in traffic streams. It assumes a linear relationship: u = uf x (1 - k/kj), where uf is the free-flow speed and kj is the jam density. This leads to a parabolic flow-density relationship with maximum flow (capacity) occurring at the critical density kc = kj/2 and capacity speed uc = uf/2. While simple, this model captures the fundamental behavior that speed decreases as density increases. Its main limitation is that it assumes the speed-density relationship is linear across all densities, which field data shows is not exactly true. Real traffic data typically shows that speed remains near free-flow until density reaches a threshold, then drops more rapidly. Despite this, Greenshields remains widely used for its mathematical simplicity and reasonable approximations.
What is the difference between flow rate and volume in traffic engineering?
Volume is the total number of vehicles passing a point during a specified time period, typically one hour, while flow rate is the equivalent hourly rate at which vehicles pass a point during a sub-hourly period, typically the peak 15 minutes. The relationship is: flow rate = volume / PHF, where PHF is the Peak Hour Factor. For example, if 3,600 vehicles pass in one hour but 1,080 pass during the busiest 15 minutes, the hourly volume is 3,600 veh/hr but the peak flow rate is 1,080 x 4 = 4,320 veh/hr. The PHF = 3,600/4,320 = 0.833. This distinction matters because capacity analysis uses peak flow rates, not hourly volumes, since congestion occurs during the peak period within the peak hour. A PHF of 1.0 means perfectly uniform flow, while values below 0.80 indicate highly peaked demand.
How does traffic density relate to congestion and what is jam density?
Traffic density is the number of vehicles occupying a given length of road at an instant in time, measured in vehicles per mile (or per kilometer). As density increases from zero, flow initially increases because more vehicles are present. However, beyond the critical density, vehicles begin interfering with each other, speeds drop, and flow actually decreases despite more vehicles being present. This is the mechanism of congestion. Jam density (kj) is the theoretical maximum density when traffic comes to a complete standstill, typically 180-250 vehicles per mile per lane depending on vehicle mix and spacing. At jam density, speed and flow are both zero. The critical density (kc) where maximum flow occurs is approximately half the jam density in the Greenshields model. Traffic management strategies like ramp metering aim to keep density below the critical value to prevent breakdown.
What factors affect highway capacity and how are they measured?
Highway capacity is influenced by numerous factors categorized as roadway, traffic, and control conditions. Roadway factors include lane width (ideal is 12 feet), shoulder width (6+ feet), horizontal alignment, grades, and number of lanes. Traffic factors include the percentage of heavy vehicles (trucks reduce capacity due to their larger size and slower acceleration), driver population (commuters perform better than recreational drivers), and directional distribution. Control factors include speed limits, access points, and signal timing for arterials. The HCM uses adjustment factors to convert ideal capacity (2,400 pc/hr/ln for freeways) to actual capacity. For example, a 3% upgrade with 10% trucks might reduce capacity by 15-20%. The peak hour factor, heavy vehicle adjustment factor, and driver population factor are combined to determine the service flow rate.
What is the concept of traffic wave theory and shock waves?
Traffic wave theory, developed by Lighthill, Whitham, and Richards (LWR theory), describes how disturbances propagate through traffic streams as waves. When a vehicle brakes, the deceleration propagates backward through the traffic stream as a shock wave. The speed of this shock wave is calculated as w = (q2 - q1) / (k2 - k1), where the subscripts represent conditions upstream and downstream of the wave. Backward-moving shock waves (negative speed) create the familiar stop-and-go pattern in congested traffic. A vehicle at the back of a queue may have to stop long after the original disturbance has cleared. Understanding shock waves is essential for designing ramp metering systems, variable speed limits, and incident management strategies. Shock waves can persist for hours after the initial cause has been resolved, which is why traffic jams seem to appear without any visible reason.
How is traffic flow data collected and what technologies are used?
Traffic flow data is collected using a variety of technologies, each with different capabilities and accuracy levels. Inductive loop detectors embedded in the pavement are the most established method, counting vehicles and measuring speed and occupancy. Video detection systems use cameras with image processing algorithms to count vehicles and classify them by type. Radar and microwave sensors can measure speed and count vehicles without being embedded in the pavement. Bluetooth and Wi-Fi sensors detect electronic devices in passing vehicles to estimate travel times and origin-destination patterns. Modern connected vehicle data from GPS-equipped vehicles provides speed and travel time information across entire road networks. Crowdsourced data from smartphone apps like Google Maps and Waze provides real-time speed information. Each method has tradeoffs in cost, accuracy, maintenance requirements, and the types of data collected.
What is the Highway Capacity Manual and how is it used in practice?
The Highway Capacity Manual (HCM), published by the Transportation Research Board (TRB), is the definitive reference for traffic capacity and quality of service analysis in the United States and many other countries. Now in its 7th edition, the HCM provides methodologies for analyzing freeways, multilane highways, two-lane highways, signalized and unsignalized intersections, urban streets, pedestrian and bicycle facilities, and transit. Engineers use the HCM to evaluate existing conditions, analyze the impact of proposed developments, compare design alternatives, and determine when capacity improvements are needed. The HCM methodologies are implemented in software like HCS (Highway Capacity Software) and Synchro. Results are typically expressed as Level of Service (LOS), and many jurisdictions require a minimum LOS C or D as a development approval standard.
How do ramp metering and adaptive signal control improve traffic flow?
Ramp metering controls the rate at which vehicles enter a freeway by using traffic signals on entrance ramps, preventing the mainline density from exceeding the critical density that causes breakdown. Studies show ramp metering can increase throughput by 5-10% and reduce crashes by 15-50%. The ALINEA algorithm is one of the most effective, adjusting the metering rate based on downstream occupancy measured by loop detectors. Adaptive signal control systems (like SCOOT, SCATS, and InSync) adjust signal timing in real-time based on detected traffic demand, rather than using fixed time-of-day plans. These systems can reduce delays by 10-25% compared to fixed-time signals. Coordinated signal timing (green waves) allows platoons of vehicles to progress through consecutive intersections without stopping, which increases throughput and reduces emissions. Both strategies are examples of Transportation Systems Management and Operations (TSMO) approaches that maximize the capacity of existing infrastructure.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐Content Refresh Traffic Planner
Estimate traffic recovery from updating decaying content
๐งฎPipe Flow Darcy Weisbach Calculator
Calculate pipe flow darcy weisbach with inputs, formulas, and instant results.
๐งฎOrifice Flow Calculator
Calculate flow rate through an orifice plate from differential pressure and orifice diameter.
๐งฎFlow Rate Calculator
Calculate volumetric and mass flow rate from pipe diameter, velocity, and fluid density.
๐งฎWeir Flow Calculator
Calculate flow rate over rectangular, V-notch, and Cipolletti weirs from head measurement.
๐งฎTraffic Signal Timing Calculator
Calculate green, yellow, and all-red phase timing for traffic signal intersections.
๐งฎMannings Equation Calculator
Calculate open channel flow velocity and discharge using Manning roughness equation.
๐งฎHazen Williams Calculator
Calculate pipe flow velocity and head loss using the Hazen-Williams equation.