PERCENTILE and QUARTILE in Excel, Explained Simply
By ExcelReady TeamUpdated 7 min read
The short answer
A percentile is the value below which a given share of your data falls. In Excel, =PERCENTILE.INC(B2:B11,0.9) returns the 90th percentile, and =QUARTILE.INC(B2:B11,1) returns the first quartile (the 25th percentile). Write the percentile as a decimal between 0 and 1, or as a percentage such as 90%. The 50th percentile is the median.
Key takeaways
- =PERCENTILE.INC(range, k) takes k between 0 and 1: 0.9 or 90% means the 90th percentile.
- =QUARTILE.INC(range, quart) takes 0 to 4: 1 is Q1, 2 is the median, 3 is Q3, and 0 and 4 are the min and max.
- Excel interpolates between values, so a percentile can be a number that isn't in your list.
- Use the .INC versions unless a method tells you otherwise; PERCENTILE and QUARTILE are older names for the same thing.
- k outside 0–1, or a quart outside 0–4, returns #NUM!.
On this page+
A percentile tells you where a value stands in a group: the 90th percentile is the value that 90% of the data is at or below. In Excel, PERCENTILE.INC finds any percentile and QUARTILE.INC finds the quarter points, Q1, the median and Q3. This guide is for anyone who has to read test scores, salaries, delivery times or survey results, and it explains both functions on one small list you can type in.
What are percentiles and quartiles?#
A percentile splits sorted data into 100 equal parts. The 25th percentile is the value a quarter of the data is at or below; the 90th percentile is the value 90% of the data is at or below.
Quartiles are just three special percentiles that split the data into four parts:
| Name | Same as | Meaning |
|---|---|---|
| Q1 (first quartile) | 25th percentile | The bottom quarter ends here |
| Q2 (second quartile) | 50th percentile, the median | The middle value |
| Q3 (third quartile) | 75th percentile | The top quarter starts here |
Percentiles are useful because, like the median, one extreme value doesn't drag them around the way it drags an average. The article on average vs median explains why that matters.
All the examples use these ten test scores in B2:B11:
| A | B | |
|---|---|---|
| 1 | Candidate | Score |
| 2 | Ana | 73 |
| 3 | Ben | 88 |
| 4 | Cara | 52 |
| 5 | Dev | 95 |
| 6 | Eva | 64 |
| 7 | Finn | 78 |
| 8 | Gia | 61 |
| 9 | Hugo | 82 |
| 10 | Ivy | 70 |
| 11 | Jon | 75 |
Sorted from low to high, they are 52, 61, 64, 70, 73, 75, 78, 82, 88, 95. You don't have to sort the data yourself: the functions do it internally.
How to use PERCENTILE in Excel#
PERCENTILE.INC takes the data range and the percentile you want, written as a decimal from 0 to 1:
=PERCENTILE.INC(array, k)To find the 90th percentile of the scores:
=PERCENTILE.INC(B2:B11,0.9)The result is 88.7. You could also type 90% instead of 0.9, because Excel stores 90% as 0.9. Typing 90 gives #NUM!.
A few more values from the same list:
| Formula | Result | Note |
|---|---|---|
=PERCENTILE.INC(B2:B11,0) | 52 | Same as MIN |
=PERCENTILE.INC(B2:B11,0.5) | 74 | Same as MEDIAN |
=PERCENTILE.INC(B2:B11,0.9) | 88.7 | 90th percentile |
=PERCENTILE.INC(B2:B11,1) | 95 | Same as MAX |
To flag the top 10% of candidates, put this in C2 and fill down (Windows: Ctrl+D; Mac: ⌘D):
=B2>=PERCENTILE.INC($B$2:$B$11,0.9)Only Dev, with 95, shows TRUE. The $ signs keep the range fixed as the formula moves down.
How Excel calculates a percentile#
Excel finds a position in the sorted list, then reads the value there. For PERCENTILE.INC the position is:
k × (n − 1) + 1Here n is how many values you have. For the 90th percentile of 10 scores, that is 0.9 × 9 + 1 = 9.1. The 9th value is 88 and the 10th is 95, so Excel goes 0.1 of the way from 88 towards 95: 88 + 0.1 × 7 = 88.7.
This step is called interpolation, and it is why a percentile is often a number that isn't in your list. Nobody scored 88.7, but it is still the correct 90th percentile.
How to use QUARTILE in Excel#
QUARTILE.INC is a shortcut for the quarter points. Its second argument is a whole number from 0 to 4:
=QUARTILE.INC(array, quart)| Formula | Result | What it is |
|---|---|---|
=QUARTILE.INC(B2:B11,0) | 52 | Minimum |
=QUARTILE.INC(B2:B11,1) | 65.5 | Q1, the 25th percentile |
=QUARTILE.INC(B2:B11,2) | 74 | Median |
=QUARTILE.INC(B2:B11,3) | 81 | Q3, the 75th percentile |
=QUARTILE.INC(B2:B11,4) | 95 | Maximum |
Q1 sits at position 0.25 × 9 + 1 = 3.25, a quarter of the way from 64 to 70, which is 65.5.
The gap between Q3 and Q1 is the interquartile range (IQR): 81 − 65.5 = 15.5. It tells you how spread out the middle half of the group is. A common rule marks a value as an outlier if it is more than 1.5 × IQR below Q1 or above Q3. Here that means below 42.25 or above 104.25, so this list has no outliers.
INC vs EXC: which version should you use?#
Excel has two methods, and they give slightly different answers. The .INC (inclusive) versions treat the lowest and highest values as the 0th and 100th percentiles. The .EXC (exclusive) versions don't, and they use the position k × (n + 1) instead.
| Formula | .INC result | .EXC result |
|---|---|---|
| Q1 | 65.5 | 63.25 |
| Q3 | 81 | 83.5 |
| 90th percentile | 88.7 | 94.3 |
Neither is wrong; they are different conventions used in different textbooks and tools. Use .INC by default. Switch to .EXC only when a course, a manager or another system asks for that method, so your numbers match theirs.
The older PERCENTILE and QUARTILE functions still work and give the same results as the .INC versions. The .INC and .EXC names arrived in Excel 2010 and work in every current version on Windows, Mac and the web.
Percentile vs rank, LARGE and SMALL#
Percentiles answer "what value marks this point?". Other functions answer neighbouring questions:
- PERCENTRANK.INC goes the other way: given a score, what percentile is it?
=PERCENTRANK.INC(B2:B11,82)returns 0.777, so 82 is at about the 78th percentile. Excel cuts the result to three decimal places by default. - LARGE and SMALL return the value at an exact position, such as the 2nd highest score, with no interpolation.
=LARGE(B2:B11,2)returns 88. See how to find the top N values with LARGE and SMALL. - RANK.EQ returns a value's place in the list, such as 3rd. The guide to the RANK function covers ties.
- MEDIAN is the 50th percentile, with a simpler formula. See MEDIAN and MODE in Excel.
To count how many values fall into each band, rather than find cut-off points, build a frequency table.
Why does PERCENTILE return #NUM!?#
PERCENTILE and QUARTILE return #NUM! when the second argument is out of range or there is no data to work with. Check these:
- k is not between 0 and 1. Write
0.9or90%, not90. - quart is not 0 to 4. QUARTILE.EXC accepts only 1, 2 and 3.
- k is too close to 0 or 1 for .EXC. With 10 values, PERCENTILE.EXC needs k between 1/11 and 10/11, so
=PERCENTILE.EXC(B2:B11,0.05)fails. Use .INC. - The range has no numbers, for example because the scores were imported as text. Convert them to numbers first.
Blank cells and text inside the range are ignored, just like in MEDIAN.
Practise it#
PERCENTILE builds on two skills you can practise right now: finding the middle of a list and picking values by position. Practise MEDIAN and MODE in a live spreadsheet, where you type each formula and it is checked instantly. Then try the LARGE and SMALL lesson to pull the top and bottom values. Start with the exercise on this page: the median is the 50th percentile.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
The 50th percentile is the median. Click D2 and find the median score of B2:B9 with MEDIAN, then press Enter.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Score | ||||
| 2 | Median | ||||
| 3 | |||||
| 4 | |||||
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 |
Tip: MEDIAN needs just the range of scores. With 8 numbers, it averages the two middle ones.
Practise this in a lesson
Frequently asked questions
How do I calculate the 90th percentile in Excel?
Use =PERCENTILE.INC(range,0.9), for example =PERCENTILE.INC(B2:B11,0.9). You can also write 90% as the second argument. The result is the value that 90% of the data is at or below.
What is the difference between PERCENTILE.INC and PERCENTILE.EXC?
They use slightly different methods. PERCENTILE.INC includes the minimum and maximum as the 0th and 100th percentiles; PERCENTILE.EXC excludes them, so very low or very high k values return #NUM!. Results differ a little, mostly near the ends.
How do I find Q1 and Q3 in Excel?
Use =QUARTILE.INC(range,1) for Q1 and =QUARTILE.INC(range,3) for Q3. Subtract Q1 from Q3 to get the interquartile range, which shows how spread out the middle half of the data is.
Why does PERCENTILE return a number that isn't in my data?
Excel interpolates. If the percentile falls between two values, it returns a value in between, weighted by how close it is to each. That is normal and expected.
How do I find the percentile rank of a value in Excel?
Use PERCENTRANK.INC, which works the other way round: =PERCENTRANK.INC(B2:B11,82) returns the share of the data below 82, as a decimal between 0 and 1.