Percentile Formula – Definition, Calculation, Examples

#Math Formula
TL;DR
The percentile formula tells you where a value stands in a dataset: P=number of values below xN×100P = \frac{\text{number of values below } x}{N} \times 100. This article covers both directions — finding the percentile of a value, and finding the value at a given percentile — with worked examples, the percentile-versus-percentage distinction, and the mistakes that trip students up.
BT
Bhanzu TeamLast updated on August 20, 20266 min read

What Is the Percentile Formula?

The percentile formula gives the percentage of values in a dataset that fall below a given value. For a value xx in a dataset of NN values:

P=number of values below xN×100P = \frac{\text{number of values below } x}{N} \times 100

A percentile of 9090 means 9090% of the data sits below that value. The result is always between 00 and 100100. Before applying the formula, the data must be sorted in ascending order — percentile is about position, and position only exists once the values are in order.

How Do You Calculate a Percentile?

There are two questions people ask, and each has its own direction of the formula. Which one am I solving — the rank of a known value, or the value at a known rank?

Direction 1 — the percentile of a value (rank-based). Count how many values lie below xx, divide by the total, multiply by 100100:

P=nN×100P = \frac{n}{N} \times 100

where nn is the count of values below xx and NN is the total number of values.

Direction 2 — the value at a given percentile. To find which value sits at the kkth percentile, compute the position in the sorted list:

i=k100×Ni = \frac{k}{100} \times N

If ii is a whole number, the kkth percentile is the average of the values in positions ii and i+1i+1. If ii is not whole, round up, and take the value in that position. (Statistics texts and software offer a few variants of this rule, but this is the standard introductory method.)

Percentile Is Not Percentage

This is the distinction that causes the most confusion, so it earns its own line: a percentage is a score out of 100; a percentile is a rank against other people. Scoring 8080% on a test means you got 8080 of every 100100 marks. Being in the 8080th percentile means you scored higher than 8080% of the people who took it. A student can score 6060% and still land in the 9595th percentile if the test was hard for everyone.

Examples of Percentile Formula

Example 1

In the sorted scores 20,35,40,55,60,70,80,9020, 35, 40, 55, 60, 70, 80, 90, find the percentile of 7070.

Values below 7070: there are 55 (20,35,40,55,6020, 35, 40, 55, 60). Total N=8N = 8.

P=58×100=62.5P = \frac{5}{8} \times 100 = 62.5

Final answer: 7070 is at the 62.562.5th percentile.

Example 2

In the dataset 12,55,7,10,4012, 55, 7, 10, 40, find the percentile of 4040.

Wrong attempt. A common first move is to apply the formula to the data as written: count values below 4040 in the unsorted list. Worse, some count 4040 itself or miscount because the list looks jumbled — getting n=4n = 4 and reporting 8080th percentile.

Correct. Sort first: 7,10,12,40,557, 10, 12, 40, 55. Now count values strictly below 4040: there are 33 (7,10,127, 10, 12). Total N=5N = 5.

P=35×100=60P = \frac{3}{5} \times 100 = 60

Final answer: 4040 is at the 6060th percentile. Sorting before counting is the step that makes the count trustworthy.

Example 3

In the sorted set 15,20,35,40,5015, 20, 35, 40, 50, find the percentile of 3535.

Values below 3535: 22 (15,2015, 20). N=5N = 5.

P=25×100=40P = \frac{2}{5} \times 100 = 40

Final answer: 3535 is at the 4040th percentile.

Example 4

Find the value at the 5050th percentile (the median) of 2,4,6,8,10,122, 4, 6, 8, 10, 12.

i=50100×6=3i = \frac{50}{100} \times 6 = 3

Since i=3i = 3 is a whole number, average positions 33 and 44: 6+82=7\frac{6 + 8}{2} = 7.

Final answer: the 5050th percentile is 77 — exactly the median.

Example 5

Find the value at the 2525th percentile (the first quartile) of 5,8,11,14,17,20,235, 8, 11, 14, 17, 20, 23 (N=7N = 7).

i=25100×7=1.75i = \frac{25}{100} \times 7 = 1.75

ii is not whole, so round up to position 22.

Final answer: the 2525th percentile is 88, the value in the 2nd position.

Example 6

A student scored higher than 171171 of the 190190 other test-takers. What is their percentile?

P=171190×100=90P = \frac{171}{190} \times 100 = 90

Final answer: the 9090th percentile — the student outscored 9090% of the cohort.

Why the Percentile Formula Matters

A raw number sits in a vacuum. The percentile is what places it in a crowd, and that placement is often the decision.

  • Health. Pediatric growth charts report weight and height as percentiles; a sudden drop from the 60th to the 15th percentile is a signal a doctor acts on, even if the raw weight rose.

  • Standardised testing. SAT, GRE, and competitive-exam scores are reported as percentiles so a score can be compared across different test versions of differing difficulty.

  • Quartiles and the five-number summary. The 25th, 50th, and 75th percentiles are the first quartile, median, and third quartile — the backbone of box plots and outlier detection.

  • Income and benchmarking. "Top 1%" is the 99th percentile of an income distribution; salary bands are set by percentile so they hold across regions.

What Are the Most Common Mistakes With the Percentile Formula?

Mistake 1: Not sorting the data first

Where it slips in: Applying the formula to data in the order it was given.

Don't do this: Count "values below xx" in an unsorted list.

The correct way: Sort the data into ascending order before counting.

Mistake 2: Confusing percentile with percentage

Where it slips in: Reading a score report.

Don't do this: Treat "8585th percentile" as "scored 8585%".

The correct way: A percentile is a rank against others; a percentage is a score out of 100. The 85th percentile means you beat 8585% of people — your actual score could be anything. The second-guesser who knows their raw percentage often distrusts the percentile because the two numbers rarely match.

Mistake 3: Mishandling the position when ii is a whole number

Where it slips in: Finding the value at a given percentile (Direction 2).

Don't do this: When ii comes out whole, just take the value in position ii and stop.

The correct way: When ii is a whole number, average the values in positions ii and i+1i+1. Skipping the average is a quiet off-by-one that shifts the answer.

Conclusion

  • The percentile formula is P=number of values below xN×100P = \frac{\text{number of values below } x}{N} \times 100 — the share of a sorted dataset below a value.

  • The reverse direction, i=k100×Ni = \frac{k}{100} \times N, finds the value sitting at a given percentile.

  • A percentile is a rank against others, not a percentage score out of 100.

  • The 25th, 50th, and 75th percentiles are the first quartile, median, and third quartile.

  • Sort the data before counting — skipping the sort is the most common mistake.

Practice These Before Moving On

Work through these, then check by sorting and counting carefully.

  1. In 30,42,18,55,60,2530, 42, 18, 55, 60, 25, find the percentile of 4242.

  2. Find the value at the 7575th percentile of 4,8,12,16,20,24,28,324, 8, 12, 16, 20, 24, 28, 32.

  3. A test-taker scored higher than 342342 of 380380 others. What percentile is that?

Want a live Bhanzu trainer to walk your child through more percentile formula problems? Book a free demo class — online globally.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the percentile formula?
P=number of values below xN×100P = \frac{\text{number of values below } x}{N} \times 100 — the share of the dataset that falls below the value xx, expressed out of 100.
How do you calculate percentile by rank?
To find the value at the kkth percentile, compute i=k100×Ni = \frac{k}{100} \times N; if ii is whole, average positions ii and i+1i+1, otherwise round up and take that position.
What is the difference between percentile and percentage?
A percentage is a score out of 100; a percentile is a rank showing what fraction of values you exceed. They answer different questions.
Is the median a percentile?
Yes. The median is the 50th percentile — the value with half the data below it.
Do you need to sort the data first?
Always. Percentile is about position, and position only exists once the values are in ascending order.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →