Skip to content

Percentile Calculator with Quartiles and Percentile Rank

Percentiles, percentile rank, quartiles, IQR and five-number summary, with the Excel-compatible methods.

Your details

Separate values with commas, spaces or new lines. You can paste a column from a spreadsheet.

Inclusive matches Excel PERCENTILE.INC and R’s default; exclusive matches PERCENTILE.EXC, Minitab and SPSS.

Results update as you type

Value at the percentile

90.7

Percentile rank of x
54.17%
Share of values ≤ x
58.33%
Count below / equal
6 of 12 values are below x and 1 equal to it
First quartile Q1 (25th)
73.25
Median Q2 (50th)
79
Third quartile Q3 (75th)
85.75
Interquartile range (IQR)
12.5
Minimum
62
Maximum
95
Count n
12
Outlier fences (1.5 × IQR)
[54.5, 104.5]
Possible outliers
None
Sorted data
62, 68, 71, 74, 75, 78, 80, 83, 85, 88, 91, 95

Step-by-step solution
  1. h = (n − 1) × p + 1 = 11 × 0.9 + 1 = 10.9
  2. x₁₀ + 0.9 × (x₁₁ − x₁₀) = 88 + 0.9 × (91 − 88) = 90.7
  3. IQR = Q3 − Q1 = 85.75 − 73.25 = 12.5
  4. (6 + 1 / 2) / 12 × 100 = 54.17 %

A percentile tells you where a value sits within a group. The 90th percentile is the value below which about 90 % of the data fall; a percentile rank of 75 means a result beat roughly three quarters of the others. Percentiles describe test scores, children's growth charts, salaries, website response times and many other distributions where the average alone hides too much.

Paste your numbers into this percentile calculator and choose the percentile you want. It returns the value at that percentile, the quartiles Q1, Q2 (the median) and Q3, the interquartile range, the five-number summary (minimum, Q1, median, Q3, maximum) and the usual 1.5 × IQR fences for spotting outliers. Enter a value xx as well and you also get its percentile rank: the share of the data below it.

There is no single "correct" percentile for a small sample: statistical software uses several definitions that give slightly different answers. The calculator offers the three you are most likely to meet — Excel's PERCENTILE.INC (also R's default), Excel's PERCENTILE.EXC (also Minitab and SPSS) and the nearest-rank method common in textbooks — and the steps show exactly how the result was obtained. For the mean, mode and standard deviation of the same list, use the average calculator.

How to use this calculator

  1. Paste or type your data, separated by commas, spaces or line breaks. The order does not matter.
  2. Enter the percentile pp between 0 and 100 (for example 90 for the 90th percentile).
  3. Pick the method. Keep the inclusive method to match Excel's PERCENTILE.INC, or choose the one your course or software uses.
  4. Optionally enter a value xx to get its percentile rank.
  5. Read the percentile, then the quartiles, IQR, fences and sorted data. The steps show the position and the interpolation.

The formula

Sort the nn values: x1≤x2≤⋯≤xnx_1 \le x_2 \le \dots \le x_n, and write pp as a fraction (90th → 0.9). Hyndman and Fan (1996) catalogue nine definitions; this calculator implements three of them.

Inclusive, R-7 (Excel PERCENTILE.INC, QUARTILE.INC): position h=(n−1)p+1h = (n - 1)p + 1.

Exclusive, R-6 (Excel PERCENTILE.EXC, NIST handbook): position h=(n+1)ph = (n + 1)p, defined for 1n+1≤p≤nn+1\frac{1}{n+1} \le p \le \frac{n}{n+1}.

For both, with k=⌊h⌋k = \lfloor h \rfloor the whole part of the position:

Q(p)=xk+(h−k) (xk+1−xk)Q(p) = x_k + (h - k)\,(x_{k+1} - x_k)

Nearest rank, R-1: Q(p)=xkQ(p) = x_k with k=⌈np⌉k = \lceil n p \rceil (and k=1k = 1 when p=0p = 0). No interpolation: the result is always one of the data values.

Percentile rank of a value xx, with BB values below it and EE values equal to it:

PR(x)=B+12En×100\text{PR}(x) = \frac{B + \tfrac{1}{2}E}{n} \times 100

Quartiles are the 25th, 50th and 75th percentiles; IQR=Q3−Q1\text{IQR} = Q_3 - Q_1, and values below Q1−1.5 IQRQ_1 - 1.5\,\text{IQR} or above Q3+1.5 IQRQ_3 + 1.5\,\text{IQR} are flagged as possible outliers.

Worked example

Twelve exam scores: 62, 68, 71, 74, 75, 78, 80, 83, 85, 88, 91, 95. What is the 90th percentile?

  • Inclusive (R-7): h=11×0.9+1=10.9h = 11 \times 0.9 + 1 = 10.9, so the answer lies 90 % of the way from the 10th value (88) to the 11th (91): 88+0.9×3=90.788 + 0.9 \times 3 = 90.7.
  • Exclusive (R-6): h=13×0.9=11.7h = 13 \times 0.9 = 11.7, so 91+0.7×(95−91)=93.891 + 0.7 \times (95 - 91) = 93.8.
  • Nearest rank: k=⌈12×0.9⌉=⌈10.8⌉=11k = \lceil 12 \times 0.9 \rceil = \lceil 10.8 \rceil = 11, so the 90th percentile is the 11th score, 91.

With the inclusive method the quartiles are Q1=73.25Q_1 = 73.25, median 79 and Q3=85.75Q_3 = 85.75, so IQR=12.5\text{IQR} = 12.5. The fences are 54.5 and 104.5: no score is an outlier.

A student who scored 80 has 6 scores below and 1 equal, so the percentile rank is 6+0.512×100≈54.17\frac{6 + 0.5}{12} \times 100 \approx 54.17 %, and 58.33 % of the class scored 80 or less.

Which percentile method should I use?

Method Position hh Used by Range
Inclusive (R-7) (n−1)p+1(n - 1)p + 1 Excel PERCENTILE.INC and PERCENTILE, Google Sheets, R and NumPy defaults any pp from 0 to 100
Exclusive (R-6) (n+1)p(n + 1)p Excel PERCENTILE.EXC, Minitab, SPSS, NIST pp between 1n+1\frac{1}{n+1} and nn+1\frac{n}{n+1}
Nearest rank (R-1) ⌈np⌉\lceil np \rceil many introductory textbooks any pp

Use the method required by your course, your company's reporting rules or the software you want to match. The differences shrink quickly as the sample grows; with a few thousand values they are usually negligible. With the exclusive method, extreme percentiles of small samples cannot be interpolated: Excel returns #NUM!, while this calculator returns the minimum or maximum and says so.

Percentile, percentage and percentile rank

A percentage is a score out of 100 (you got 80 % of the questions right). A percentile is a position in a group (you did better than 54 % of the class). The two are unrelated: 80 % can be the top score on a hard test or a below-average one on an easy test. The percentile rank answers "what share of the group is below this value?", while the percentile answers the reverse question, "which value has this share below it?". Ties make the two directions differ slightly, which is why the calculator shows both the mid-rank and the share of values at or below xx.

Frequently asked questions

How do I calculate a percentile?

Sort the data, find the position — (n − 1)p + 1 for the inclusive method or (n + 1)p for the exclusive one — and interpolate between the two neighbouring values. For 1, 2, 3, 4 the 30th percentile with the inclusive method is 1.9, as in Excel.

What is the difference between PERCENTILE.INC and PERCENTILE.EXC in Excel?

INC places the minimum at the 0th and the maximum at the 100th percentile; EXC treats them as lying inside the distribution, so it spreads the data more widely and cannot compute percentiles too close to 0 or 100 for small samples.

How are quartiles and the IQR calculated?

Quartiles are the 25th, 50th and 75th percentiles computed with the chosen method. The interquartile range is Q3 − Q1, the spread of the middle half of the data. It ignores extreme values, unlike the range.

What is the five-number summary?

Minimum, first quartile, median, third quartile and maximum. These five numbers are what a box plot draws, and they describe the centre, spread and skew of the data at a glance.

What does a percentile rank of 90 mean?

About 90 % of the values in the group are below that value (ties counted as half). On a growth chart, a child at the 90th percentile for height is taller than about nine in ten children of the same age and sex.

Is the 50th percentile always the median?

With both interpolation methods, yes. With the nearest-rank method and an even number of values, the 50th percentile is the lower middle value rather than the average of the two middle values.

Sources

Last updated:

More Statistics calculators

People also use