Percentile Calculator
A percentile rank says where a value sits in your data: the percent of values below it plus half of the values equal to it. In the sample list of 12 test scores, 78 has 7 values below and 1 equal, so its percentile rank is (7 + 0.5) ÷ 12 × 100 = 62.5. The calculator also works backwards: the value at the 90th percentile of the same list is 87.6, found by linear interpolation.
Percentile rank of 78
62.5
Value at the 90th percentile
87.6
Working
- Percentile rank of 78: 7 values below, 1 equal, n = 12
- Rank = (7 + 0.5 × 1) ÷ 12 × 100 = 62.5
- Position = (n − 1) × p ÷ 100 = 11 × 90 ÷ 100 = 9.9 (counting from 0 in the sorted data)
- Interpolate between 84 and 88: 84 + 0.9 × (88 − 84) = 87.6
Methods: rank = (values below + ½ × values equal) ÷ n × 100; value = linear interpolation at position (n − 1) × p ÷ 100 (Excel PERCENTILE.INC).
Example: 12 test scores
- Percentile rank of 78: 7 values below, 1 equal, n = 12
- Rank = (7 + 0.5 × 1) ÷ 12 × 100 = 62.5
- Position = (n − 1) × p ÷ 100 = 11 × 90 ÷ 100 = 9.9 (counting from 0 in the sorted data)
- Interpolate between 84 and 88: 84 + 0.9 × (88 − 84) = 87.6
The two methods used here
Percentile rank of a value x: count the values below x and the values equal to x, then compute (below + 0.5 × equal) ÷ n × 100. Counting half of the ties puts a value that equals every other value at the 50th percentile, and keeps the ranks symmetric.
Value at the p-th percentile: sort the data and locate the position (n − 1) × p ÷ 100, counting the first value as position 0. If the position falls between two sorted values, interpolate linearly between them. This is the definition behind Excel’s PERCENTILE.INC and R’s default (type 7). For the 12 sample scores, the 90th percentile sits at position 11 × 0.9 = 9.9, which is 0.9 of the way from 84 to 88, or 87.6.
Why calculators disagree
There is no single definition of a percentile for a small data set. Textbooks, software and test publishers use at least nine variations, so two correct calculators can give slightly different answers. They agree closely for large data sets. When you submit homework, use the method your course states; the method used here is spelled out above so you can compare.
Do not confuse a percentile with a percentage: scoring at the 90th percentile means doing as well as or better than about 90% of the group, whatever the raw score was. For percentiles implied by a normal model rather than by your data, use the z-score to percentile converter.
Frequently asked questions
- Is the 90th percentile the same as 90%?
- No. The 90th percentile means that about 90% of the group scored at or below that value. The raw score could be anything.
- Why do different calculators give different percentiles?
- There are several accepted definitions for small data sets. They agree closely for large data sets.
- What is the median in percentile terms?
- The median is the 50th percentile: half of the values are below it and half above.
- Can the percentile value fall between two data points?
- Yes. With linear interpolation the result can lie between two sorted values, as with 87.6 between 84 and 88.
Sources and references
- OpenStax Introductory Statistics 2e: Measures of the Center of the Data: mean, median and mode.