14 · When to Leave for JFK

Real taxi rides from Midtown to the airport, five years of them: how long the ride takes at each hour, how unlucky you can get, and the queue behind it

Every yellow taxi ride from Midtown Manhattan to JFK or LaGuardia, grouped by the hour it started, for five years: 2018, 2019, 2020, 2023 and 2025. Pick a year, and compare it with another.

How to read the chart. Pick an hour on the bottom axis and read straight up. Imagine 100 taxi rides that left Midtown in that hour, lined up from the fastest to the slowest:

For example, at 4 p.m. on a weekday in 2023, ride 10 took 56 minutes, ride 50 took 74 and ride 90 took 93.

NoteBefore you look: predict

You take a taxi from Midtown to JFK at 4 p.m. on a weekday. How much time should you allow so that nine times out of ten you get there in time: 45 minutes, an hour, or an hour and a half?

Data: NYC TLC, Yellow Taxi Trip Data, NYC Open Data · © 2026 Wuping Xin · CC BY-NC-SA 4.0

What it shows

The average is not what makes you miss a flight; the spread is. At 4 p.m. the typical ride to JFK takes about two and a half times as long as at 2 a.m., and the unlucky tenth of rides take about 20 minutes more than the typical one. Traffic engineers call that extra margin the buffer time: how much more than the average a traveller must allow to arrive on time nearly always. Agencies measure a road’s reliability this way, and so should you before a flight.

Why is 2020 faster? Set the year to 2020 and compare with 2019. At 2 a.m. the two years agree (about 28 minutes), but at 4 p.m. the typical weekday ride to JFK took 64 minutes in 2020 against 73 in 2019, and ride 90 took 81 against 93. The pandemic emptied the city from March 2020: the data hold about 22,000 weekday taxi rides to JFK that year, against 127,000 in 2019. The empty-road ride did not change; only the congested hours got faster. Take some demand away from a road near capacity, and the queue shrinks far more than the demand does.

The queue behind the delay

Why does the 4 p.m. ride take so long? Cheng, Liu, Guo, Wu, Pendyala, Belezamo and Zhou (Transportation Research Part C, 2022) studied this very trip, Midtown to JFK, with taxi rides from October 2018. They read the afternoon’s extra minutes as one queue at one bottleneck: cars arrive faster than the bottleneck lets them through, the queue grows, and then it drains. A few numbers describe the whole afternoon.

NoteBefore you look: predict

Did the afternoon queue on the way to JFK start earlier in 2023 than in 2018, or later?

Data: NYC TLC, Yellow Taxi Trip Data, NYC Open Data · model: Cheng et al. (2022) · © 2026 Wuping Xin · CC BY-NC-SA 4.0
NoteHow to read it
  • Top plot, dots: the median taxi ride from Midtown to JFK for each quarter hour of the weekday, minus the ride in the evening after the queue has cleared (8:30 to 9:45 p.m.): the extra minutes spent in the queue. Curve: the queue model fitted to the dots. The shaded band is the time the queue exists.
  • The model (Cheng et al. 2022, after Newell): one bottleneck lets cars through at a constant rate (its capacity). Cars arrive at a rate that rises and then falls; the paper shapes it as a cubic curve in time. The queue grows while arrivals beat capacity and shrinks after. Four numbers fix it here: when the queue starts, when it clears, how big it gets, and the oversaturation factor m, the share of the queue’s life spent growing.
  • Bottom plot: demand divided by capacity. It comes from the delay alone: delay = queue ÷ capacity, so its slope is (arrival rate − capacity) ÷ capacity. Red: demand above capacity, the queue grows. Green: below, it drains. The dot is the peak.
  • Factor m slider: the oversaturation factor; move m away from the best fit and watch R² fall: how sharply the data pin down the shape of the afternoon.
  • The table compares the years; * marks a year whose queue start sits at the edge of the fitted window.
  • Why JFK only: LaGuardia’s afternoon delay is short and flat, and the one-queue model fits it poorly (R² below 0.8).
  • Caveats: a taxi ride passes several bottlenecks (Midtown streets, the tunnel or bridge, the expressways); the model lumps them into one. Taxi times are meter times, rides under 8 or over 180 minutes are left out, and the medians use every weekday of each year.

Reference. Cheng, Q., Liu, Z., Guo, J., Wu, X., Pendyala, R., Belezamo, B. and Zhou, X. S. (2022). Estimating key traffic state parameters through parsimonious spatial queue models. Transportation Research Part C 137, 103596. https://doi.org/10.1016/j.trc.2022.103596. Queues at a bottleneck are built by hand in Lectures 5 and 6.

Data: New York City Taxi and Limousine Commission, Yellow Taxi Trip Data for 2018, 2019, 2020, 2023 and 2025, NYC Open Data. Rides from TLC zones 161–164 (Midtown) and 230 (Times Square) to zone 132 (JFK) or 138 (LaGuardia); trip times are meter times, from pickup to drop-off, and rides under 8 or over 180 minutes are left out.