01
How to calculate a percentile
position = (n − 1) × P ÷ 100
Sort the values from smallest to largest and count positions from zero. If the position is a whole number, the percentile is the value there. Otherwise interpolate between the two neighbouring values.
percentile rank = (values below + 0.5 × values equal) ÷ n × 100
02
Worked example
Find the 40th percentile of 15, 20, 35, 40, 50.
position = (5 − 1) × 0.40 = 1.6
value = 20 + 0.6 × (35 − 20) = 29
For the rank of 70 in 55, 60, 65, 70, 70, 75, 80, 85, 90, 95: three values are below and two are equal, so the rank is (3 + 1) ÷ 10 × 100 = 40.
03
Why other tools can differ
| Method | Used by | 40th percentile of the example |
|---|---|---|
| Linear, inclusive | this page, Excel PERCENTILE.INC, R default | 29 |
| Linear, exclusive | Excel PERCENTILE.EXC | 26 |
| Nearest rank | some textbooks | 20 |
All three are accepted definitions. The differences shrink as the data set grows; say which one you used when it matters.
04
Common mistakes with percentiles
- Mixing up a percentile and a percentile rank. The 90th percentile of the ten scores is 90.5, a score; the percentile rank of 70 is 40, a percentage.
- Ignoring ties. 70 appears twice in the ten scores, so its rank is 30 counting only values below, 50 counting values at or below, and 40 with the midpoint rule this page uses.
- Comparing results from different methods. The 40th percentile of 15, 20, 35, 40, 50 is 29 here, 26 with Excel PERCENTILE.EXC and 20 by nearest rank.
Trust
How this page is checked
- The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
- The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
- Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.
Cite this page
Sciloom. (2026). Percentile rank calculator. Zebra Nine Studio Inc. https://sciloom.si/percentile-rank-calculator
Frequently asked questions
Is this a baby growth or BMI percentile calculator?
No. Growth and BMI percentiles compare a child with a reference population using published growth charts. This page finds percentiles within a list of numbers you provide, such as test scores or measurements.
What does the 90th percentile mean?
It is the value below which 90% of the data fall. A score at the 90th percentile is higher than about 90% of the others.
Is the 50th percentile the median?
Yes. The 25th and 75th percentiles are the first and third quartiles.
What is the difference between a percentile and a percentage?
A percentage is a score out of 100. A percentile is a position relative to other values: 70% on a test could be the 95th percentile if most people scored lower.
How is percentile rank calculated when values are tied?
This page counts the values below plus half of those equal to it. Some definitions count only the values strictly below, or all values at or below; both are shown in the result.