Checking a percentile’s value against its percentage input
A percentile calculator takes a percentage and returns a value in the units of your data. For 10, 20, 30, 40 the 50th percentile is 25, and the 25 is a measurement, not a rank.
Input is a percentage, output is a data value
The two numbers on the percentile page live on different scales. The input, called the percentile, is a position between 0 and 100. The output is a value on the scale of the data, such as dollars, seconds or points. In the first case the list is 10, 20, 30, 40 and the input is 50, and the output is 25. It is a value halfway between the second and third observations, in the units of the list. The digits 25 look like a percentage, and reading them as a rank of 25 percent would mix the two scales. The second case, which asks for the 25th percentile and gets 17.5, makes the difference clear: the input is 25, and the output is a different number in the data's unit.
The interpolation rule
The calculator uses the type 7 rule, which treats the sorted observations as points at equally spaced positions from 0 to 100 percent and draws straight lines between them. With n sorted values, the position of the pth percentile is h = (n - 1) × p/100, counted from zero. The result is the value at the whole-number part of h, plus the fractional part of h times the gap to the next value. For four values and p = 50, h = 3 × 0.5 = 1.5, which lies between the second value, 20, and the third, 30, halfway, so the result is 25. For p = 25, h = 0.75, which is 75 percent of the way from 10 to 20, so the value is 17.5. The percentile 75 gives h = 2.25 and a result of 32.5, and p = 90 gives h = 2.7 and 37.
Why other tools may disagree
There is no single definition of a sample percentile. Hyndman and Fan catalogued nine in a 1996 paper in The American Statistician, and statistics packages offer different ones. Type 7 is the default in R and in NumPy's linear method, and it matches the Excel function PERCENTILE.INC. Other methods, such as Excel's PERCENTILE.EXC, the nearest-rank method used in some textbooks, or methods based on n + 1, can give different values for the same list, especially for small samples. For the list 10, 20, 30, 40 the nearest-rank method returns a listed value at the 50th percentile, not 25. When comparing results across tools, check the method before concluding that one is wrong.
What a percentile rank is
A percentile rank goes the other way: given a value, it reports the percentage of the data that falls below it, or at or below it. For the value 30 in the list 10, 20, 30, 40, two of four observations are strictly lower, so the strict rank is 50 percent. Three of four are at or below it, so the inclusive rank is 75 percent. A common midpoint convention counts half of the ties and gives (2 + 0.5)/4 = 62.5 percent. These three answers differ for the same value because the conventions differ for ties and endpoints. This calculator does not compute any of them. It computes the forward direction, from a percentage to a value.
Percentiles in everyday reports
Percentiles appear in test scores, growth charts, response-time reports and income tables, and the two directions get mixed up often. A child at the 90th percentile of height is taller than about 90 percent of children in the reference group, which is a statement of rank. The 90th percentile of page load time is a value, such as 2.4 seconds, below which 90 percent of loads fall. A report that says 90th percentile of 2.4 seconds uses the forward direction. Hearing that a student scored in the 90th percentile tells you a rank, and not the score. The unit is the clue: a percentile value carries the data unit, and a rank is a percentage. The World Health Organization growth standards and the CDC growth charts both publish curves labeled with percentiles such as 3rd, 50th and 97th, and the chart reads each curve as a value of height or weight at a given age.
Edge cases at the ends
The 0th percentile returns the smallest value and the 100th returns the largest. For the example, those are 10 and 40. Between observations the result is interpolated, so a percentile value can be a number that does not appear in the data, like 25 and 17.5 here. With few values the steps between possible results are coarse, and extreme percentiles such as the 99th are not well estimated from a small sample: with four observations the 99th percentile is 39.7, just under the maximum, and carries almost no information about the true tail.
A larger list as a worked comparison
To see the direction of each calculation on a bigger set, take response times in milliseconds: 120, 135, 150, 180, 200, 240, 300, 410, 520, 900. With ten values, the 50th percentile has h = 9 × 0.5 = 4.5, midway between the fifth value, 200, and the sixth, 240, so the result is 220. The 90th percentile has h = 8.1, which is 10 percent of the way from the ninth value, 520, to the tenth, 900, giving 558. Both results are times in milliseconds. The statement that 90 percent of requests took 558 milliseconds or less is an interpretation of the forward result, not a rank of 558, and the rank of the value 558 in the list is a different calculation.
Choosing an interpolation to report
Because methods differ, reports should name the one they use, especially when a threshold depends on it, such as a service-level target of the 95th percentile latency. State whether the value is interpolated or taken from the data, and give the sample size. If you compare two data sets, use the same method for both. For large samples the differences between methods shrink toward zero, and for small ones they can change a pass into a fail. This page uses the type 7 rule throughout.
What the two cases settle
The cases show the forward calculation and nothing more. A percentage input of 50 returns 25 for the list 10, 20, 30, 40, and an input of 25 returns 17.5. The page does not compute ranks, does not choose a method for other software and does not test whether the data come from any distribution.
Reproduce the checks
Median-position value
Open the Percentile Calculator and enter:
- Numbers
10,20,30,40- Percentile
50
Expected output:
Value
25Fifty is the input position and twenty-five the output value.
Lower-position value
Open the Percentile Calculator and enter:
- Numbers
10,20,30,40- Percentile
25
Expected output:
Value
17.5A twenty-five-percent position produces another value.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference ↗ · 2026-10-08