- The five-number summary is the minimum, lower quartile (Q1), median, upper quartile (Q3) and maximum. A box plot draws it: a box from Q1 to Q3, a line at the median and whiskers out to the extremes.
- The 1.5 × IQR rule flags outliers: any value below \( Q_1 – 1.5\,\mathrm{IQR} \) or above \( Q_3 + 1.5\,\mathrm{IQR} \) is plotted as a separate point.
- In our case, bus route A has median 31 minutes and IQR 8; route B has median 36 minutes and IQR 19. Route A is faster on a typical day and much more reliable.
- Route A’s 58-minute day (a breakdown) is an outlier; it barely moves the median but drags the mean up from 30.6 to 32.4 minutes.
- Exam point: when comparing box plots, compare medians and IQRs in context, and remember a box plot cannot show how many values there are or whether the data have two peaks.
The case: which bus route should a commuter trust?
Amira travels to work by bus and can take one of two routes. Route A goes through the city centre; route B takes the ring road. She wants to know which is quicker on a typical day and, just as important, which is more predictable, because arriving late twice a week is worse than leaving five minutes earlier.
For three weeks she times her journey door to door. She uses route A on 15 weekdays and route B on 15 other weekdays. Here are her journey times in minutes, sorted:
Route A: 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 39, 58.
Route B: 18, 20, 23, 26, 29, 31, 34, 36, 38, 40, 42, 45, 47, 50, 53.
On the day of the 58-minute journey, a bus broke down and she had to wait for the next one. The means are 32.4 minutes for A and about 35.5 minutes for B, which suggests A is a little faster. But a mean says nothing about predictability. To see the whole picture, she summarises each route with five numbers and draws two box plots on the same scale. (The figures are illustrative.)
The concept: the five-number summary and the box plot
The median splits a data set into two halves. The quartiles split each half again, so that the data fall into four groups of roughly equal size. The lower quartile \( Q_1 \) has about a quarter of the data below it, and the upper quartile \( Q_3 \) has about three quarters below it. Together with the smallest and largest values, these give five numbers that describe the centre, the spread of the middle half and the extremes.
There are several conventions for finding quartiles. The one used in most school courses, and in this post, is: put the data in order, find the median, then find the median of the lower half and the median of the upper half. If there is an odd number of values, the median itself is left out of both halves. Calculators and software sometimes use slightly different rules, so their quartiles can differ a little, especially with small data sets[1].
A box plot (also called a box-and-whisker plot) is a picture of the five-number summary. Draw a scale. Draw a box from \( Q_1 \) to \( Q_3 \) and a line inside it at the median. Then draw whiskers from the box out to the smallest and largest values that are not outliers, and plot any outliers as separate points. To decide what counts as an outlier, we use fences:
Here \( Q_1 \) and \( Q_3 \) are the lower and upper quartiles, and IQR is their difference. Any value below the lower fence or above the upper fence is classed as an outlier by this rule. The factor 1.5 is a convention, not a law of nature; it was popularised by John Tukey in his work on exploratory data analysis[2]. The fences are not drawn on the plot; they only decide where each whisker stops. Some exam boards also accept a simpler box plot in which the whiskers run to the minimum and maximum; read the question to see which is wanted.
Why this method fits the case
Amira’s question has two parts: which route is faster typically, and which is more reliable. The median answers the first, and it is not upset by one breakdown. The IQR answers the second: a narrow box means most journeys take about the same time. Putting two box plots on one scale lets her compare both at a glance, and the outlier rule separates “unusual day” from “normal variation”.
Box plots are especially good for comparisons. Five, ten or twenty groups can sit side by side on the same axis, which would be cluttered with histograms. They also work for moderate sample sizes where a histogram’s shape would depend heavily on the choice of classes.
When is a box plot not the right tool? A box plot hides a lot. It does not show how many observations there are: a box built from 15 values looks the same as one from 15,000. It cannot show two peaks: a bimodal distribution, for example journey times that are either 20 or 50 minutes depending on traffic, can produce a box plot that looks perfectly ordinary. And it hides gaps and clusters. For a single data set where shape matters, a histogram or dotplot is more informative. A good habit is to look at a histogram or dotplot first, then use box plots for the comparison.
Setting it up
Each route has 15 values, so the median is the 8th value. The lower half is the 7 values below it, so \( Q_1 \) is the 4th value; the upper half is the 7 values above it, so \( Q_3 \) is the 12th value.
| Statistic | Route A | Route B |
|---|---|---|
| Minimum | 22 | 18 |
| \( Q_1 \) (4th value) | 27 | 26 |
| Median (8th value) | 31 | 36 |
| \( Q_3 \) (12th value) | 35 | 45 |
| Maximum | 58 | 53 |
| IQR | 8 | 19 |
| Range | 36 | 35 |
| Mean | 32.4 | 35.5 (to 1 d.p.) |
Notice that the ranges are almost the same (36 and 35 minutes). If Amira looked only at the range, the routes would seem equally variable. The IQR tells a very different story, because the range for route A is driven by one breakdown.
Solving it
Example 1 (five-number summary and outliers for route A). Find the five-number summary for route A, apply the 1.5 × IQR rule, and state where the whiskers end.
Route A: median 31 minutes, IQR 8 minutes, with one outlier at 58 minutes.
Example 2 (route B and the comparison). Find the five-number summary for route B, check for outliers, and compare the two routes in context.
Route A is faster on a typical day and far more predictable; its only bad day was an unusual breakdown.
Example 3 (effect of the outlier on mean and median). Remove the 58-minute day from route A. How do the mean and the median change?
One breakdown moved the mean by 1.8 minutes but the median by only 0.5 minutes, which is why box plots are built on the median and quartiles.
What the answer tells us
Figure 1 puts both box plots on one scale. The route A box is short and sits to the left; the route B box is long and sits to the right. That one picture answers both of Amira’s questions: route A is usually quicker and much more predictable.
A practical reading. Suppose Amira needs to arrive within 35 minutes of leaving home. On route A, 12 of 15 journeys (80%) took 35 minutes or less. On route B, only 7 of 15 (about 47%) did. If she allows 40 minutes, route A worked on 14 of 15 days and route B on 10 of 15. For someone who cares about being on time, the narrower box is worth more than the occasional very fast trip on route B.
Reasonableness check. The shape hints from the box plots match the data. In route A the median (31) sits almost in the middle of the box (27 to 35), and the whiskers are similar in length apart from the outlier, so the bulk of the data is fairly symmetric. In route B the median (36) is a little nearer \( Q_3 \) than \( Q_1 \), and the whiskers are about equal, so it is roughly symmetric too, just wider. A box plot can suggest skew: a long right whisker and a median close to \( Q_1 \) point to right skew.
Sensitivity. Should the outlier be removed? Not automatically. The breakdown really happened, and if breakdowns occur on route A about once every three weeks, that is information Amira needs. Outliers should be investigated, not deleted: keep them if they are genuine, and correct them only if they are recording errors. With only 15 journeys per route, the quartiles are also rough; another three weeks of data could shift them by a minute or two. The conclusion that route A is more consistent, however, rests on a large difference in IQR (8 versus 19 minutes), so it is unlikely to reverse.
Our Statistics Made Simple textbook covers quartiles, box plots, outliers and choosing the right summary statistics step by step, and the Statistics Made Simple Practice Questions book gives you hundreds of box plot questions with fully worked answers.
Practice questions
Try each question before opening the worked answer. The last one is written in exam style with a mark scheme.
EasyQ1. Find the five-number summary and IQR of: 12, 15, 17, 18, 20, 21, 24, 26, 40. Show worked answer
Lower half 12, 15, 17, 18: \( Q_1 = (15+17)/2 = 16 \). Upper half 21, 24, 26, 40: \( Q_3 = (24+26)/2 = 25 \).
Five-number summary: 12, 16, 20, 25, 40. IQR \( = 25 – 16 = 9 \).
EasyQ2. For the data in Q1, is 40 an outlier by the 1.5 × IQR rule? Where would the right whisker end? Show worked answer
40 > 38.5, so 40 is an outlier.
The right whisker ends at 26, the largest value that is not an outlier.
MediumQ3. Ten phone batteries last (hours): 3.1, 3.4, 3.8, 4.0, 4.2, 4.5, 4.7, 5.0, 5.6, 7.9. Find the five-number summary and identify any outliers. Show worked answer
Lower half 3.1, 3.4, 3.8, 4.0, 4.2: \( Q_1 = 3.8 \). Upper half 4.5, 4.7, 5.0, 5.6, 7.9: \( Q_3 = 5.0 \).
IQR \( = 1.2 \). Fences: \( 3.8 – 1.8 = 2.0 \) and \( 5.0 + 1.8 = 6.8 \).
7.9 > 6.8, so 7.9 hours is an outlier. Five-number summary: 3.1, 3.8, 4.35, 5.0, 7.9.
MediumQ4. A box plot of exam marks has \( Q_1 = 48 \) and \( Q_3 = 62 \). The lowest mark is 25 and the highest is 81. Are either of these outliers? Show worked answer
Lower fence \( = 48 – 21 = 27 \); upper fence \( = 62 + 21 = 83 \).
25 < 27, so 25 is an outlier. 81 < 83, so 81 is not an outlier.
ExamQ5. Two classes sit the same test. Class X: min 28, \( Q_1 \) 52, median 60, \( Q_3 \) 66, max 78. Class Y: min 41, \( Q_1 \) 49, median 63, \( Q_3 \) 75, max 88. (a) Find the IQR of each class. (b) Show that class X has an outlier at its minimum. (c) Compare the two distributions in context. [6 marks] Show worked answer
(b) X lower fence \( = 52 – 1.5 \times 14 = 31 \). [1] 28 < 31, so the minimum mark of 28 is an outlier. [1]
(c) The median mark is slightly higher for class Y (63) than for class X (60). [1] Class Y’s marks are much more spread out: IQR 26 compared with 14. [1] So class X performed more consistently, while class Y had a wider spread of results, including the highest mark (88 v 78); class X’s lowest mark of 28 is an unusual result. [1]
Frequently asked questions
Why does my calculator give different quartiles?
There are several accepted methods for quartiles. Some include the median in both halves, some interpolate between values, and some use positions such as \( (n+1)/4 \). With large data sets the differences are tiny; with small ones they can be noticeable. In an exam, use the method your course teaches, and show your working so the examiner can follow it.
Is the 1.5 × IQR rule the only way to find outliers?
No. It is a convenient rule of thumb that works well for box plots. Another common rule flags values more than 2 or 3 standard deviations from the mean, which is better suited to roughly normal data. Neither rule proves a value is wrong; they only tell you which values deserve a closer look.
Can a box plot show skewness?
It can suggest it. If the median is close to \( Q_1 \) and the right whisker is long, the data are probably skewed to the right. If the median is close to \( Q_3 \) and the left whisker is long, they are probably skewed to the left. But a box plot cannot show whether a distribution has one peak or two, so check with a histogram if shape matters.
Should I report the mean or the median with a box plot?
A box plot is built on the median and quartiles, so report the median and IQR alongside it. They are resistant to outliers, which is exactly why the box plot uses them. Some software marks the mean with a cross inside the box as an extra detail; that is optional.
References
- Illowsky, B. and Dean, S. (2023) Introductory Statistics 2e. Houston, TX: OpenStax. https://openstax.org/details/books/introductory-statistics-2e
- Tukey, J. W. (1977) Exploratory Data Analysis. Reading, MA: Addison-Wesley.
- NIST/SEMATECH. e-Handbook of Statistical Methods, Exploratory Data Analysis: box plot. https://www.itl.nist.gov/div898/handbook/
- College Board. AP Statistics Course and Exam Description. New York: College Board.
- Starnes, D. S. and Tabor, J. The Practice of Statistics. New York: W. H. Freeman.

