All tools Print with PE stamp box Designed for sealed engineering submittals — print drops PE stamp + signature block at the end.

Traffic Flow Calculator — Greenshields Model, PHF, Design Hour Volume & Speeds

The traffic-stream fundamentals in one place. The Greenshields model gives capacity, critical density and speed, the speed and flow at any density, and both densities that carry a given flow. Below it are the peak hour factor and 15-minute flow rate, design hour volume from AADT with K and D factors, and time-mean versus space-mean speed from a spot speed study.

Greenshields speed–flow–density model

mi/h
veh/mi/ln
veh/mi/ln
in one direction
veh/h/ln
—veh/h/ln
—veh/mi/ln
—mi/h
—mi/h
—veh/h/ln · — veh/h all lanes
—s headway · — ft spacing
—
—veh/mi/ln at — mi/h
—veh/mi/ln at — mi/h

Flow–density parabola. The slope of the dashed ray from the origin to the operating point is the space-mean speed.

Peak hour factor

veh/h
veh
—
—veh/h

Design hour volume

veh/day (two-way)
design-hour share of AADT
peak-direction share
—veh/h (two-way)
—veh/h (peak direction)

Spot speed study

mi/h, separated by spaces or commas
—
—mi/h
—mi/h
—mi/h
—mi/h (interpolated)
Fundamental relation and Greenshields' linear speed–density model:
$$ q = k\,v_s, \qquad v_s = v_f\left(1 - \frac{k}{k_j}\right) \;\Rightarrow\; q = v_f\left(k - \frac{k^2}{k_j}\right), \qquad q_{max} = \frac{v_f k_j}{4} $$
Densities that carry a given flow q (two roots — uncongested and congested):
$$ k = \frac{k_j}{2}\left(1 \mp \sqrt{1 - \frac{q}{q_{max}}}\right) $$
$$ \text{PHF} = \frac{V}{4\,V_{15}}, \qquad \bar{v}_t = \frac{1}{n}\sum v_i, \qquad \bar{v}_s = \frac{n}{\sum 1/v_i}, \qquad h = \frac{3600}{q}, \qquad s = \frac{5280}{k} $$
q flow (veh/h/ln) · k density (veh/mi/ln) · vs space-mean speed · vf free-flow speed · kj jam density · h average headway (s) · s average spacing (ft).

Flow, density and speed

Three measures describe a traffic stream. Flow q is vehicles passing a point per hour. Density k is vehicles occupying a mile of lane at an instant. Space-mean speed vs is the average speed of those vehicles over the length. They are tied together by the identity q = k·vs, which holds for any stream. A model is needed only to say how speed changes with density; Greenshields' straight line is the simplest, and it is the one most textbook and exam problems use.

From the identity, average headway is h = 3,600/q seconds and average spacing is s = 5,280/k feet. At capacity in the default example (2,700 veh/h/ln, 90 veh/mi/ln) that is a 1.33-s headway and 59-ft spacing.

Typical traffic-stream parameters (planning values)
ParameterTypical rangeNotes
Jam density, kj165–265 veh/mi/lnabout 20–32 ft per stopped vehicle
Freeway capacity (HCM)2,250–2,400 pc/h/lndepends on free-flow speed (55–75 mi/h)
Density at freeway capacity (HCM)45 pc/mi/lnLOS E/F boundary
Peak hour factor0.80–0.98HCM default 0.94 urban, 0.88 rural
K factor0.08–0.12 urban; 0.12–0.18 rural/recreationalshare of AADT in the design hour
D factor0.50–0.60 urban; 0.60–0.70 ruralpeak-direction share
Saturation headway at signals1.8–2.2 sabout 1,600–2,000 veh/h/ln

Peak hour factor and design volumes

Traffic is not uniform within the peak hour. HCM analyses use the flow rate in the worst 15 minutes, v = V/PHF. A PHF of 1.00 means perfectly uniform flow; the theoretical minimum is 0.25, when the entire hour's traffic arrives in one 15-minute period. Design volumes for a new or widened road start from AADT: DHV = K·AADT for both directions together, and DDHV = K·D·AADT for the heavier direction, which is what sets the number of lanes.

Worked examples

Example 1 — Greenshields

Given: vf = 60 mi/h, kj = 180 veh/mi/ln. Find capacity, and conditions at k = 40 veh/mi/ln and at q = 2,000 veh/h/ln.
qmax = 60 × 180 / 4 = 2,700 veh/h/ln at kc = 90 veh/mi/ln and vc = 30 mi/h.
At k = 40: v = 60(1 − 40/180) = 46.7 mi/h; q = 40 × 46.7 = 1,867 veh/h/ln; headway 1.93 s; spacing 132 ft.
At q = 2,000: √(1 − 2,000/2,700) = 0.509, so k = 90(1 ∓ 0.509) = 44.2 veh/mi/ln at 45.3 mi/h, or 135.8 veh/mi/ln at 14.7 mi/h in congestion.
Capacity 2,700 veh/h/ln; the same 2,000 veh/h/ln flows at 45 mi/h free or 15 mi/h queued.

Example 2 — Spot speeds

Given: spot speeds 52, 58, 61, 55, 49, 63, 57, 60, 54, 66 mi/h.
Time-mean speed = 575/10 = 57.50 mi/h.
Space-mean speed = 10 / Σ(1/vᵢ) = 10 / 0.17521 = 57.07 mi/h — slightly lower, as it must be.
Standard deviation 5.19 mi/h; 85th percentile ≈ 62.3 mi/h (interpolated in the ranked list).
Use 57.07 mi/h, not 57.50, in q = k·v.

Limits of this tool

Frequently asked questions

What is the Greenshields model?

Greenshields (1935) observed that speed falls roughly linearly with density: v = vf(1 − k/kj). Combined with the fundamental relation q = k·v, flow becomes a parabola in density, q = vf(k − k²/kj). Flow is zero at k = 0 (no cars) and at k = kj (jammed), and peaks at capacity qmax = vf·kj/4 when k = kj/2 and v = vf/2.

How do you calculate capacity from free-flow speed and jam density?

Under Greenshields, qmax = vf·kj/4. For vf = 60 mi/h and kj = 180 veh/mi/ln, capacity is 60 × 180 / 4 = 2,700 veh/h/ln, reached at 90 veh/mi/ln and 30 mi/h. Real freeways reach capacity at higher speeds (about 50 mi/h in the HCM speed-flow curves), so use Greenshields for exam-style problems and the HCM for design.

How do you calculate the peak hour factor?

PHF = V / (4 × V15), where V is the hourly volume and V15 is the volume in the busiest 15 minutes of that hour. If 1,800 vehicles pass in an hour and 500 in the peak 15 minutes, PHF = 1,800 / 2,000 = 0.90. Divide hourly volume by PHF to get the peak 15-minute flow rate used in HCM analyses.

What is the difference between time-mean speed and space-mean speed?

Time-mean speed is the arithmetic average of spot speeds measured at a point. Space-mean speed is the average speed of the vehicles occupying a length of road at an instant; from spot speeds it is the harmonic mean, n / Σ(1/vᵢ). Space-mean speed is always less than or equal to time-mean speed and is the speed that belongs in q = k·v.

What are the K and D factors?

K is the fraction of AADT that occurs in the design hour (often the 30th highest hour of the year), commonly 0.08–0.12 for urban roads and higher on rural recreational routes. D is the fraction of the design-hour traffic in the heavier direction, typically 0.55–0.70. DDHV = AADT × K × D.

Why does one flow correspond to two densities?

Below capacity, the same flow can be carried by few fast vehicles (uncongested) or many slow ones (congested, after breakdown). The calculator solves the quadratic for both roots. Which one applies depends on whether a queue has formed upstream of a bottleneck.

References: Greenshields, B.D. (1935), "A study of traffic capacity," Proc. Highway Research Board 14, 448–477. Transportation Research Board, Highway Capacity Manual, 7th ed. (2022), ch. 4 (traffic flow and capacity concepts). Mannering, F.L. and Washburn, S.S., Principles of Highway Engineering and Traffic Analysis, 7th ed., Wiley (2020), ch. 5. Garber, N.J. and Hoel, L.A., Traffic and Highway Engineering, 5th ed., Cengage (2015), ch. 4 and 6.

Related tools

Monthly engineering case studies

One real stormwater or hydraulics design problem per month, with the math worked out and the gotchas called out. No tutorials, no fluff.

Free. Unsubscribe anytime. Privacy.

Engineer of Record — Stamp & Signature
APPLY PE STAMP HERE
Engineer Name
License No.
State
Signature
Date
Project / Sheet
By stamping and signing, the Engineer of Record certifies that the inputs, formulas, and applicability of this calculation have been reviewed for the specific design context. PE-Calc tools provide computational support only — the engineer is responsible for verifying results, applying engineering judgment, and complying with applicable codes and standards.
Calculation generated at pe-calc.com