A box plot squeezes a whole data set into five numbers and a simple drawing. It won’t show you every value, but it shows the center, the spread and any lopsidedness at a glance, and it makes comparing two groups easy.
The five-number summary
- Minimum, the smallest value
- Q1, the first quartile: the median of the lower half
- Median, the middle value
- Q3, the third quartile: the median of the upper half
- Maximum, the largest value
Quartiles split the sorted data into four groups with about the same number of values in each.
Example Find the five-number summary of 3, 7, 8, 12, 13, 14, 18, 21, 22, 25, 50
- The data is already sorted. There are 11 values.
- The median is the 6th value: 14.
- The lower half is the five values below the median: 3, 7, 8, 12, 13. Its median is 8, so Q1 = 8.
- The upper half is 18, 21, 22, 25, 50. Its median is 22, so Q3 = 22.
- Min 3, Q1 8, median 14, Q3 22, max 50.
With an odd number of values, the median itself is left out of both halves. With an even number, the data splits cleanly in two.
Example Find Q1, the median and Q3 for 2, 4, 5, 7, 9, 10, 12, 15
- 8 values. The median is the average of the 4th and 5th: (7 + 9)/2 = 8.
- Lower half: 2, 4, 5, 7. Q1 = (4 + 5)/2 = 4.5.
- Upper half: 9, 10, 12, 15. Q3 = (10 + 12)/2 = 11.
Your calculator might disagree
There are several accepted ways to find quartiles. The method here is the one most US textbooks and TI calculators use. Spreadsheets like Excel and Google Sheets use a different one by default, so their Q1 and Q3 can come out slightly different on the same data.
Interquartile range
The interquartile range is IQR = Q3 − Q1. It’s the width of the middle half of the data.
In the first example, IQR = 22 − 8 = 14. Half of the values sit between 8 and 22.
The IQR is a measure of spread, like the range or the standard deviation. Unlike those two, one wild value can’t drag it around. Change the 50 to 5,000 and the IQR is still 14.
Checking for outliers
The usual rule: a value is an outlier if it’s more than 1.5 × IQR below Q1 or above Q3.
Example Are there outliers in the first data set?
- 1.5 × IQR = 1.5 × 14 = 21.
- Lower fence: Q1 − 21 = 8 − 21 = −13. Nothing is below that.
- Upper fence: Q3 + 21 = 22 + 21 = 43. The value 50 is above it.
- 50 is an outlier.
Drawing the box plot
- Draw a number line that covers the data.
- Draw a box from Q1 to Q3.
- Draw a line inside the box at the median.
- Draw the whiskers out to the smallest and largest values that aren’t outliers.
- Mark each outlier with its own dot.
Some textbooks draw the whiskers all the way to the min and max and skip the outlier check. If a question says “modified box plot,” it wants the outliers shown separately.
Reading a box plot
Each of the four sections (left whisker, left part of the box, right part of the box, right whisker) holds about 25% of the data. So you can answer questions like these straight from the picture:
- About 50% of values are between Q1 and Q3.
- About 75% are above Q1.
- About 25% are above Q3.
A longer section does not mean more data. It means the same quarter of the data is more spread out.
Shape
- Median in the middle of the box, whiskers about equal: roughly symmetric.
- Long right whisker, median closer to Q1: skewed right. A few large values stretch the top.
- Long left whisker, median closer to Q3: skewed left.
For skewed data, the median and IQR describe the center and spread better than the mean and standard deviation do. The mean, median and standard deviation guide goes into when to use which.
Comparing two groups
Box plots are at their best side by side.
Example Two classes took the same test.
Class A: min 52, Q1 70, median 78, Q3 85, max 96. Class B: min 61, Q1 72, median 75, Q3 79, max 88.
- Center: Class A’s median is higher, 78 against 75.
- Spread: Class A’s IQR is 15, Class B’s is 7. Class B’s scores are much more consistent.
- A fair summary: Class A did a bit better in the middle, but Class B had fewer very low scores and fewer very high ones.
When comparing, mention both the center and the spread. A test question that asks you to “compare the distributions” is looking for both.
Forgetting to sort
Quartiles only mean something for sorted data. Taking the middle of an unsorted list gives a number with no meaning.
Try a few
Find the five-number summary of 4, 9, 2, 15, 7, 11, 6.
Show answer
Sorted: 2, 4, 6, 7, 9, 11, 15. Min 2, Q1 4, median 7, Q3 11, max 15.
Find the IQR of the data in the last question.
Show answer
11 − 4 = 7.
Q1 = 20 and Q3 = 30. Is 48 an outlier?
Show answer
IQR = 10, so the upper fence is 30 + 15 = 45. Yes, 48 is an outlier.
Q1 = 20 and Q3 = 30. Is 6 an outlier?
Show answer
The lower fence is 20 − 15 = 5. 6 is above it, so no.
What percent of the data is below the median? Below Q3?
Show answer
About 50% and about 75%.
A box plot’s right whisker is much longer than the left, and the median is near Q1. Describe the shape.
Show answer
Skewed right.
Find Q1 and Q3 for 10, 12, 15, 18, 20, 24, 30, 35, 40, 41.
Show answer
Lower half 10, 12, 15, 18, 20, so Q1 = 15. Upper half 24, 30, 35, 40, 41, so Q3 = 35.