How this calculator works
- Step 1Sortsmallest to largestOrder the data.
- Step 2Locatei = k(n + 1) ÷ 100Position of the kth percentile.
- Step 3Between valuesaverage or interpolateDepends on the method.
The kth percentile is the value with about k percent of the data below it. The calculator sorts the data and finds the position of that percentile.
When the position falls between two data values, textbooks and spreadsheets differ. The calculator offers the OpenStax method and the two Excel methods, and names which one it used.
Worked example: OpenStax’s 29 ages
- i
83 × (29 + 1) ÷ 100
- Position24.9
- 24th and 25th values71 and 72
- OpenStax: average71.5
- Exclusive: interpolate71.9
- Inclusive (Excel PERCENTILE.INC)71.24
Read the result
- 5864th percentile18 below, 1 equal, of 29: (18 + 0.5) ÷ 29.
- 2512th percentile3 below, 1 equal, of 29.
Quartiles of the ages: 29.5, 47, 68. The middle half of the data lies between the first and the last.
Assumptions and limits
- Named methodState which method you used.
- Small samplesMethods disagree most when n is small.
- EndsPercentiles near 0 or 100 may clamp to the ends.
- Rank roundingRanks are rounded to whole numbers, as OpenStax does.
Related statistics tools
A percentile places a value within its data set. The centre and spread describe the whole set.
For the mean, median and mode, use the average calculator, and for spread, the standard deviation calculator. If the data follow a normal curve, the z-score calculator gives a similar answer from the mean.
Common mistakes
Mistake: Forgetting to sort the data.
Instead: The calculator sorts it for you.
Mistake: Comparing answers from different methods.
Instead: Use the same method throughout.
Checking the method
A separate script checks the linear methods with Python’s statistics.quantiles and reproduces OpenStax’s 71.5, 64th and 12th percentile examples.
Read how we test our calculators, or browse more maths calculators.