On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Statistics & Probability · Grade 6-8

Quartiles

Quartiles divide an ordered data set into four equal parts: Q1 (25th percentile), Q2 (the median, 50th), and Q3 (75th percentile).

Q1=median of lower half, Q3=median of upper half

Quick Answer

Quartiles divide an ordered data set into four equal parts: Q1 (25th percentile), Q2 (the median, 50th), and Q3 (75th percentile). Use them to say where a value ranks and how spread out the middle of the data is: a score above Q3 is in the top quarter, and the middle half of the data lies between Q1 and Q3. To find them, sort the data, split it at the median, and take the median of each half. They are the cut points of every box plot.

Why This Matters

Quartiles tell you where you stand, not just the average: a child at the 75th percentile for height is taller than three quarters of children the same age. Because they depend on rank, one extreme value barely moves them, which is why Q1 and Q3 are used to build the outlier-resistant IQR and the box plot.

Intuitive Explanation

Line up 12 students by how many push-ups they can do: 3, 5, 8, 10, 12, 14, 15, 18, 20, 25, 30, 41. The median splits the line into two groups of 6 and sits between 14 and 15, at 14.5. Split each half the same way. The lower half, 3 to 14, has middle 8+102=9, so Q1=9. The upper half, 15 to 41, has middle 20+252=22.5, so Q3=22.5. Three cuts make four groups of 3 students each.

The groups have equal counts but not equal widths. The bottom quarter runs from 3 to 9, a span of 6 push-ups; the top quarter runs from 22.5 to 41, a span of 18.5. A long top quarter means the strongest students are spread out. If the student with 41 push-ups had done 60, Q3 would not change at all, because it depends only on position in the line.

Splitting the range into four equal widths looks similar but is a different thing. Cutting 3 to 41 into equal pieces puts the cuts at 12.5, 22 and 31.5, and those pieces hold 5, 4, 2 and 1 students: unequal counts. Quartiles always split by count, so each part holds a quarter of the data however unevenly the values are spaced. When the number of values is odd, leave the median out of both halves before finding Q1 and Q3.

Think of it like this. Quartiles are the three marks that cut a line of people into four teams of equal size. If the people stand unevenly spaced, the teams cover different stretches of ground. Moving the last person farther away lengthens the last team's stretch but does not move any of the cuts.

Core idea. Quartiles are the three cut points (Q1, Q2, Q3) that split ordered data into four equal-count quarters.


When to Use

Use quartiles when a question asks about the 25th or 75th percentile, the top or bottom quarter, where a value ranks within a group, or what you need to draw a box plot. They suit skewed data and data with outliers, because they depend on order rather than size. For a single center, use the median (Q2); for one spread number, the IQR, Q3−Q1; for a typical distance from the mean, the standard deviation.

Tip. Ask: Am I splitting ordered data into four groups that each contain the same fraction of the values?

How to Recognize It

Before finding quartiles, check that the question wants cut points that split the data by count, and work out which of the three cuts it needs.

  1. Is the group in the question exactly a quarter or three quarters of the data, like the slowest 25% of times?

    If yes, its boundary is a quartile: Q1 marks off the bottom quarter and Q3 the top quarter. If it is half the data, you want the median; for other shares, like the top 10%, use a percentile.

  2. Does the question want how spread out the middle half is, as one distance?

    If yes, find both quartiles and subtract to get the interquartile range, Q3−Q1. If it wants a boundary value itself, such as the score that starts the top quarter, the answer is a quartile, not a difference.

  3. Does the data contain an outlier or a long tail?

    If yes, quartiles still describe the bulk of the data well, because moving the most extreme value does not move any of the cuts. The mean and standard deviation, which use every value's size, would shift.

Quartiles compared with Median (Q2), Interquartile range (IQR), and Percentile (general)

Quartiles, the median, the interquartile range and percentiles all come from sorting the data and counting along it, and the median is itself the second quartile. Ask whether you need one cut point, all three quarter cuts, the distance between two of them, or a cut at some other percent.

Quartiles

Meaning
Use this when you want position by rank or an outlier-resistant description of spread for ordered data.
Key test
Am I splitting ordered data into four groups that each contain the same fraction of the values?
Formula
Q1=median of lower half, Q3=median of upper half
Example
For the ordered data 2,4,6,8,10,12,14,16, find Q1 and Q3.

Median (Q2)

Meaning
The single middle cut; quartiles add Q1 and Q3 around it.
Key test
Use when you need only the center, not the spread of the halves.
Formula
n+12 position
Example
Middle of an ordered list

Interquartile range (IQR)

Meaning
The single number Q3−Q1, built from the quartiles.
Key test
Use when you want one spread number, not the cut points themselves.
Formula
Q3−Q1
Example
Spread of the middle 50%

Percentile (general)

Meaning
Any k-th percentile, not just the 25/50/75 cuts.
Key test
Use when you need a position other than the quarter marks.
Example
The 90th percentile of incomes

Formula & Notation

Q1=median of lower half, Q3=median of upper half
Qp is the value where P(X≤Qp)=p; specifically Q1=Q0.25, Q2=Q0.50, Q3=Q0.75

How to read it: Q1 (25th percentile), Q2 (median, 50th percentile), Q3 (75th percentile)

Worked Examples

Example 1 — Find Q1 and Q3

Easy

For the ordered data 2,4,6,8,10,12,14,16, find Q1 and Q3.
Show the steps and the answer
  1. Find the median: n=8, so it lies halfway between the 4th and 5th values, 8+102=9.

    The median splits the sorted list into a lower half and an upper half of 4 values each.

  2. Lower half 2,4,6,8: its median is 4+62=5, so Q1=5.

    Q1 is the middle of the lower half, with a quarter of the data below it.

  3. Upper half 10,12,14,16: its median is 12+142=13, so Q3=13.

    Q3 is the middle of the upper half, with a quarter of the data above it.

  4. Check the counts: 2 and 4 are below 5; 6 and 8 lie between 5 and 9; 10 and 12 between 9 and 13; 14 and 16 above 13.

    Each of the four groups holds 2 values, a quarter of the 8.

Answer: Q1 =5, Q3 =13

Takeaway: Split at the median, then take the median of each half; each quarter should hold the same number of values.

Example 2 — Spread number vs cut points

Standard

Someone wants a single number for 'how spread out is the middle half' of that data.
Show the steps and the answer
  1. Recognize the request: one number for spread, not three cut points.

    Quartiles are positions; the width between two of them is a spread.

  2. Locate the middle half: between Q1=5 and Q3=13.

    A quarter of the data is below Q1 and a quarter above Q3, which leaves half in between.

  3. Subtract: IQR=13−5=8.

    The width of the interval that holds the middle half is the interquartile range.

  4. Compare with the range: 16−2=14.

    The IQR is smaller because it leaves out the outer quarter at each end.

Answer: IQR =13−5=8

Takeaway: Quartiles are cut points; their difference, Q3−Q1, is the spread of the middle half.

Example 3 — Find the mistake: quartiles from an unsorted list

Application

Eight students spent 30, 10, 45, 20, 60, 15, 25 and 40 minutes on homework. Jo splits the list as written into 30, 10, 45, 20 and 60, 15, 25, 40, and writes: "Q1=10+452=27.5 and Q3=15+252=20." Find the mistake and correct it.
Show the steps and the answer
  1. Spot the warning sign: Jo's Q3=20 is smaller than Q1=27.5.

    Q3 marks the start of the top quarter, so it can never be below Q1.

  2. Sort first: 10,15,20,25,30,40,45,60.

    Quartiles depend on rank, so the halves must come from the sorted list.

  3. Lower half 10,15,20,25: Q1=15+202=17.5.

    Its two middle values are 15 and 20.

  4. Upper half 30,40,45,60: Q3=40+452=42.5.

    Its two middle values are 40 and 45, and 42.5>17.5 as it should be.

Answer: Q1=17.5 minutes and Q3=42.5 minutes

Takeaway: Sort before splitting; if Q3 comes out below Q1, the data was not in order.

Where You'll See It

  • Reading a test score report

    Score reports often say a student is in the top quarter, meaning above Q3. If a test's quartiles are 62, 71 and 80, a score of 84 is in the top 25%, while a 65 falls in the second quarter, between Q1 and the median.

  • Salary bands in job listings

    Salary surveys often publish the 25th and 75th percentiles for a job. If they are $48k and $61k, the middle half of people in that job earn within a $13k band, a fairer picture than a range stretched by a few very high earners.

Common Mistakes

  1. The slip: Splitting by equal value width instead of equal count

    Instead: quartiles divide the data into equal numbers of points, not equal ranges.

  2. The slip: Forgetting to order the data first

    Instead: quartiles, like the median, require a sorted list.

  3. The slip: Confusing Q2 with the mean

    Instead: Q2 is the median (the 50th-percentile rank), which may differ from the average.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find Q1, the median and Q3 for 1,3,4,6,7,9,10,12.

    Hint: Split the 8 values into a lower four and an upper four.

  2. Find Q1 and Q3 for 15,22,9,30,18,11,25.

    Hint: Sort first. With an odd count, leave the median out of both halves.

  3. Find all three quartiles of these 12 quiz scores: 4,6,6,7,8,8,9,10,10,10,12,13.

    Hint: The median sits between the 6th and 7th values; each half then has 6 values.

  4. A class of 28 students took a test. About how many scored at or below Q1, and about how many scored between Q1 and Q3?

    Hint: Each quartile cuts off another quarter of the students.

  5. A score report says you are at the 90th percentile. Is that one of the quartiles?

    Hint: Which percentiles do Q1, Q2 and Q3 stand for?

  6. For 40,55,60,62,70,75,80,95, Ali splits the span from 40 to 95 into four equal widths and says Q1=53.75. Correct him.

    Hint: Quartiles split the number of values, not the width of the number line.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why are there only three quartiles if they make four parts?

Because it takes three cuts to make four pieces, just as three cuts across a sandwich make four strips. The quartiles are the cuts: Q1Q_1, Q2Q_2 and Q3Q_3. The minimum and maximum are the ends of the data, not cuts, so they are not quartiles, even though they appear beside the quartiles in the five-number summary. In everyday talk, people also use quartile to mean one of the four groups.

Why do salary reports give a range from the 25th to the 75th percentile?

Because that range, from Q1Q_1 to Q3Q_3, shows what the middle half of workers earn, which says more than a single average. If nurses in a city earn from $62,000 at Q1Q_1 to $85,000 at Q3Q_3, a job offer of $60,000 sits in the bottom quarter. Government wage surveys, such as those of the US Bureau of Labor Statistics, publish these percentiles for hundreds of jobs.

Do quartiles always split the data into four groups of exactly the same size?

Only when the count works out. With 10 values, a quarter would be 2.5 values, which is impossible, so the groups end up with 2 or 3 values each, depending on where the cuts fall. Ties also blur the split: if many students scored 70, Q1Q_1 and the median could both be 70. Equal quarters are the goal; with real data you get as close as the values allow.

Learning Path

← Before

Median
Quartiles

You are here

You need the Median, since quartiles are the medians of each half of the sorted data. Quartiles add two more cut points, so the data splits into four equal-count groups. Next, the Interquartile Range turns Q1 and Q3 into one spread number, and Percentages extend the idea to any percentile, such as the 90th.

See Also