Percentile Calculator

Find the percentile rank of any value, or find the value at any percentile, for any dataset you enter.

๐Ÿ“Š Percentile Calculator
Dataset (comma or space separated)
Value to Look Up
Dataset (comma or space separated)
Percentile75
%
0100
Percentile Rank
Values Below
Values Equal
Total Values (n)
Value (Linear Interpolation)
Value (Nearest Rank)
Total Values (n)

๐Ÿ“Š What is a Percentile Calculator?

A percentile calculator is a tool that finds where a value stands relative to the rest of a dataset. It answers two distinct questions: "What percentile rank does this value have?" and "What value falls at the Nth percentile?" Both are fundamental operations in descriptive statistics, standardised testing, medical diagnostics, and data analysis.

Percentiles are used everywhere in everyday life. Standardised tests like the SAT, GRE, and USMLE report scores as percentile ranks so candidates can understand their standing relative to other test-takers, not just as raw numbers. Pediatric growth charts show height and weight as percentiles relative to a reference population of the same age and sex. Income distribution reports describe the 50th, 90th, and 99th income percentiles to characterise inequality. Quality control engineers use percentiles to set specification limits based on the distribution of measured dimensions.

A common source of confusion is the difference between a percentage and a percentile. A percentage is a ratio: 75% means 75 out of 100 units. A percentile is a rank: being at the 75th percentile means a value is higher than 75% of all values in a dataset. You could score 40% on a very difficult exam and still be at the 95th percentile if everyone else scored lower. The two concepts measure completely different things.

This calculator supports two modes. The Find Percentile Rank mode accepts a dataset and a specific value and returns the percentile rank using the midpoint formula, which handles ties fairly. The Find Value at Percentile mode accepts a dataset and a target percentile and returns the value at that position using both linear interpolation (the Excel PERCENTILE.INC method) and the nearest rank method. Both modes also display the full five-number summary (minimum, Q1, median, Q3, maximum, and IQR) and a sorted list with the relevant value highlighted, so you can visually verify the result.

๐Ÿ“ Formula

Percentile Rank  =  ((B + 0.5 × E) ÷ n) × 100
B = number of values strictly below the target value
E = number of values equal to the target value
n = total count of values in the dataset
Example: In [45, 52, 58, 63, 70, 75, 81, 88, 92, 97], for value = 70: B = 4, E = 1, n = 10. PR = ((4 + 0.5) / 10) × 100 = 45%
Value at Percentile  =  x⌊idx⌋ + frac × (x⌈idx⌉ − x⌊idx⌋)
idx = (P ÷ 100) × (n − 1) on the sorted array (0-indexed)
frac = fractional part of idx (idx − floor(idx))
x⌊idx⌋ = sorted array element at the floor index
x⌈idx⌉ = sorted array element at the ceiling index
Example: For P = 75 in [10, 20, 30, 40, 50, 60, 70, 80, 90, 100] (n=10): idx = 0.75 × 9 = 6.75, value = 70 + 0.75 × (80 − 70) = 77.5

๐Ÿ“– How to Use This Calculator

Steps

1
Choose your calculation mode - Select Find Percentile Rank to find where a specific value sits in your dataset, or Find Value at Percentile to find which value corresponds to a given percentile like the 75th.
2
Enter your dataset - Type or paste your numbers separated by commas or spaces into the dataset field. At least 2 values are required. The calculator accepts integers and decimals.
3
Enter the value or percentile - In Rank mode, type the value whose rank you want to find. In Value mode, type or drag the slider to set the percentile (0 to 100) you want to look up.
4
Click Calculate - Click Calculate to see the result, a sorted list with the relevant value highlighted, and the five-number summary table (min, Q1, median, Q3, max, IQR).

๐Ÿ’ก Example Calculations

Example 1 - Test Score Percentile Rank

Class scores: 45, 52, 58, 63, 70, 75, 81, 88, 92, 97. Where does a score of 70 rank?

1
Sort the dataset: [45, 52, 58, 63, 70, 75, 81, 88, 92, 97]. Total n = 10.
2
Count values below 70: B = 4 (scores 45, 52, 58, 63). Count equal to 70: E = 1.
3
Apply formula: PR = ((4 + 0.5 × 1) / 10) × 100 = (4.5 / 10) × 100 = 45%
Percentile Rank = 45th percentile
Try this example →

Example 2 - Height Percentile Rank

Heights in cm: 158, 162, 165, 167, 170, 172, 175, 178, 182, 190. What percentile is 172 cm?

1
Sorted: [158, 162, 165, 167, 170, 172, 175, 178, 182, 190]. n = 10.
2
Values below 172: B = 5 (158, 162, 165, 167, 170). Values equal: E = 1.
3
PR = ((5 + 0.5) / 10) × 100 = 55%. A height of 172 cm is at the 55th percentile in this group.
Percentile Rank = 55th percentile
Try this example →

Example 3 - Find Value at 75th Percentile

Dataset: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100. What is the 75th percentile value?

1
Sorted array (0-indexed): [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]. n = 10.
2
Linear interpolation: idx = (75/100) × (10-1) = 6.75. Floor index = 6 (value = 70), ceiling index = 7 (value = 80).
3
Interpolate: 70 + 0.75 × (80 - 70) = 70 + 7.5 = 77.5. Nearest rank: ceil(0.75 × 10) = 8, sorted[7] = 80.
75th Percentile = 77.5 (interpolation) or 80 (nearest rank)
Try this example →

Example 4 - Salary Distribution Q1 and Q3

Annual salaries (thousands): 32, 38, 42, 45, 48, 55, 62, 70, 85, 120. Find the 25th and 75th percentiles.

1
For Q1 (25th percentile): idx = 0.25 × 9 = 2.25. Values at index 2 and 3 are 42 and 45. Q1 = 42 + 0.25 × (45-42) = 42.75.
2
For Q3 (75th percentile): idx = 0.75 × 9 = 6.75. Values at index 6 and 7 are 62 and 70. Q3 = 62 + 0.75 × (70-62) = 68.
3
IQR = Q3 - Q1 = 68 - 42.75 = 25.25 thousand. Outlier fences: below 42.75 - 1.5×25.25 = 4.875 or above 68 + 1.5×25.25 = 105.875. The salary of 120 exceeds the upper fence and is flagged as an outlier.
Q1 = $42,750, Q3 = $68,000, IQR = $25,250
Try this example →

โ“ Frequently Asked Questions

What is the difference between a percentile and a percentage?+
A percentage is a fraction expressed out of 100 (e.g. 75% = 75/100). A percentile is a position in a sorted dataset: the 75th percentile is the value below which 75% of the data falls. You can score 40% on a test and still be at the 95th percentile if most other students scored below 40%. The two concepts are unrelated except in their use of the number 100 as a base.
What formula does this calculator use for percentile rank?+
This calculator uses the midpoint percentile rank formula: PR = ((B + 0.5 × E) / n) × 100, where B is the count of values strictly below the target, E is the count of values equal to the target, and n is the total sample size. This is the most widely taught method in statistics courses and handles tied values by placing them at the midpoint of their rank range.
What is the difference between linear interpolation and nearest rank methods?+
The linear interpolation (inclusive) method computes an index as (P/100) × (n-1) and interpolates between adjacent sorted values when the index is not an integer. This matches Excel's PERCENTILE.INC function and the NumPy default (method='linear'). The nearest rank method rounds up and returns the element at ceil(P/100 × n). For large datasets the two methods give very similar results; for small datasets they can differ noticeably. Both are shown so you can match whichever your textbook uses.
What are quartiles and how do they relate to percentiles?+
Quartiles are the three values that divide a sorted dataset into four equal parts: Q1 is the 25th percentile, Q2 (median) is the 50th percentile, and Q3 is the 75th percentile. They are special cases of percentiles that are used so frequently they have their own names. The IQR (interquartile range) = Q3 - Q1 measures the spread of the middle 50% of the data and is displayed in the five-number summary table this calculator generates.
How do I find the median using this calculator?+
The median is the 50th percentile. Switch to the Find Value at Percentile mode, enter your dataset, set the percentile to 50, and click Calculate. The result labeled "Value (Linear Interpolation)" is the median. Alternatively, every calculation in both modes displays the five-number summary table at the bottom of the results, which includes the median (labeled as "50th (Median / Q2)").
What is the IQR used for and how is it calculated?+
The interquartile range (IQR) = Q3 - Q1 measures the spread of the middle 50% of data. It is used for outlier detection using Tukey fences: values below Q1 - 1.5 × IQR or above Q3 + 1.5 × IQR are flagged as potential outliers. The IQR is also used to set whisker lengths in box plots. Unlike range and standard deviation, the IQR is resistant to extreme values because it ignores the top and bottom 25% of the data.
Can percentile rank be above 100 or below 0?+
No. Percentile rank is always between 0 and 100 by definition. The midpoint formula this calculator uses assigns the minimum value a percentile rank of (0.5/n) × 100 and the maximum a rank of ((n-0.5)/n) × 100. A value exactly at the minimum gets a small positive percentile rank rather than 0 because the formula accounts for the fact that half its "group" (itself) is at or below it. For practical purposes, the minimum is at the 0th percentile and the maximum is at the 100th.
How are percentiles used in standardised testing?+
In standardised tests like the SAT, GRE, and GMAT, raw scores are converted to percentile ranks based on the performance of a large reference group (the norming sample). A score at the 90th percentile means the candidate outperformed 90% of the reference group. Score reports include both the raw or scaled score and the percentile rank because the percentile communicates relative standing more clearly than a raw number alone. Percentile ranks for standardised tests use large norming samples and sophisticated equating, not simple rank-based calculations.
Why does my percentile rank differ from what Excel gives?+
Excel's PERCENTRANK function uses the formula (rank - 1) / (n - 1), which gives 0 to the minimum and 1 (100%) to the maximum and interpolates between. The midpoint formula this calculator uses gives 0.5/n to the minimum. For large datasets the two agree closely. For small datasets or when you are looking up the minimum or maximum values, they differ. If you need to match Excel's PERCENTRANK, use their formula; if you need the textbook midpoint formula, use this calculator.
What is a decile and how is it related to percentiles?+
Deciles divide sorted data into ten equal parts. D1 is the 10th percentile, D2 is the 20th percentile, and so on up to D9 at the 90th percentile. Deciles are used in income and wealth distribution analysis: the top decile (D9 to max) and bottom decile (min to D1) describe the extremes of a distribution. To find any decile using this calculator, switch to Find Value at Percentile mode and enter the corresponding percentile (10, 20, 30, etc.).