Math

Percentile Calculator

Find any percentile and convert values to percentile ranks

Percentile Calculator

A percentile tells you what percentage of a dataset falls below a given value. The 75th percentile, for instance, means 75% of values are below that number. Percentiles are central to standardized test scoring, clinical growth charts, salary benchmarking, and any area where you need to compare one value to a distribution.

This calculator computes any percentile (P1 through P99) from a dataset, supports two interpolation methods, automatically reports Q1/Q2/Q3 quartiles, and converts any data value into a percentile rank.

How to Use This Calculator

  1. Enter your dataset — paste comma-separated or newline-separated numbers (e.g., 12, 15, 18, 22, 25).
  2. Enter the percentile target — a number between 1 and 99 (e.g., 90 for the 90th percentile).
  3. Enter a value to rank — optionally enter a specific value to find where it falls in the distribution.
  4. Select interpolation method — either "linear" (smoother, used by NumPy) or "nearest rank" (simpler, returns an actual data value).

Interpolation Methods

Linear interpolation (default): Between two data points, the percentile is estimated proportionally. This is the method used by NumPy's percentile function, Excel's PERCENTILE.INC, and most scientific software. It can return values between actual data points.

Nearest rank: Returns the actual data value at rank ⌈P/100 × n⌉. Simpler to explain and always returns a real observation. This is the method often taught in introductory statistics.

Quartiles (Q1, Q2, Q3)

Quartiles are the 25th, 50th (median), and 75th percentiles. The interquartile range (IQR) = Q3 - Q1 is a robust measure of spread that ignores extreme values. Outlier detection commonly uses 1.5 × IQR from Q1 and Q3.

Real-World Examples

SAT scores: If a score of 1350 is at the 85th percentile, 85% of test-takers scored lower. A student wants to know their percentile rank — enter the score distribution and their score in the "value to rank" field.

Height growth charts: Pediatricians track a child's height against the 50th and 95th percentile curves for their age. A child at the 90th percentile is taller than 90% of peers.

Salary benchmarking: HR departments use the 25th, 50th, and 75th percentile salaries for a role to set compensation bands across the organization.

Frequently Asked Questions

What is the difference between a percentile and a percentage?
A percentage is a proportion out of 100 (e.g., 75% = 75 out of 100). A percentile is a threshold value: the P75 percentile is the value below which 75% of the data falls. Percentiles describe position within a distribution, not a proportion of a total.
What are the quartile boundaries?
Q1 = 25th percentile, Q2 = 50th percentile (the median), Q3 = 75th percentile. The interquartile range (IQR) = Q3 - Q1. The five-number summary is: minimum, Q1, Q2, Q3, maximum.
What is the difference between linear and nearest-rank interpolation?
Nearest-rank picks the data point at rank ⌈P/100 Ɨ nāŒ‰, always returning an actual observed value. Linear interpolation estimates between two adjacent ranks, which can return a value not in the dataset but gives smoother results for continuous data.
Is the 50th percentile the same as the median?
Yes. The 50th percentile (P50) and the median are the same value — the middle of the distribution. Half the data falls below it and half above.
How do I calculate percentile rank for a given value?
Enter the value in the "value to rank" field. The calculator counts how many data points fall below it and divides by n Ɨ 100. This tells you what percentile that value occupies in your distribution.
What happens when my value is lower than all data points?
If the entered value is below the dataset minimum, its percentile rank is 0 (or close to 0). If it equals every data point, its rank is 100. Edge cases at the extremes follow the formula strictly.
How many data points do I need for accurate percentiles?
Percentiles become meaningful with at least 10–20 data points. With fewer than 10, the calculated percentiles can vary significantly with each new observation. For high-precision percentiles (P95, P99), aim for 100+ data points.
Does percentile calculation require sorted data?
The calculator sorts the data internally. You can enter values in any order and will get the same result. The sort step is essential — all interpolation methods are defined on the ordered list.