IQR Calculator

Percentile Calculator

Find the value at a given percentile, or the percentile rank of a given value.

Percentile calculatorRuns entirely in your browser
Separate values with commas, spaces or line breaks. Paste a column straight from a spreadsheet.
Try:
Percentile method
Used for the percentile rank below.
ResultLinear interpolation, rank (n−1)p+1 · n = 10
90th percentile91.4of 10 values, using linear interpolation, rank (n−1)p+1
Count
10
P25 · Q1
73.25
P50 · median
81.5
P75 · Q3
87.5
P90
91.4
P99
94.64

Percentile rank

Rank of 120%share of values at or below it, counting ties as half

12 is below every value in the set.

How we calculated it

Sort the values
64, 69, 72, 77, 80, 83, 86, 88, 91, 95
Rank formula: (n−1)p+1
With n = 10 and p = 0.9:rank = 9.1
Matches Excel PERCENTILE.INC, NumPy, pandas.
Interpolate between neighbours
Value at that rank: rank 9.1 sits between value 9 (91) and value 10 (95)91 + 0.1 × (95 − 91) = 91.4

The same percentile under each convention

MethodP90Matches
Linear interpolation, rank (n−1)p+191.4Excel PERCENTILE.INC, NumPy, pandas
Linear interpolation, rank p(n+1)94.6NIST handbook, Excel PERCENTILE.EXC
Nearest rank91Classical definition; no interpolation

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.

percentile rank = (below + 0.5 × equal) ÷ n × 100

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

Data: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
  • (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