Math FIELD NOTES · 4 MIN READ
How Percentile Rank Works
Position, not points: the counting formula behind percentile ranks and the below / at-or-below / midpoint conventions that ties create.
"You scored in the 87th percentile" is a sentence about position, not about points. Percentile rank is the statistic that turns a raw score into a ranking against a group — and it is one of the few statistics that makes no assumptions at all about the shape of the data. It just counts.
Percentile rank vs percent: different questions
A percent measures amount: 80% means 80 of 100 questions answered correctly. A percentile measures position: the 80th percentile means 80% of the group scored at or below you. The two can diverge wildly. Score 80% on an exam everyone else failed and you might sit at the 99th percentile; score 80% on an exam everyone aced and the same marks could put you at the 20th. Percentiles are always relative to a specific group and dataset — change the group and the same raw score changes rank.
The counting formula
PR = (number of values below x / total n) × 100
That is the entire calculation for the simplest convention: sort the data, count how many values fall strictly below yours, divide by the total, multiply by 100. With no assumptions about bell curves or distributions, the answer is an honest description of the sample itself. Test scores, growth charts, income tables and latency dashboards all use this counting logic.
The tie problem: three conventions
Ties complicate the picture. Take the dataset 2, 4, 4, 4, 5, 5, 7, 9 and ask for the percentile rank of the value 5:
strictly below: 4 values → 4/8 = 50%
at or below: 6 values → 6/8 = 75%
midpoint: (4 + ½×2)/8 = 62.5%
All three answers appear in textbooks and software, and none is "wrong" — they answer slightly different questions. "Strictly below" is the most conservative. "At or below" matches the everyday reading of "what percent of test-takers did I do at least as well as?" and is the convention behind most modern score reports. The midpoint splits the tied values and is beloved of older textbooks because it behaves more symmetrically. When a percentile matters — an exam cutoff, a hiring bar — know which convention the number came from. A good calculator shows all three side by side rather than burying the choice.
Percentiles and percentile ranks are inverses
Two questions, opposite directions. "What value sits at the 90th percentile?" walks from a percentage to a data value — that is a percentile lookup. "What percentile is this value?" walks from a value to a percentage — that is the percentile rank. The median is the meeting point of both: it is the value at the 50th percentile, and its own percentile rank is (nearly) exactly 50. For more on the median and why it resists outliers, see the mean, median and mode guide.
This inverse relationship is also why percentile ranks need no distribution assumptions while z-scores do. A z-score presumes bell-shaped data and asks "how many standard deviations out?" — the percentile then comes from the normal curve. The percentile rank skips the modelling entirely and counts the actual sample. If your data is skewed, the percentile rank is honest and the z-score is not.
Where percentile ranks earn their keep
Standardised tests report them so a raw score of 640 means something this year and next. Paediatric growth charts put a child's height at, say, the 40th percentile — a position, not a verdict. Engineering teams percentile their latency ("p99 under 200 ms"), which is precisely the at-or-below convention applied to response times. Salary surveys, search engine benchmarks and sports analytics all rank rather than average, because position within a heavy-tailed distribution tells you more than its mean ever will.
Try it yourself
Paste a dataset and a value into the Percentile Rank Calculator to see all three conventions side by side, the counts behind them, and the value's position in the sorted list. Pair it with the Standard Deviation Calculator to see how the same data looks through a spread-based lens, and with the Probability Calculator when you want the modelled bell-curve answer instead of the counted one.