Find the value at any percentile of your data, such as the 90th percentile of test scores or response times, using the same method as Excel or your textbook.
The Pth percentile has about P% of the data at or below it
Position p(n − 1) + 1, interpolating between neighbours. Excel PERCENTILE.INC, Google Sheets, R and NumPy defaults.
The Pth percentile is the value below which roughly P% of the data falls. If the 90th percentile of delivery times is 45 minutes, about 90% of deliveries arrived within 45 minutes.
Percentiles describe position rather than averages, so they suit skewed data and setting thresholds. Child growth charts, exam grade boundaries, salary bands and website speed targets ("p95 under 200 ms") are all built on them.
A percentile is not the same as a percentile rank. The percentile is a value ("the 90th percentile is 84.5"); the percentile rank works the other way round ("a score of 84.5 is at the 90th percentile"). The percentile rank calculator handles that direction.
Methods as catalogued by Hyndman and Fan (1996) and documented for Excel by Microsoft. See Sources.
The 90th percentile is p = 0.9. Let n be the number of values.
The two Excel methods interpolate between neighbouring values. Nearest rank never does, so it always returns a value from your data.
With only 12 values, the method moves the answer by 4 points. With thousands of values the three would agree closely.
The 10th to 90th percentiles of the twelve example scores. Enter your own data above to see it here.
| Percentile | PERCENTILE.INC | PERCENTILE.EXC | Nearest rank |
|---|---|---|---|
| P10 | 21.5 | 16.5 | 20 |
| P20 | 36 | 29 | 35 |
| P30 | 43 | 39.5 | 40 |
| P40 | 52 | 51 | 50 |
| P50 | 57.5 | 57.5 | 55 |
| P60 | 66 | 68 | 70 |
| P70 | 73.5 | 75.5 | 75 |
| P80 | 79 | 82 | 80 |
| P90 | 84.5 | 88.5 | 85 |
Yes. All three methods give the median at P50. The 25th and 75th percentiles are the first and third quartiles.
PERCENTILE and PERCENTILE.INC use the inclusive method; PERCENTILE.EXC uses the exclusive one. Google Sheets’ PERCENTILE matches PERCENTILE.INC.
Match whatever your course, report or colleagues use. If there’s no convention, the inclusive method is the most widely used in software.
With interpolation, yes: 84.5 in the example lies between 80 and 85. The nearest-rank method always returns an actual data value.
The time within which 95% or 99% of requests finish. They capture the slow tail that an average hides, which is why performance targets use them.
Deciles split data into tenths (P10, P20, … P90) and quintiles into fifths (P20, P40, P60, P80). Both are just particular percentiles.
Its position p(n + 1) falls outside the data for extreme percentiles. Excel returns an error; this calculator clamps to the minimum or maximum instead.
Enough that the percentile isn’t just the most extreme value. As a rough guide, estimating the 90th percentile well needs dozens of values; the 99th needs hundreds.
Related Tools