StatFAS Blog · Statistics basics · 7 min read

Box Plot Explained: How to Read a Box Plot Graph, Chart and Diagram in Statistics (with Examples)

A box plot (also called a box-and-whisker plot) is a compact chart that shows how a set of numbers is spread out. In one small picture you see the middle value, the range where the central half of the data sits, and any unusual values. This guide explains box plots in plain language, shows you how to read the diagram, and walks through a worked example.

What is a box plot in statistics?

A box plot summarises a numeric variable using five numbers, known as the five-number summary: the minimum, the first quartile (Q1), the median, the third quartile (Q3) and the maximum. Instead of drawing every value, the box plot graph draws a box from Q1 to Q3 with a line at the median, and “whiskers” that reach out to the lowest and highest typical values.

Because it needs only five numbers, a box plot is one of the quickest ways to compare several groups side by side, which is why you meet it in school statistics (GCSE and A level maths), in research papers and in data science.

Parts of a box plot diagram

0102030Q3Q1 OutlierUpper whiskerMedianMinimumIQR = Q3 − Q1

How to read a box plot

Ask four questions of any box plot chart:

  1. Where is the centre? Look at the median line.
  2. How spread out is it? A long box or long whiskers mean high variability; a short box means the values are tightly clustered.
  3. Is it skewed? If the median sits near the bottom of the box and the upper whisker is longer, the data is right-skewed. The reverse means left-skewed. A median near the middle suggests a roughly symmetric distribution.
  4. Are there outliers? Dots beyond the whiskers deserve a second look: they may be errors or genuinely unusual cases.

Box plot example

Nine students’ test scores: 4, 6, 7, 8, 9, 11, 12, 14, 28.

StatisticValue
Minimum4
Q16.5
Median9
Q313
IQR6.5
Upper fence (Q3 + 1.5 × IQR)22.75

The value 28 is above the fence, so it is plotted as an outlier and the upper whisker stops at 14. The median (9) is closer to Q1 than Q3 and the upper tail is long, so the scores are right-skewed. The diagram above is drawn from exactly these numbers.

Note: software and textbooks use slightly different quartile rules. R’s boxplot and Python’s NumPy would give Q1 = 7 and Q3 = 12 for this data; the (n + 1) method taught at GCSE gives 6.5 and 13. Always say which method you used.

When should you use a box plot?

A box plot hides the shape inside the box, so a histogram or violin plot is better when you need to see whether the data has two peaks. Showing the individual points on top of the box gives you the best of both.

Box plots in statistics: comparing groups

When box plots sit side by side, compare medians first, then the size of the boxes. If the boxes barely overlap, the groups probably differ. To confirm, run a test such as ANOVA with a post hoc comparison and label the groups with significance letters (a, b, c): groups that share a letter are not significantly different.

Box plots in R and Python

# R
x <- c(4, 6, 7, 8, 9, 11, 12, 14, 28)
boxplot(x, horizontal = TRUE, main = "Test scores")

# Python
import matplotlib.pyplot as plt
plt.boxplot([4, 6, 7, 8, 9, 11, 12, 14, 28], vert=False)
plt.show()

Grouped box plots, significance letters and APA 7 results are built into our box plot calculator.

Common mistakes

Frequently asked questions

What does a box plot show?

The median, quartiles, spread, skew and outliers of a data set.

What is the difference between a box plot and a box-and-whisker diagram?

Nothing. They are two names for the same chart.

Do box plots show the mean?

Not by default. Many tools add a dot or cross for the mean.

Are box plots on the GCSE and A level maths syllabuses?

Yes. You are expected to draw them from a five-number summary, read them, and compare two distributions using the median and IQR.

Make your own box plot

Paste your data into our free box plot maker with significance letters and APA 7 results and download a print-ready figure.

Open the box plot calculator