Percentile

A percentile is the value located N% of the way up from the bottom when values are sorted in ascending order. p50 is the median, and p95 and p99 represent the slow end; they put a number on "the slowness some users are experiencing" that cannot be seen from the average.

Overview

A percentile is a statistic that sorts the collected values in ascending order and extracts the single value located N% of the way up from the bottom. If the p99 of response time is 1,000 ms, it means 99% of requests completed within 1,000 ms and the remaining 1% were slower than that. In Datadog, this value appears in DISTRIBUTION-type metrics, APM latency, monitor thresholds, and SLO targets. The situations where it matters are when complaints come in even though the average on the dashboard is calm, when you want to combine per-host p99 values into a single line, and when you translate an SLO's "95% within how many seconds" into a number.

The value located N% of the way up from the bottom

A percentile is what you get by sorting the collected values in ascending order and extracting the single value located N% of the way up from the bottom. p50 is the middle value, the same as the median; p95 is the position 95% up from the bottom, and p99 the position 99% up from the bottom. How it differs from the average becomes clear when you line up one set of hypothetical numbers.

Average versus percentiles compared over 100 hypothetical requests
Breakdown (hypothetical values)Averagep50p95p99Maximum
80 at 100 ms / 15 at 300 ms / 4 at 1,000 ms / 1 at 8,000 ms245 ms100 ms300 ms1,000 ms8,000 ms
Hypothetical values set by this site for explanation (not measured). The average of 245 ms matches no user's experience

In this example, 80 percent of users receive a response in 100 ms, yet the average is displayed as 245 ms. Not a single person experienced an average of 245 ms; the p50 of 100 ms represents "the ordinary person," and the p99 of 1,000 ms represents "the time one person in 100 is kept waiting."

p95 and p99 show what the average hides

Because the average adds up everyone's values and divides, it is pulled by extreme values such as the single 8,000 ms request, and at the same time it dilutes the experience of the majority. The discrepancy in which complaints increase while average latency stays calm arises from here. p95 and p99 are values that stand at "the slow end," so they put a direct number on the experience that 5% or 1% of users are receiving. For a service with 1 million requests a day, 10,000 requests fall into the p99 tail. If you judge by the average alone without looking at this tail, you miss defects that slow things down under specific conditions, such as cache misses or large inputs. With percentiles, you can tell the moment you look at the graph whether "ordinary users are fast but 1% are extremely slow" or "everyone is a little slow." The remedies are completely different too: for the former, pin down the condition affecting the 1%; for the latter, lighten the whole.

Where percentiles appear in Datadog

There are three places this value appears. The first is the DISTRIBUTION type of Metrics (as of September 2026; Source: Distributions). When you enable percentile aggregation in the Metrics Summary, you can use p50 / p75 / p90 / p95 / p99 and any value up to 2 decimal places (such as 99.99). The second is APM latency. A DISTRIBUTION-type trace metric called trace.<SPAN_NAME> is created automatically for each service. You can query it in the form p99:trace.http.request{service:foo} (Source: DDSketch-based Metrics in APM). The third is monitors and SLOs; the examples in the official documentation are "notify when p95 latency exceeds 200 ms for 5 minutes" and "95% of requests within 5 seconds over 30 days."

Why you must not take the average of percentiles

Adding up the p99 computed for each of 10 hosts and dividing by 10 does not give you the p99 of all 10 hosts together. A percentile is a "position" in a distribution, and averaging positions cannot reconstruct the original distribution.

  • Each host computes p99 from its own values alone (the behavior of the HISTOGRAM type, which aggregates on the Agent side)
  • Averaging those p99 values: hosts with many requests and hosts with few get the same weight, and the information in the tail disappears
  • DISTRIBUTION type: each host sends all of its raw values to the server, and the Datadog side holds the overall distribution in a structure called DDSketch
  • From the overall distribution, any percentile is computed across all hosts
Source: Organized from the descriptions in the Datadog official documentation Distributions (as of September 2026)

According to the official documentation, unlike HISTOGRAM, which aggregates on the Agent side, DISTRIBUTION sends all the raw data and aggregates on the server side. This makes it possible to compute percentiles that are "globally accurate" across all hosts (as of September 2026; Source: Distributions). Put the other way around, you cannot later derive p99 from values sent in a form that can only produce an average. How to choose which type to send is left to the metric entry, and the same-shaped pitfall of the average of averages to the Metrics guide.

A high p99 does not mean everyone is slow

If only p99 has jumped and p50 has not moved, the slow ones are one person in 100, and the majority is unchanged. The next move is to look for the condition common to that 1%, for example a specific resource, a large input, or a specific downstream service visible through distributed tracing. Conversely, if p50 has risen along with it, the whole has slowed down. There is one more point that is easy to misread. In a window with few requests, p99 is almost the same as the maximum, so the p99 of an endpoint with only 10 requests per minute jumps outright on a single outlier. Also, APM latency has moved to the DDSketch method, and the guarantee has changed to one of relative error. The official documentation notes that p99 is now closer to the true value than before and may appear lower (as of September 2026; Source: DDSketch-based Metrics in APM). When you see a step in the graph, first separate whether the users' experience changed or the calculation mechanism changed.

Share