A percentile tells you where a value sits within a group. The 90th percentile is the value below which about 90 % of the data fall; a percentile rank of 75 means a result beat roughly three quarters of the others. Percentiles describe test scores, children's growth charts, salaries, website response times and many other distributions where the average alone hides too much.
Paste your numbers into this percentile calculator and choose the percentile you want. It returns the value at that percentile, the quartiles Q1, Q2 (the median) and Q3, the interquartile range, the five-number summary (minimum, Q1, median, Q3, maximum) and the usual 1.5 × IQR fences for spotting outliers. Enter a value as well and you also get its percentile rank: the share of the data below it.
There is no single "correct" percentile for a small sample: statistical software uses several definitions that give slightly different answers. The calculator offers the three you are most likely to meet — Excel's PERCENTILE.INC (also R's default), Excel's PERCENTILE.EXC (also Minitab and SPSS) and the nearest-rank method common in textbooks — and the steps show exactly how the result was obtained. For the mean, mode and standard deviation of the same list, use the average calculator.
How to use this calculator
- Paste or type your data, separated by commas, spaces or line breaks. The order does not matter.
- Enter the percentile between 0 and 100 (for example 90 for the 90th percentile).
- Pick the method. Keep the inclusive method to match Excel's PERCENTILE.INC, or choose the one your course or software uses.
- Optionally enter a value to get its percentile rank.
- Read the percentile, then the quartiles, IQR, fences and sorted data. The steps show the position and the interpolation.
The formula
Sort the values: , and write as a fraction (90th → 0.9). Hyndman and Fan (1996) catalogue nine definitions; this calculator implements three of them.
Inclusive, R-7 (Excel PERCENTILE.INC, QUARTILE.INC): position .
Exclusive, R-6 (Excel PERCENTILE.EXC, NIST handbook): position , defined for .
For both, with the whole part of the position:
Nearest rank, R-1: with (and when ). No interpolation: the result is always one of the data values.
Percentile rank of a value , with values below it and values equal to it:
Quartiles are the 25th, 50th and 75th percentiles; , and values below or above are flagged as possible outliers.
Worked example
Twelve exam scores: 62, 68, 71, 74, 75, 78, 80, 83, 85, 88, 91, 95. What is the 90th percentile?
- Inclusive (R-7): , so the answer lies 90 % of the way from the 10th value (88) to the 11th (91): .
- Exclusive (R-6): , so .
- Nearest rank: , so the 90th percentile is the 11th score, 91.
With the inclusive method the quartiles are , median 79 and , so . The fences are 54.5 and 104.5: no score is an outlier.
A student who scored 80 has 6 scores below and 1 equal, so the percentile rank is %, and 58.33 % of the class scored 80 or less.
Which percentile method should I use?
| Method | Position | Used by | Range |
|---|---|---|---|
| Inclusive (R-7) | Excel PERCENTILE.INC and PERCENTILE, Google Sheets, R and NumPy defaults | any from 0 to 100 | |
| Exclusive (R-6) | Excel PERCENTILE.EXC, Minitab, SPSS, NIST | between and | |
| Nearest rank (R-1) | many introductory textbooks | any |
Use the method required by your course, your company's reporting rules or the software you want to match. The differences shrink quickly as the sample grows; with a few thousand values they are usually negligible. With the exclusive method, extreme percentiles of small samples cannot be interpolated: Excel returns #NUM!, while this calculator returns the minimum or maximum and says so.
Percentile, percentage and percentile rank
A percentage is a score out of 100 (you got 80 % of the questions right). A percentile is a position in a group (you did better than 54 % of the class). The two are unrelated: 80 % can be the top score on a hard test or a below-average one on an easy test. The percentile rank answers "what share of the group is below this value?", while the percentile answers the reverse question, "which value has this share below it?". Ties make the two directions differ slightly, which is why the calculator shows both the mid-rank and the share of values at or below .
Frequently asked questions
How do I calculate a percentile?
Sort the data, find the position — (n − 1)p + 1 for the inclusive method or (n + 1)p for the exclusive one — and interpolate between the two neighbouring values. For 1, 2, 3, 4 the 30th percentile with the inclusive method is 1.9, as in Excel.
What is the difference between PERCENTILE.INC and PERCENTILE.EXC in Excel?
INC places the minimum at the 0th and the maximum at the 100th percentile; EXC treats them as lying inside the distribution, so it spreads the data more widely and cannot compute percentiles too close to 0 or 100 for small samples.
How are quartiles and the IQR calculated?
Quartiles are the 25th, 50th and 75th percentiles computed with the chosen method. The interquartile range is Q3 − Q1, the spread of the middle half of the data. It ignores extreme values, unlike the range.
What is the five-number summary?
Minimum, first quartile, median, third quartile and maximum. These five numbers are what a box plot draws, and they describe the centre, spread and skew of the data at a glance.
What does a percentile rank of 90 mean?
About 90 % of the values in the group are below that value (ties counted as half). On a growth chart, a child at the 90th percentile for height is taller than about nine in ten children of the same age and sex.
Is the 50th percentile always the median?
With both interpolation methods, yes. With the nearest-rank method and an even number of values, the 50th percentile is the lower middle value rather than the average of the two middle values.
Sources
- Hyndman, R. J. and Fan, Y., Sample Quantiles in Statistical Packages, The American Statistician 50(4), 1996
- NIST/SEMATECH e-Handbook of Statistical Methods, §7.2.6.2 Percentiles
- NIST/SEMATECH e-Handbook, §7.1.6 Outliers and fences
- R documentation, quantile() — sample quantile types 1 to 9
- Microsoft Support, PERCENTILE.INC function
Last updated: