Skip to content

Percentile Calculator

Find any percentile of a data set by Excel PERCENTILE.INC, PERCENTILE.EXC or nearest rank, plus percentile rank, quartiles, IQR and outlier fences.

Calculator Details

90th percentile (inclusive):47See results ↓

Numbers separated by commas, spaces or new lines (paste a spreadsheet column).

0 to 100, e.g. 90 for the 90th percentile

Inclusive = Excel PERCENTILE.INC; exclusive = PERCENTILE.EXC; nearest rank = an actual data value

A value whose position in the data you want (e.g. your own score)

Your Results

90th percentile (inclusive): 47

90th percentile (inclusive)

47

From 11 values, 6 to 49

  • PERCENTILE.INC

    47

  • PERCENTILE.EXC

    48.6

  • Nearest rank

    47

  • Percentile rank of 40

    50%

    45.4545% below, 54.5455% at or below · Excel shows 0.5

Q1 (25th)

25.5

Median (50th)

40

Q3 (75th)

42.5

IQR

17

Outlier fences 0 and 68; 0 outliers

The 90th percentile of these 11 values is 47 by the inclusive (Excel PERCENTILE.INC) method. Quartiles: Q1 = 25.5, median = 40, Q3 = 42.5. A value of 40 has a percentile rank of 50% (PERCENTRANK.INC).

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Your data, sorted

Your data, sorted

Detailed Breakdown

Sorted data with each value's percentile positionInclusive position = (rank − 1) ÷ (n − 1); exclusive position = rank ÷ (n + 1). Outliers fall outside Q1 − 1.5 × IQR or Q3 + 1.5 × IQR.
RankValueInclusive %Exclusive %
1608.33333
271016.6667
3152025
4363033.3333
5394041.6667
6405050
7416058.3333
8427066.6667
9438075
10479083.3333
114910091.6667

How This Calculator Works

How it's calculated

Sort the n values. Each method turns p = k/100 into a position h and reads the value there, interpolating between neighbours: inclusive h = (n − 1)p + 1 (Excel PERCENTILE.INC), exclusive h = (n + 1)p (PERCENTILE.EXC, only for 1 ≤ h ≤ n) and nearest rank = ⌈p × n⌉ with no interpolation. Quartiles are the 25th, 50th and 75th percentiles. The percentile rank of a value is PERCENTRANK.INC: the number of values below it (interpolated) ÷ (n − 1).

With your numbers

n = 11, p = 0.9
Inclusive: h = (11 − 1) × 0.9 + 1 = 10 → 47
Exclusive: h = (11 + 1) × 0.9 = 10.8 → 48.6
Nearest rank: ⌈0.9 × 11⌉ = 10 → 47
IQR = 42.5 − 25.5 = 17
Rank of 40: 5 below → 50%

Frequently Asked Questions

What does the 90th percentile mean?

It is the value that 90% of the data falls at or below. If a child’s height is at the 90th percentile, about 90% of children the same age are shorter. A percentile is a position in the data, not a percentage score: 90th percentile on a test does not mean 90% correct.

Why do calculators give different percentiles for the same data?

There is no single agreed definition: Hyndman and Fan listed nine in common software. They differ in where they place each value and how they interpolate. For the data 1, 2, 3, 4 the 25th percentile is 1.75 by Excel’s PERCENTILE.INC, 1.25 by PERCENTILE.EXC and 1 by nearest rank. With large data sets the methods converge.

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

PERCENTILE.INC places the smallest value at the 0th percentile and the largest at the 100th, so any k from 0 to 100 works. PERCENTILE.EXC places them at 1/(n + 1) and n/(n + 1), so percentiles close to 0 or 100 are undefined for small data sets (Excel shows #NUM!). INC matches R, NumPy and Google Sheets’ PERCENTILE; EXC matches Minitab and the NIST e-Handbook. The older PERCENTILE and QUARTILE functions are the same as the .INC versions.

Which method should I use?

Use whatever your course, standard or software specifies so results can be compared. Excel and Google Sheets users usually want inclusive. Statistics courses that teach quartiles as the medians of each half often match the exclusive method. When the answer must be one of the actual observations, such as a service-level target of “95% of requests answered within x ms”, use nearest rank.

How is percentile rank calculated?

Percentile rank goes the other way: from a value to its position. Excel’s PERCENTRANK.INC divides the number of values below it by n − 1, interpolating when the value is not in the data. In 15, 20, 35, 40, 50, the value 40 has 3 values below it, so its rank is 3 ÷ 4 = 75%. The calculator also gives the share of values below it (60%) and at or below it (80%).

Why does Excel show 0.555 when the rank is 5/9?

PERCENTRANK.INC has an optional significance argument that defaults to 3 digits, and Excel truncates rather than rounds to it, so 0.5556 shows as 0.555. The calculator shows the full value and the Excel display side by side.

What are quartiles and the interquartile range?

Quartiles split sorted data into four parts: Q1 is the 25th percentile, Q2 the median and Q3 the 75th percentile. The interquartile range, IQR = Q3 − Q1, is the spread of the middle half of the data. Tukey’s rule flags a value as a possible outlier if it is below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR, the fences used for box plots.

Can I paste data from a spreadsheet?

Yes. Copy a column and paste it into the data box: values can be separated by new lines, commas, spaces, tabs or semicolons. Thousands separators such as 1,250 are understood when the values are separated by spaces or new lines. Up to 10,000 values are accepted.

Percentiles by Excel’s PERCENTILE.INC (Hyndman–Fan type 7), PERCENTILE.EXC (type 6) and the nearest-rank method, in decimal arithmetic, checked against the Microsoft Excel help examples. Percentile rank is PERCENTRANK.INC, shown unrounded and as Excel displays it (truncated to 3 digits). Not included: the other Hyndman–Fan types (1–5, 8, 9), weighted data, grouped (binned) data and percentiles of a normal distribution (see the z-score calculator).

Percentile Calculator: Inclusive, Exclusive and Nearest-Rank Methods

By FindMySum · Last reviewed

A percentile calculator finds the value below which a given percentage of a data set falls. Paste a list of numbers, choose k, and this one returns the k-th percentile by all three methods in everyday use: Excel's inclusive PERCENTILE.INC, its exclusive PERCENTILE.EXC, and the nearest-rank method. It also gives the quartiles, the interquartile range with outlier fences, and the percentile rank of any value you enter, with every sorted value listed beside its percentile position.

What a percentile is

Sort the data from smallest to largest. The k-th percentile is the point that splits the sorted list so that about k% of the values are at or below it. The 50th percentile is the median; the 25th and 75th are the first and third quartiles. Percentiles are useful because they describe position without assuming any particular shape for the data, so one extreme value doesn't distort them the way it can distort a mean.

The difficulty is the word "about". With eleven values, there is no value with exactly 90% of the data below it, so a method has to decide which position counts as the 90th percentile and how to fill the gaps between values. Hyndman and Fan's 1996 survey found nine different rules in statistical software. Three cover nearly every case you will meet.

The three methods

Write p = k ÷ 100 and number the sorted values x₁ to xₙ. Each method computes a position h; when h falls between two whole positions, the result is interpolated linearly between the neighbouring values.

MethodPositionRange of kUsed by
Inclusive (type 7)h = (n − 1)p + 10 to 100Excel PERCENTILE.INC and QUARTILE.INC, Google Sheets, R, NumPy
Exclusive (type 6)h = (n + 1)p100 ÷ (n + 1) to 100n ÷ (n + 1)Excel PERCENTILE.EXC and QUARTILE.EXC, Minitab, NIST e-Handbook
Nearest rankrank = ⌈p × n⌉, no interpolationabove 0 to 100Service-level reports, some textbooks

The inclusive method treats the minimum as the 0th percentile and the maximum as the 100th. The exclusive method treats the data as a sample from something larger, so it places the minimum at 1/(n + 1) and the maximum at n/(n + 1); percentiles beyond those are undefined, which is the #NUM! error in Excel.

Worked example with the default data

The calculator opens with the data from Microsoft's QUARTILE.EXC help page: 6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49. There are n = 11 values, already sorted, and the default asks for the 90th percentile, so p = 0.9.

  • Inclusive: h = 10 × 0.9 + 1 = 10. The 10th value is 47.
  • Exclusive: h = 12 × 0.9 = 10.8. That is 80% of the way from the 10th value (47) to the 11th (49): 47 + 0.8 × 2 = 48.6.
  • Nearest rank: ⌈0.9 × 11⌉ = ⌈9.9⌉ = 10, so the 10th value, 47.

The quartiles show the difference more clearly. By the inclusive method Q1 = 25.5 and Q3 = 42.5; by the exclusive method Q1 = 15 and Q3 = 43, the values Microsoft's help page lists. With only eleven values the two methods disagree by more than ten units at Q1, a reminder to say which method you used when you report a percentile.

Percentile rank

Percentile rank answers the reverse question: given a value, where does it sit? The calculator uses Excel's PERCENTRANK.INC, which counts the values below it and divides by n − 1, interpolating when the value falls between two data points. For the default data, 40 has five values below it, so its rank is 5 ÷ 10 = 50%.

Two simpler measures are shown alongside: the share of values strictly below (5 of 11, about 45.5%) and the share at or below (6 of 11, about 54.5%). Their midpoint, 50%, is the mid-rank definition many textbooks use. For a value outside the data, PERCENTRANK.INC is undefined.

Excel displays PERCENTRANK.INC to three digits by truncating, not rounding, so a rank of 5/9 appears as 0.555 instead of 0.556. The calculator gives both forms, which makes it easy to match a spreadsheet.

Quartiles, IQR and outliers

The interquartile range, IQR = Q3 − Q1, measures the spread of the middle half of the data and ignores the extremes. John Tukey's box-plot rule marks a value as a possible outlier when it lies more than 1.5 × IQR below Q1 or above Q3. With the inclusive quartiles of the default data, IQR = 17 and the fences are 0 and 68, so none of the eleven values is flagged, even though 6 and 7 sit well below the rest. The calculator marks any outliers in the sorted table.

Choosing a method

If you are matching a spreadsheet, a course or a published report, use the same method it used. Without such a constraint, the inclusive method is the most widely implemented default. Use nearest rank when the answer must be an observed value, such as a response time that 95% of requests met. With hundreds of values or more, all three methods give nearly the same answer, and the choice stops mattering.

More questions

Is the median always the 50th percentile?

Yes, by the inclusive and exclusive methods both: they give the middle value for an odd count and the average of the two middle values for an even count. The nearest-rank method gives the lower of the two middle values for an even count, which is why some textbooks call that the lower median.

How are growth-chart percentiles different?

Paediatric growth charts, such as the WHO charts adapted for Canada, don't rank your child among a list you typed in. They compare a measurement with a reference population described by a fitted statistical model (the LMS method), so the percentile comes from a formula, not from sorting data.

What is a percentile in a standardised test report?

It is the percentage of the norm group, the students the test was standardised on, who scored at or below the student. It is not the percentage of questions answered correctly, and it is not evenly spaced: near the middle a few raw-score points can move a student many percentile places, while near the top the same gain moves them very little.

Can a percentile be a value that is not in my data?

With the inclusive and exclusive methods, yes: they interpolate between neighbouring values, so the 30th percentile of 1, 2, 3, 4 is 1.9. The nearest-rank method always returns one of your observations.

What is a decile or a quintile?

Other names for particular percentiles. Deciles cut the data into ten equal parts (the 10th, 20th, … 90th percentiles) and quintiles into five (20th, 40th, 60th, 80th). Income statistics often report the top decile or the bottom quintile. Enter the matching k to get them.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy