Skip to content
DeviceCheckHub

Percentile Calculator

Find one percentile or many from a list of numbers, compare the Excel, NIST and textbook methods, look up the percentile rank of any value and see each step.

Your data

The 90th percentile of your 12 values is 95.1957, by the Excel INC (R7) method.

90th percentile = 95.1957

10 of 12 values are at or below 95.1957 (83.33%).

The percentiles you asked for
PercentileValuePosition
90th95.195710.9
75th95.18139.25
50th95.15796.5
25th95.11633.75

The 90th percentile by each method

MethodValuePosition
Excel INC (R7)95.195710.9
NIST, Excel EXC (R6)95.198111.7
Hyndman–Fan (R8)95.197211.4333
Textbook (nearest rank)95.195911
Values n
12
Minimum
95.061
Median (50th)
95.1579
Maximum
95.199
Mean
95.1478

Step by step

  1. Sort the 12 values from smallest to largest: 95.061, 95.0925, 95.1065, 95.1195, 95.1442, 95.1567, 95.1591, 95.1682, 95.1772, 95.1937, 95.1959, 95.199.
  2. Find the position 1 + p(n − 1) = 1 + 0.9 × 11 = 10.9.
  3. Go 0.9 of the way from value 10 (95.1937) to value 11 (95.1959): 95.1937 + 0.9 × (95.1959 − 95.1937) = 95.1957.
  • The methods give different answers here, from 95.1957 to 95.1981. With more data they draw closer together.

In Excel or Google Sheets, with the data in column A from row 2: =PERCENTILE.INC(A2:A13, 0.9)

In R: quantile(x, 0.9, type = 7)

Percentile table

PercentileValue
1st95.0645
5th95.0783
10th95.0939
15th95.1016
20th95.1091
25th95.1163
30th95.1269
35th95.1405
40th95.1492
45th95.1561
50th95.1579
55th95.1596
60th95.1646
65th95.1696
70th95.1745
75th95.1813
80th95.1904
85th95.1945
90th95.1957
95th95.1973
99th95.1987

How to use the percentile calculator

  1. Type or paste your numbers, separated by spaces, commas or new lines. A column copied from Excel or Google Sheets works as it is.
  2. Enter the percentile you want, such as 90, or several at once, such as 25, 50, 75.
  3. Choose a method, or leave Excel’s PERCENTILE.INC. The answer, the same percentile by every method, the steps and a table from the 1st to the 99th percentile update as you type.
  4. To see where one value stands, type it in the percentile rank box.

What a percentile is

NIST’s Engineering Statistics Handbook defines the pth percentile as a value such that at most 100p% of the measurements are less than it and at most 100(1 − p)% are greater. It adds that “the 50th percentile is called the median” and that “percentiles split a set of ordered data into hundredths.” So if a value is the 90th percentile of a set of test scores, about nine in ten scores are at or below it and about one in ten is above it.

Percentiles are used wherever a single value needs context: growth charts for children, standardized test results, salary surveys, response times of a website, the acceptance limits of a manufacturing process. The 25th, 50th and 75th percentiles are the quartiles, and the 10th, 20th and so on are the deciles.

Why there is more than one method

With a sample of data, the percentile you want usually falls between two of the sorted values, and something has to decide where. NIST points out that no single way of doing this is accepted everywhere, and that “all of the methods discussed here are used in practice.” Hyndman and Fan compared nine methods in 1996 and numbered them R1 to R9; the calculator gives the four that NIST’s handbook describes, side by side, so you can match whatever software or textbook you are checking against.

For the first three, the position is split into a whole number k and a fraction d. The percentile is the kth sorted value plus d times the gap to the next one. A position before the first value gives the smallest value, and one past the last gives the largest. NIST concludes that “for most purposes, any of these three methods should be acceptable,” while “one of R6, R7, or R8 would typically be preferred” to the textbook rule. With many values, all four give nearly the same answer; with a handful, they can differ noticeably.

Worked example: NIST’s resistivity data

NIST’s example uses twelve resistivity measurements of silicon wafers, in ohm·cm, which are the example data above. Sorted, they run from 95.0610 to 95.1990. For the 90th percentile by NIST’s method, the handbook works out p(N + 1) = 0.9 × 13 = 11.7, so k = 11 and d = 0.7, and the answer is 70% of the way from the 11th value, 95.1959, to the 12th, 95.1990. The calculator gives 95.1981, matching NIST’s 95.1981. NIST reports that R8 gives 95.1972 and R7 gives 95.1957; the calculator finds 95.1972 and 95.1957. The textbook rule rounds 0.9 × 12 = 10.8 up to 11 and takes the 11th value, 95.1959.

Percentiles in Excel and Google Sheets

Excel has two functions. PERCENTILE.INC “returns the k-th percentile of values in a range, where k is in the range 0 to 1, inclusive,” so k = 0 gives the smallest value and k = 1 the largest. Microsoft’s example finds the 30th percentile of 1, 3, 2 and 4 as 1.9, and the calculator agrees: 1.9. PERCENTILE.EXC uses the range “0..1, exclusive,” and Microsoft warns that “if it cannot interpolate for the percentile, k specified, Excel will return #NUM! error.” That happens for percentiles below 1/(n + 1) or above n/(n + 1); for those, the calculator follows NIST and gives the smallest or largest value, with a note.

Note that Excel takes k as a fraction from 0 to 1, so the 90th percentile is k = 0.9, while this calculator takes the percentile itself, 90. The formula under each result is written out for your data, assuming it sits in column A from row 2.

Percentile rank: where a value stands

The opposite question is what percentile a given value is at. Type the value into the percentile rank box and the calculator counts the values below it and the values at or below it, as numbers and percentages, and gives Excel’s PERCENTRANK.INC, which Microsoft describes as returning “the rank of a value in a data set as a percentage (0..1, inclusive) of the data set.” It divides the number of values below by the number below plus the number above. For a value between two data values, “PERCENTRANK.INC interpolates to return the correct percentage rank.”

Microsoft’s example data are 13, 12, 11, 8, 4, 3, 2, 1, 1 and 1. Three values are smaller than 2 and six are larger, so the rank of 2 is 3 / (3 + 6), and the calculator shows 33.33%. The ranks of 4 and 8 are 55.56% and 66.67%, and 5, a quarter of the way from 4 to 8, gets 58.33%. Excel shows 0.333, 0.555, 0.666 and 0.583 because it cuts the result to three digits by default.

Median, quartiles and the five-number summary

The median is the 50th percentile, and every method here gives the usual median: the middle value of an odd number of values, or the average of the two middle values of an even number. The quartiles are the 25th and 75th percentiles, and the gap between them, the interquartile range, holds the middle half of the data. Together with the smallest and largest values they make the five-number summary used to draw a box plot. Different textbooks find quartiles in slightly different ways, which is why a quartile from a calculator and one worked out by hand can disagree a little; choose the matching method above.

Tips for reliable percentiles

Percentiles near the ends need plenty of data. With 12 values, the 99th percentile is little more than the largest value, and one unusual measurement can move it a lot. The more values lie beyond a percentile, the steadier its estimate. For a percentile of a normal distribution rather than of your data, such as the height at the 90th percentile for a given mean and standard deviation, use the z-score calculator instead.

Your data stays on your device

Everything is worked out in your browser. Nothing you type or paste is sent anywhere or stored.

Frequently asked questions

What is the difference between a percentile and a percentage?

A percentage is a share of a total, such as 45 correct answers out of 50 being 90%. A percentile is a position in a group: scoring at the 90th percentile means doing as well as or better than about 90% of the people who took the test, whatever the score itself was.

Why does my answer differ from Excel or another calculator?

There is no single agreed formula for percentiles of a sample. Excel’s PERCENTILE.INC and PERCENTILE.EXC, NIST’s method and the textbook rule all place the percentile slightly differently. Pick the same method here as the one you are comparing with, and the answers will match.

How do I find quartiles with this calculator?

Enter 25, 50, 75 as the percentiles. The 25th percentile is the first quartile, the 50th is the median and the 75th is the third quartile. Choose the method that matches the book or software you are comparing with.

How many values can I enter?

Up to 10,000 numbers, separated by spaces, commas, semicolons or new lines, so you can paste a whole column from a spreadsheet. You can ask for up to 20 percentiles at once.

What does the percentile rank of a value tell me?

It says where a value stands within your data, as a percentage. The calculator shows how many values are below it, how many are at or below it, and Excel’s PERCENTRANK.INC, which places the smallest value at 0% and the largest at 100%.

Is my data uploaded?

No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.

Last updated · About DeviceCheckHub