Percentile Calculator
Find the value at a given percentile, or the percentile rank of a given value.
Two different questions
"Percentile" is used for two things that are inverses of each other, and the calculator above answers both.
- The value at a percentile. "What score is the 90th percentile?" — you give a percentage, you get a value from the data's scale.
- The percentile rank of a value. "My score was 88; what percentile is that?" — you give a value, you get a percentage.
Confusing the two is common, and it matters: the 90th percentile of a set of exam scores might be 94, while a score of 90 might sit at the 78th percentile.
Three conventions, three answers
Like quartiles, percentiles have no single definition. This calculator offers three:
- Linear interpolation at rank (n−1)p+1 — the default, and what Excel's
PERCENTILE.INC, NumPy and pandas produce. The rank always lands inside the data, so every percentage from 0 to 100 has an answer. - Linear interpolation at rank p(n+1) — the NIST handbook rule, and Excel's
PERCENTILE.EXC. At very low or very high percentages with small n the rank falls outside the data and has to be clamped. - Nearest rank — round the position up and take that value, with no interpolation. The result is always a value that actually occurs in your data, which matters when interpolating between observations would be nonsense (you cannot have 2.6 children).
The result panel shows all three for the percentile you asked for, so the size of the disagreement is visible rather than hidden.
How ties are handled in a percentile rank
When several values equal the one you are ranking, this calculator uses the mid-rank convention: values strictly below count fully, and tied values count as half.
It is the convention that behaves sensibly at the edges — a value tied with every observation in the set lands at the 50th percentile rather than the 0th or the 100th. Other definitions count ties fully or not at all, so a rank quoted elsewhere may differ by a few points on data with many repeats.
Worked example
The 90th percentile of ten values
- (n−1)p+1: rank = 9 × 0.9 + 1 = 9.1, so 9 + 0.1 × (10 − 9) = 9.1
- p(n+1): rank = 0.9 × 11 = 9.9, so 9 + 0.9 × (10 − 9) = 9.9
- Nearest rank: ceil(0.9 × 10) = position 9, so 9
Three defensible answers from ten simple numbers.
Questions
Is the 50th percentile the median?
Under the interpolation methods, yes. Under nearest rank it can differ slightly for even counts, because it returns an observed value rather than the average of the two middle ones.
Why does my percentile rank differ from another site?
Almost always the tie convention. This calculator counts tied values as half; some count them fully, some not at all. On data with no repeats all three agree.
Method & sources
- The p(N+1) rank rule with linear interpolation — NIST/SEMATECH e-Handbook of Statistical Methods