Boxplots
Theory
A boxplot shows the five-number summary (min,
A boxplot (or box-and-whisker plot) is a visual summary of the five-number summary: minimum,
Anatomy:
- The box stretches from
to . Its width is the IQR. - The line inside the box is the median.
- The whiskers extend from the box to the minimum and maximum (or to the most extreme non-outlier values).
- The whole plot covers the range = max
min.
Quartile percentages (always true):
of values are at or below . of values lie inside the box (between and ). of values are at or below ; equivalently, are above.
Shape from a boxplot:
- Symmetric: median centred in the box, whiskers similar in length.
- Positively skewed: right whisker longer; median closer to
. - Negatively skewed: left whisker longer; median closer to
.
Outliers are plotted as separate dots beyond the whiskers, using the
The first diagram is the anatomy of a boxplot — every component labelled. The second shows how the same five-number-summary structure looks for symmetric, positively skewed, and negatively skewed distributions.
The boxplot is built from the five-number summary and the IQR.
Five-number summary
IQR and range
Outlier fences
Values outside the fences are plotted as separate dots; the whiskers extend only to the most extreme value still inside the fences.
Quartile percentages
| Region of the boxplot | % of data |
|---|---|
| Below | |
| Inside the box (between | |
| Above | |
| At or below |
Building a boxplot from raw data
- Sort the data and find the five-number summary: min,
, median, , max. - Draw a number line that covers at least min to max.
- Draw the box from
to with a vertical line at the median. - Draw whiskers from the box to the min and max — or, if there are outliers, to the most extreme non-outlier values, and plot the outliers as separate dots.
Reading off a boxplot
- Read the five values left to right: min,
, median, , max. (the width of the box); range = max min.- Use the quartile percentages:
below , inside the box, above .
Identifying outliers on a boxplot
- Compute
. - Compute the fences:
and . - Any value outside the fences is an outlier — plot it as a separate dot.
Use the formulas
| IQR | ||
| Range |
Answer: IQR
Five-number summary:
Answer: min
Compute the IQR and upper fence; compare
| IQR | ||
| Upper fence |
Since
Answer: yes —
Compare the medians (centre) and note where one group's quartiles sit relative to the other.
| Median diff |
Year 12 students typically study
Answer: Year 12 has a markedly higher centre and even Year 12's lower quartile sits above Year 11's median.
Common pitfalls
Frequently asked questions
What does each part of a boxplot show?
The box runs from Q1 to Q3, so its width equals the IQR. The line inside the box is the median. The two whiskers extend to the minimum and maximum (or to the most extreme non-outlier values). The whole plot covers the range.
What percentage of data lies inside the box?
Always 50 percent. The box covers the middle half of the data — from Q1 (the 25th percentile) to Q3 (the 75th). 25 percent of values sit below Q1 in the lower whisker, and 25 percent sit above Q3 in the upper whisker.
How can I tell the shape from a boxplot?
Symmetric: median centred in the box, whiskers similar in length. Positively skewed: right whisker longer, median closer to Q1. Negatively skewed: left whisker longer, median closer to Q3.
How are outliers shown on a boxplot?
Outliers are plotted as separate dots beyond the whiskers. The whiskers themselves extend only to the most extreme value that is NOT an outlier (i.e. the most extreme value still inside the 1.5 times IQR fences).
What is the range on a boxplot?
The range is max minus min — the total span from the left whisker tip (or the smallest outlier) to the right whisker tip (or the largest outlier). The IQR is just Q3 minus Q1 — the width of the box.
Can two different datasets have the same boxplot?
Yes. A boxplot only shows five summary numbers, not every individual value. Two datasets with very different shapes or bimodal patterns can produce identical boxplots — so boxplots can hide some detail.
Video Lessons
Practice Questions
20 questions available.
Practice Questions