PMT Function in Excel — With Examples (Loan Payment, Mortgage, Savings)
Learn the PMT function in Excel: monthly loan and mortgage payments, the negative sign, total interest, and savings goals.
Read Guide →You have ten exam scores and you need the cutoff for the top 10% — the score a student must beat to be in the top tenth. Or the salary below which three quarters of the team falls. That is what PERCENTILE does — it returns the value below which a given percentage of the data falls. The formula is =PERCENTILE.INC(array, k), and the second part, k, is the whole job: 0.9 means the 90th percentile, 0.5 means the median, and 90 means an error. This guide gives you that rule first, then runs every percentile on one table of ten scores, so you can check each answer yourself — including the case where PERCENTILE.EXC gives a different answer, and the case where it gives #NUM!.
Quick takeaway: the 90th percentile is the value 90% of the data falls at or below.
=PERCENTILE.INC(array, k) — k is a decimal: 0.9 for the 90th, 0.75 for the 75th, 0.5 for the median.PERCENTILE is the older name for the same function — PERCENTILE.INC is the modern one.PERCENTILE.EXC excludes the ends: k must be strictly between 0 and 1, and it can return #NUM!.PERCENTRANK.INC goes the other way: it tells you what percentile one value is in.
=PERCENTILE.INC(array, k)
| Part | What it does |
|---|---|
array | The range of numbers — the scores, the salaries, the data |
k | The percentile you want, as a decimal from 0 to 1 — 0.9 is the 90th percentile |
Both arguments are required. The rule for the second one, in one sentence: k is a fraction, not a percentage — 0.9, not 90. Excel also accepts 90% written as a percentage, which is the same as 0.9, but the number 90 on its own is outside the range 0 to 1 and raises #NUM!. Text and blank cells in the range are ignored.
Every example below uses the same ten scores, sorted smallest to largest. Every result was checked against them.
| Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| Score | 45 | 52 | 58 | 63 | 67 | 71 | 76 | 82 | 88 | 95 |
Ten scores, from 45 to 95. The middle two are 67 and 71, so the median — the average of the two — is 69. Keep that number in mind: it will come back in every section.
One formula, three cutoffs. Change only k.
| Goal | Formula | Result |
|---|---|---|
| 90th percentile | =PERCENTILE.INC(A2:A11, 0.9) | 88.7 |
| 75th percentile | =PERCENTILE.INC(A2:A11, 0.75) | 80.5 |
| 95th percentile | =PERCENTILE.INC(A2:A11, 0.95) | 91.85 |
| 80th percentile | =PERCENTILE.INC(A2:A11, 0.8) | 83.2 |
| Median (50th) | =PERCENTILE.INC(A2:A11, 0.5) | 69 |
| 25th percentile | =PERCENTILE.INC(A2:A11, 0.25) | 59.25 |
| 10th percentile | =PERCENTILE.INC(A2:A11, 0.1) | 51.3 |
Read the 90th percentile in plain words: 88.7 is the score that 90% of the students fall at or below. Nine of the ten scores are 88 or below, and the tenth is 95 — so the 90th percentile sits just above 88, at 88.7. It is not a score anyone got. That is normal: a percentile is a position in the data, not a value from it.
Excel does not pick a score from the list. It sorts the values, works out a position, and interpolates — blends — between the two nearest values when the position falls between them. The position is 1 + (n - 1) × k, where n is the count of values.
For the 90th percentile, n is 10 and k is 0.9, so the position is 1 + 9 × 0.9 = 9.1. That is one tenth of the way from the 9th score (88) to the 10th (95): 88 + 0.1 × (95 − 88) = 88 + 0.7 = 88.7.
| Percentile | Position | Between | Calculation | Result |
|---|---|---|---|---|
| 90th | 9.1 | 88 and 95 | 88 + 0.1 × 7 | 88.7 |
| 75th | 7.75 | 76 and 82 | 76 + 0.75 × 6 | 80.5 |
| 50th | 5.5 | 67 and 71 | 67 + 0.5 × 4 | 69 |
| 25th | 3.25 | 58 and 63 | 58 + 0.25 × 5 | 59.25 |
| 95th | 9.55 | 88 and 95 | 88 + 0.55 × 7 | 91.85 |
The 50th row is the one to check against what you already know: the median of ten values is the average of the 5th and 6th — (67 + 71) ÷ 2 = 69 — and the percentile formula gives exactly 69. The two routes agree, which is how you know the interpolation is right.
PERCENTILE.EXC uses the exclusive method: it does not count the smallest and largest values as positions 0 and 1, so its results are spread slightly further out, and k must be strictly between 0 and 1 — more precisely, between 1/(n+1) and n/(n+1). With 10 values that is roughly 0.09 to 0.91. Outside that range, it returns #NUM!.
| Percentile | PERCENTILE.INC | PERCENTILE.EXC |
|---|---|---|
| 10th | 51.3 | 45.7 |
| 25th | 59.25 | 56.5 |
| 50th (median) | 69 | 69 |
| 75th | 80.5 | 83.5 |
| 80th | 83.2 | 86.8 |
| 90th | 88.7 | 94.3 |
| 95th | 91.85 | #NUM! |
Read the table. The two agree at the median — 69 both ways — and differ everywhere else: EXC is lower at the bottom (56.5 against 59.25 at the 25th) and higher at the top (94.3 against 88.7 at the 90th), because it spreads the results further out. And the 95th row is the case that matters: INC gives 91.85, EXC gives #NUM!, because 0.95 is above the top of its range (10/11, about 0.91). Use INC unless a method or standard you follow specifies the exclusive one — INC is the default, and it never errors on a percentile between 0 and 1.
A quartile is a percentile at a fixed point: Q1 is the 25th percentile, Q2 is the median, Q3 is the 75th. The QUARTILE function takes a whole number — 0 to 4 — instead of a decimal.
=QUARTILE.INC(array, quart)
| Quartile | Means | Formula | Result (INC) | Result (EXC) |
|---|---|---|---|---|
| Q0 | Minimum | =QUARTILE.INC(A2:A11, 0) | 45 | — |
| Q1 | 25th percentile | =QUARTILE.INC(A2:A11, 1) | 59.25 | 56.5 |
| Q2 | Median | =QUARTILE.INC(A2:A11, 2) | 69 | 69 |
| Q3 | 75th percentile | =QUARTILE.INC(A2:A11, 3) | 80.5 | 83.5 |
| Q4 | Maximum | =QUARTILE.INC(A2:A11, 4) | 95 | — |
QUARTILE is simply PERCENTILE asked at five specific points — =QUARTILE.INC(A2:A11, 1) gives exactly the same answer as =PERCENTILE.INC(A2:A11, 0.25). And the old QUARTILE is identical to QUARTILE.INC, just as PERCENTILE is identical to PERCENTILE.INC. QUARTILE.EXC accepts only 1, 2 and 3 — there is no exclusive minimum or maximum, so Q0 and Q4 have no EXC version. The interquartile range — the middle half of the data — is Q3 minus Q1: 80.5 − 59.25 = 21.25 with INC, and 83.5 − 56.5 = 27 with EXC.
PERCENTILE takes a percentile and returns a value. PERCENTRANK.INC goes the other way: it takes a value and returns the percentile it sits in, formatted as a percentage.
=PERCENTRANK.INC(array, x)
| Score | Formula | Percentile rank |
|---|---|---|
| 82 | =PERCENTRANK.INC(A2:A11, 82) | 77.78% |
| 71 | =PERCENTRANK.INC(A2:A11, 71) | 55.56% |
| 95 | =PERCENTRANK.INC(A2:A11, 95) | 100% |
| 45 | =PERCENTRANK.INC(A2:A11, 45) | 0% |
82 sits at 77.78%: eight of the ten scores are 82 or below, and the rank is (8 − 1) ÷ (10 − 1) = 7 ÷ 9 = 0.7778. A student who scored 82 is above about 78% of the class. And the two ends behave as they should: the top score is the 100th percentile, the bottom score is the 0th.
| Mistake | What happens | Fix |
|---|---|---|
| You typed 90 instead of 0.9 | #NUM! — k must be between 0 and 1 | Use 0.9, or 90% written as a percentage |
| You used EXC for a 95th percentile | #NUM! — with 10 values, EXC only goes to about 0.91 | Use PERCENTILE.INC, which accepts 0 to 1 |
| You expected a score from the list | The answer is 88.7 — no one scored 88.7 | A percentile is a position, not a value from the data |
| You confused percentile with percentage | The 90th percentile is not 90% of anything | It is the value 90% of the data falls at or below |
| You used the old PERCENTILE in new work | It works — but it hides which method it uses | Use PERCENTILE.INC, which says inclusive in the name |
| You included a header row in the range | Text is ignored, so the answer is usually still right — but a number in the header is not | Select only the numbers |
What is the percentile formula in Excel? =PERCENTILE.INC(array, k). For example, =PERCENTILE.INC(A2:A11, 0.9) gives the 90th percentile — the value 90% of the data falls at or below.
How do I calculate the 90th percentile in Excel? =PERCENTILE.INC(A2:A11, 0.9). On the ten scores in this article that gives 88.7.
What is the difference between PERCENTILE.INC and PERCENTILE.EXC? INC includes the smallest and largest values and accepts k from 0 to 1. EXC excludes the ends, spreads the results further out, and only accepts k between 1/(n+1) and n/(n+1) — with 10 values, about 0.09 to 0.91. They agree at the median and differ everywhere else.
How do I calculate quartiles in Excel? =QUARTILE.INC(array, quart) with quart 1, 2 or 3 — or the same thing with PERCENTILE.INC at 0.25, 0.5 and 0.75. On the ten scores, Q1 is 59.25, Q2 is 69 and Q3 is 80.5.
How do I find what percentile a value is in? =PERCENTRANK.INC(array, x), formatted as a percentage. A score of 82 in the ten scores is the 77.78th percentile.
Why does my percentile formula return #NUM!? Either k is outside the range — 90 instead of 0.9, or a percentile above about 0.91 with PERCENTILE.EXC — or the range has no numbers in it. Check k first.
Is a 95% confidence interval the same as the 95th percentile? No. A confidence interval is a different calculation — it estimates where a true average lies, using CONFIDENCE.NORM or CONFIDENCE.T — while the 95th percentile is the value 95% of your data falls at or below. Do not use one where you need the other.
That is the percentile formula in Excel: one range, one decimal — =PERCENTILE.INC(array, k) — with 0.9 for the 90th percentile, 0.75 for the 75th, and 0.5 for the median. On the ten scores in this guide, that one pattern answers every question: the 90th percentile is 88.7, the 75th is 80.5, the 95th is 91.85, and the median is 69 — the average of the middle two, 67 and 71, which is how you know the interpolation is right. The quartiles are the same percentiles at fixed points — Q1 is 59.25, Q2 is 69, Q3 is 80.5 — and the middle half of the data, the interquartile range, is 21.25. Remember the two things that catch everyone once: k is a decimal, not a percentage — 90 gives #NUM!, 0.9 gives the answer — and a percentile is a position, not a score from the list, so 88.7 is a correct answer even though nobody scored it. From here, the next functions worth learning are the ones this one sits next to — the z-score formula for how far a value sits from the average, the standard deviation formula for how spread out the data is, and the full learning order for the whole site is on the Excel Formulas hub and the Finance & Stats category page.
Learn the PMT function in Excel: monthly loan and mortgage payments, the negative sign, total interest, and savings goals.
Read Guide →Learn the p value formula in Excel: T.TEST, what 0.05 means, one-tailed vs two-tailed, and the mistakes to avoid.
Read Guide →Learn the z score formula in Excel: STANDARDIZE, how to read a z score, percentiles, and comparing scores on different scales.
Read Guide →