short · 3 min
Tail latency
p95 and p99: why the average hides the slow calls users complain about.
updated 29 Sept 2026
Most requests to a service take about 50 ms. One in twenty takes a full second. What's the average? Roughly 100 ms.
Now, which request took 100 ms? None of them. The fast ones were twice as quick as that, the slow ones ten times slower. The average describes nobody, and if that slow one-in-twenty got worse, the average would barely show it.
So we stop treating latency as one number and look at the whole spread. The slow end of it is the tail, and the users stuck in it are the ones who write in.
Reading the spread
We read it with percentiles. p50, the median, is the typical call: half are faster. p95 is the time that 95% of calls beat, so one in twenty is slower. p99 is one in a hundred. (User studies have found people prefer a slightly slower system to one whose response time jumps around, so the spread matters on its own.)
For a model call, the slow tail comes from the things in LLM latency: a long answer, a busy queue, a huge prompt, a reasoning model that thinks for a while.
One slow call in a hundred, many times over
Here's where the tail stops being a detail. Say a call is slow one time in a hundred. If a user's request makes that call once, 1% of users wait. But what if the request has to wait for 100 such calls? It only takes one slow call to hold everything up, so the chance that at least one is slow is 1 − 0.99¹⁰⁰. That's about 63%. Most users now wait.
That math comes from Google's large web services, where one request can fan out to thousands of servers. Even a slowdown that hits 1 call in 10,000 reaches nearly one request in five at 2,000 servers. In one real service, waiting for the slowest 5% of sub-requests made up half of the total p99.
Our LLM apps don't fan out to 2,000 servers, but they do stack calls. An agent might make ten model calls and a dozen tool calls for one task. With ten steps, each slow 1% of the time, almost one task in ten hits a slow step. So the app's p99 is set by the p99 of its parts, not their medians.
Ask twice
One fix from big web services is the hedged request. Send the request, and if it hasn't come back by the time 95% of requests normally take, send a copy somewhere else and use whichever answers first. Waiting until p95 keeps the extra load to about 5% of requests.
Why would a copy be faster? Because a slow response is usually caused by something else going on at that machine, not by the request itself, so a second try often lands somewhere quicker. In one Google test, hedging after 10 ms cut the 99.9th-percentile time from 1,800 ms to 74 ms while sending only 2% more requests.
What changes for model calls
Two things. First, we usually can't see the tail from outside. The well-known public speed charts for LLM APIs show medians. To know your p99 you have to log your own calls, and lots of them: with only 100 calls, your p99 is decided by a single one.
Second, the hedging research was about cheap web lookups. A duplicate model call isn't cheap; we pay for the tokens of both. The fan-out math carries over to any request that waits on several calls, but the cost side doesn't. Whether a second attempt is worth it is something to measure on your own traffic: set a timeout near your p95, try again (close to retries with a timeout, or switching providers), and see what it does to the tail and to the bill.
Further reading
- The Tail at Scale, Jeffrey Dean and Luiz André Barroso (Google), 2013. The classic paper. The fan-out math and hedged requests are both here, and it's short.
- Service Level Objectives, Chris Jones, John Wilkes, Niall Murphy and Cody Smith (Google), 2016. The chapter that makes the case for percentiles over averages.