🇺🇸 USC
Math & Conversion
📊

Percentile Calculator

kth percentile, percentile rank and percentiles from mean & standard deviation

To find the kth percentile, sort the data and compute a position from k. Excel's PERCENTILE.INC uses position (n − 1) × p + 1 and interpolates, nearest rank takes the value at ceil(p × n), and PERCENTILE.EXC uses (n + 1) × p. For the twelve scores 48 to 95 below, the 90th percentile is 87.4 (interpolated), 88 (nearest rank) or 92.9 (exclusive).

✅

Last updated October 2026

Method: Nearest rank uses rank = ceil(p × n), Hyndman and Fan's type 1. Linear interpolation uses position (n − 1)p + 1, the rule behind Excel PERCENTILE.INC and R's default (type 7). The exclusive method uses position (n + 1)p, the rule behind Excel PERCENTILE.EXC and the NIST handbook (type 6). Percentile rank uses the midpoint formula (B + 0.5E) ÷ n, with Excel PERCENTRANK.INC and .EXC alongside. The normal mode uses a double-precision normal CDF with an absolute error below 10−15.

Included: The kth percentile under three methods with every step shown, a P5 to P95 table, the percentile rank of any value under five definitions, Excel's truncated display values, and percentiles from a mean and standard deviation in both directions.

Not included: Grouped or frequency tables, weighted percentiles, confidence intervals for a percentile, and Hyndman and Fan types 3, 4, 5, 8 and 9. Non-numeric entries are skipped automatically.

📊 What do you want to find?

Try:

All three methods are always shown side by side below. The headline only picks which one appears in the big result.

📊 90th percentile, Linear interpolation (PERCENTILE.INC)

87.4
n = 12 values, p = 0.9
Nearest rank
88
Excel .INC
87.4
Excel .EXC
92.9

⚖️ The three methods side by side

Nearest rank: 88

rank = ceil(p × n) = ceil(0.9 × 12) = ceil(10.8) = 11

The 11th value in the sorted list is 88. This method always returns an actual data value.

Linear interpolation, Excel PERCENTILE.INC: 87.4

h = (n − 1) × p + 1 = 11 × 0.9 + 1 = 10.9

Go 0.9 of the way from the 10th value (82) to the 11th (88): 82 + 0.9 × (88 − 82) = 87.4

Exclusive, Excel PERCENTILE.EXC: 92.9

h = (n + 1) × p = 13 × 0.9 = 11.7

Go 0.7 of the way from the 11th value (88) to the 12th (95): 88 + 0.7 × (95 − 88) = 92.9

🧮 Common percentiles of your data

kNearest rank.INC.EXC
P54850.2n/a
P105252.349.2
P255559.556.5
P506768.568.5
P757778.2580.75
P908887.492.9
P959591.15n/a

P25, P50 and P75 are the quartiles. The exclusive method shows n/a where Excel would return #NUM!.

🔢 Sorted data with percentile ranks

RankValuePercentile rank (midpoint)
1484.17
25212.5
35520.83
46129.17
56437.5
66745.83
77054.17
87362.5
97770.83
108279.17
118887.5
129595.83
Everything is computed in your browser. Nearest rank uses rank = ceil(p × n); PERCENTILE.INC interpolates at position (n − 1)p + 1; PERCENTILE.EXC interpolates at position (n + 1)p; the normal mode uses Φ((x − μ) ÷ σ).

Percentile calculator: three methods, percentile rank and the normal shortcut

A percentile calculator answers two mirror-image questions: "which value sits at the kth percentile?" and "what percentile is this value?", the percentile rank. This page handles both from raw data, and adds a third route for when you only know the mean and standard deviation of roughly bell-shaped data.

There is no single official formula. In 1996 the statisticians Hyndman and Fan catalogued nine sample percentile definitions used by statistical software, and spreadsheets and textbooks still disagree. The calculator shows the three you are most likely to be asked for side by side, so you can match your course, your spreadsheet or your report.

What a percentile tells you

The kth percentile is a cut point: roughly k percent of the values fall at or below it. The 50th percentile is the median, the 25th and 75th are the quartiles, and the 90th marks the start of the top tenth. Because a percentile depends only on the order of the values, one extreme number cannot drag it around the way it drags an average, which is why growth charts, test reports and response-time dashboards speak in percentiles. A percentile describes position, not quality: the 60th percentile of a strong group can beat the 90th percentile of a weak one.

The three percentile formulas

All three methods begin the same way: sort the n values from smallest to largest, number them 1 to n, and write the percentile as a proportion, p = k ÷ 100. They differ only in how they turn p into a position in the sorted list:

Nearest rank: position = ceil(p × n), take that value PERCENTILE.INC: h = (n − 1) × p + 1 PERCENTILE.EXC: h = (n + 1) × p, valid for 1 ≤ h ≤ n Interpolation: x⌊h⌋ + (h − ⌊h⌋) × (x⌊h⌋+1 − x⌊h⌋)

When h is a whole number, both interpolating methods simply return the value at that position. When h has a fractional part, the answer lies that fraction of the way from one value to the next. Nearest rank skips interpolation entirely and rounds the position up, so its answer is always an actual observation.

Worked example: the 90th percentile of twelve exam scores

Take twelve exam scores, already sorted: 48, 52, 55, 61, 64, 67, 70, 73, 77, 82, 88, 95. We want the 90th percentile, so p = 0.9 and n = 12.

Nearest rank: ceil(0.9 × 12) = ceil(10.8) = 11 → 88 INC: h = 11 × 0.9 + 1 = 10.9 → 82 + 0.9 × (88 − 82) = 87.4 EXC: h = 13 × 0.9 = 11.7 → 88 + 0.7 × (95 − 88) = 92.9

Three defensible answers from one data set: 87.4, 88 and 92.9. Twelve values leave big gaps near the top of the list, and PERCENTILE.EXC reaches furthest toward the maximum because its positions run on a scale of n + 1 = 13 slots instead of n − 1 = 11 gaps. Load the "Exam scores (12)" example and set k to 90 to see every step.

The three methods compared at common percentiles

Each method applied to the same twelve scores. The calculator reproduces every figure in its "Common percentiles of your data" card.

Percentile Nearest rank PERCENTILE.INC PERCENTILE.EXC
5th4850.2n/a (#NUM!)
10th5252.349.2
25th (Q1)5559.556.5
50th (median)6768.568.5
75th (Q3)7778.2580.75
90th8887.492.9
95th9591.15n/a (#NUM!)

The exclusive method cannot reach the 5th or 95th percentile with twelve values, because its valid range is 100 ÷ 13 = 7.69 to 1,200 ÷ 13 = 92.31. Nearest rank reports 67 rather than 68.5 as the median, since it never averages the two middle values of an even-sized set.

How to find a percentile by hand

  1. Sort the data from smallest to largest and count the values, n.
  2. Convert the percentile to a proportion: the 80th percentile becomes p = 0.8.
  3. Compute the position for your method, for example h = (n − 1) × p + 1 for PERCENTILE.INC.
  4. If the position is a whole number, the answer is the value in that spot.
  5. Otherwise split h into a whole part and a fraction, and move that fraction of the way from the value at the whole-number position to the next value.

For the 80th percentile of the twelve scores, PERCENTILE.INC gives h = 11 × 0.8 + 1 = 9.8, so you go 0.8 of the way from the 9th value (77) to the 10th (82): 77 + 0.8 × 5 = 81.

Percentile rank: the reverse question

A percentile rank calculator starts from a value and reports where it stands. Count the values strictly below it (B) and the values equal to it (E), then apply the midpoint formula:

PR = (B + 0.5 × E) ÷ n × 100

In the twelve scores, the value 73 has B = 7 values below it (48 through 70) and E = 1 copy of itself, so PR = (7 + 0.5) ÷ 12 × 100 = 62.5. The share strictly below is 58.33% and the share at or below is 66.67%; the midpoint formula splits the difference so a value is not credited for outscoring itself. Excel answers on a 0 to 1 scale: PERCENTRANK.INC returns B ÷ (n − 1) = 7 ÷ 11 = 0.6364, displayed as 0.636, and PERCENTRANK.EXC returns (B + 1) ÷ (n + 1) = 8 ÷ 13 = 0.6154, displayed as 0.615.

Worked example: a percentile from the mean and standard deviation

Sometimes you have no raw data, only a summary: a test with a mean of 72 and a standard deviation of 8, with scores that follow a roughly normal curve. To find the percentile of a score of 84, standardize it and read the normal cumulative distribution:

z = (x − μ) ÷ σ = (84 − 72) ÷ 8 = 1.5 Φ(1.5) = 0.9332 → 93.32nd percentile 10th percentile: x = 72 + (−1.2816) × 8 = 61.75

The reverse direction inverts the normal CDF: the 10th percentile sits 1.2816 standard deviations below the mean, at 61.75, and by symmetry the 90th sits at 82.25. The CDF has no closed form, so the calculator uses a double-precision approximation. The tables below come from the same function: z-score to percentile on the left, percentile to z-score on the right.

z Percentile
−3.00.13
−2.50.62
−2.02.28
−1.56.68
−1.015.87
−0.530.85
0.050.00
0.569.15
1.084.13
1.593.32
2.097.72
2.599.38
3.099.87
Percentile z
1st−2.3263
2.5th−1.9600
5th−1.6449
10th−1.2816
25th−0.6745
50th0.0000
75th0.6745
90th1.2816
95th1.6449
97.5th1.9600
99th2.3263

The percentiles are unevenly spaced: moving from the 50th to the 60th percentile takes 0.2533 standard deviations, while moving from the 90th to the 99th takes 1.0448. Near the middle of a bell curve a small change in score passes many people; in the tails it takes a large change to pass a few.

Which percentile method should you use?

Match the tool your audience will check against. Excel's PERCENTILE.INC, the older PERCENTILE function it replaced, and R's default quantile type all use linear interpolation, so it is the headline method here. The NIST/SEMATECH e-Handbook of Statistical Methods describes the p(n + 1) rule that PERCENTILE.EXC uses, but clamps to the minimum and maximum at the ends where Excel returns an error. Some courses teach nearest rank, and NIST also lists a textbook variant that averages two values when p × n is a whole number; the calculator mentions that variant whenever it differs. On large data sets all methods converge, so the choice matters most for small samples.

How to use this calculator

Pick a mode with the three tabs. In kth percentile mode, paste your numbers (commas, spaces and line breaks all work), type k or tap a quick button such as P90, and choose which method fills the big result. In Percentile rank mode, enter the value to rank; it does not need to appear in the list. In Mean & SD mode, enter the mean and standard deviation and switch between "value → percentile" and "percentile → value". The sorted table at the bottom labels every value with its own percentile rank. Students use it to check homework against an answer key, analysts to summarize skewed data such as response times, and parents and test takers to read a score report.

Key terms

  • kth (or nth) percentile: the value below which about k percent of the data falls.
  • Percentile rank: the percentage of values below a given value, usually with ties split in half.
  • Position (h): the possibly fractional place in the sorted list where the percentile sits.
  • Interpolation: estimating a value between two neighbors in proportion to the fractional part of h.
  • Quartiles and deciles: the 25th, 50th and 75th percentiles, and the 10th, 20th and so on.
  • z-score: how many standard deviations a value sits from the mean, (x − μ) ÷ σ.
  • Normal CDF, Φ(z): the share of a normal distribution below z.

What changes a percentile, and reporting tips

  • The method: on twelve values the 90th percentile ranges from 87.4 to 92.9.
  • The sample size: small n leaves large gaps between neighbors, so interpolation choices swing the answer.
  • Ties: many identical values make several percentiles collapse onto one number.
  • Values near the target position: changing the largest value moves P95 on a small set but leaves P25 untouched.
  • Tip: name the method next to the number, for example "P90 = 87.4 (PERCENTILE.INC)".
  • Tip: round to the precision of the raw data, and say whether a percentile rank counts ties as below, at or halfway.

Limitations

A sample percentile estimates a population percentile, and on small samples it is noisy: one extra observation can move P90 by several points, and no confidence interval is reported. The mean and SD mode is only as good as its normal assumption; for skewed data such as incomes or waiting times, rank the raw values instead. Percentile ranks are ordinal, so equal percentile gaps do not mean equal gaps in the underlying values.

Related calculators

Sources

⚠️ Common mistakes & edge cases

Reading a percentile as a percentage score

"85th percentile" means you did as well as or better than about 85% of the group, not that you earned 85% of the points. On a hard or an easy test the two numbers can be far apart.

Computing the position on unsorted data

Every percentile formula counts positions in the sorted list, so applying (n − 1) × p + 1 to the order of entry gives a meaningless number. The calculator sorts for you; on paper, sort first.

Mixing Excel's .INC and .EXC

On the twelve exam scores the 75th percentile is 78.25 with PERCENTILE.INC and 80.75 with PERCENTILE.EXC. When two spreadsheets disagree, compare the functions before hunting for a data error.

Expecting PERCENTILE.EXC to work at the extremes

For ten values the exclusive method only covers k from about 9.09 to 90.91, so the 5th and 95th percentiles return #NUM!. Use .INC or nearest rank for extreme percentiles of small samples.

Applying the normal shortcut to skewed data

Φ((x − μ) ÷ σ) assumes a bell curve. On right-skewed data such as household incomes it misplaces values in the long tail. When you have the raw numbers, rank them directly.

Ignoring ties in a percentile rank

With repeated values, "percent below" and "percent at or below" can differ a lot: for the value 6 in 1, 2, 3, 6, 6, 6, 7, 8, 9 they are 33.33% and 66.67%. Say which one you report, or use the midpoint value of 50.

Note: Results are exact for the numbers you enter. Percentile definitions are conventions, so always name the method next to the number when the answer will be compared with someone else's.

❓ Frequently asked questions

How do I find the kth percentile of a data set?

Sort the values, turn k into a proportion p (90 becomes 0.9) and compute a position. Nearest rank takes the value at ceil(p × n). Excel's PERCENTILE.INC uses position (n − 1) × p + 1 and interpolates between the two values around it. For the twelve scores 48, 52, 55, 61, 64, 67, 70, 73, 77, 82, 88, 95, the 90th percentile is 88 by nearest rank, 87.4 by PERCENTILE.INC and 92.9 by PERCENTILE.EXC.

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

Both interpolate, but at different positions. PERCENTILE.INC uses (n − 1) × p + 1, so its 0th percentile is the minimum and its 100th is the maximum. PERCENTILE.EXC uses (n + 1) × p, which reaches further toward the ends and cannot produce the most extreme percentiles at all. On the twelve exam scores, the 75th percentile is 78.25 with .INC and 80.75 with .EXC.

What is a percentile rank and how is it calculated?

A percentile rank answers the reverse question: what share of the data sits below a given value? The textbook formula is PR = (B + 0.5 × E) ÷ n × 100, where B counts the values below x and E the values equal to x. The score 73 among the twelve scores has 7 values below it and 1 equal, so PR = (7 + 0.5) ÷ 12 × 100 = 62.5.

Is the 90th percentile the same as scoring 90 percent?

No. A percentage score counts the points you earned out of the maximum; a percentile describes your position among other people. A 70% on a very hard exam can sit at the 95th percentile, and a 95% on an easy exam can sit near the middle of the group.

How do I calculate a percentile from the mean and standard deviation?

If the data are roughly normal, compute z = (x − μ) ÷ σ and look up the normal cumulative probability Φ(z). With a mean of 72 and a standard deviation of 8, a value of 84 has z = 1.5 and Φ(1.5) = 0.9332, about the 93.32nd percentile. In reverse, the 10th percentile is 72 − 1.2816 × 8 = 61.75.

Why does PERCENTILE.EXC return #NUM! for the 5th or 95th percentile?

Its position (n + 1) × p must land between 1 and n, so with n values it only covers k from 100 ÷ (n + 1) to 100n ÷ (n + 1). For twelve values that is 7.69 to 92.31, so the 5th and 95th percentiles fall outside and Excel returns #NUM!. The calculator shows n/a there and still gives the other two methods.

How are ties handled in a percentile rank?

The midpoint formula counts half of the tied values as below. In Excel's sample data 1, 2, 3, 6, 6, 6, 7, 8, 9, the value 6 has 3 values below and 3 equal, so its percentile rank is (3 + 1.5) ÷ 9 × 100 = 50. The share strictly below is 33.33% and the share at or below is 66.67%. Excel's PERCENTRANK.INC uses the first occurrence and returns 0.375.

What is the nth percentile and how do I calculate it?

The nth percentile is the kth percentile under another letter: the value below which about n percent of the data falls. For the 80th percentile of the twelve exam scores, p = 0.8. Nearest rank gives position ceil(9.6) = 10 and the value 82, PERCENTILE.INC gives position 9.8 and 81, and PERCENTILE.EXC gives position 10.4 and 84.4.

Can a value be at the 100th percentile?

Under PERCENTILE.INC and nearest rank, the 100th percentile is simply the maximum. Under the midpoint percentile rank formula it never quite gets there: the top value among n distinct values ranks at (n − 0.5) ÷ n × 100, so the best of the twelve scores sits at the 95.83rd percentile.

💡 Good to know

The median is only P50 under interpolating methods

With an even count, nearest rank returns the lower of the two middle values as the 50th percentile: 67 for the twelve exam scores, while PERCENTILE.INC, PERCENTILE.EXC and the usual median rule all give 68.5.

Excel shows 0.555 for five ninths

PERCENTRANK.INC and PERCENTRANK.EXC display three digits by default, and Microsoft's own example shows them cutting rather than rounding: 5 ÷ 9 = 0.5556 appears as 0.555. The calculator shows the full value and the figure Excel would display.

Percentile steps are not equal steps

On a normal curve, climbing from the 50th to the 60th percentile takes 0.25 standard deviations, but climbing from the 90th to the 99th takes 1.04. A ten-point gain near the middle is a much smaller change in the score than a nine-point gain near the top.

Related Calculators