Box Plot Formula

A box plot displays the five-number summary (minimum, Q1, median, Q3, maximum) of a data set using a box and whiskers.

The Formula

Lower fence=Q1−1.5⋅IQR, Upper fence=Q3+1.5⋅IQR

Ask yourself: Am I summarizing or comparing distributions using min, Q1, median, Q3, and max?

Quick example

Box from Q1 to Q3, line at median, whiskers to the smallest and largest values that are not outliers, dots for outliers.

Notation

Five-number summary: {xmin⁡,Q1,x~,Q3,xmax⁡} where x~ is the median

What this formula means

A box plot displays the five-number summary (minimum, Q1, median, Q3, maximum) of a data set using a box and whiskers.

A box plot is like recording five moments of a race: when the first runner, the quarter-way runner, the middle runner, the three-quarter runner and the last runner cross the line. Each gap holds a quarter of the field. A long gap means those runners were strung out, not that there were more of them.

Formal view

Five-number summary {x(1),Q1,Q2,Q3,x(n)}; outlier fences at Q1−1.5⋅IQR and Q3+1.5⋅IQR

Worked examples

Example 1

medium
For the data set {3,7,8,10,12,14,18,20,25,100}, construct a box plot and identify any outliers using the 1.5×IQR rule.
Show solution

Answer

100 is an outlier (exceeds upper fence of 38). Whiskers: [3, 25]. Box: [8, 20]. Median: 13.

First step

1.
Order the data (already ordered). Find quartiles: Q1=8 (median of lower half {3,7,8,10,12}... median is 8), Q2=13 (average of 12 and 14), Q3=20 (median of upper half {14,18,20,25,100}... median is 20)

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

medium
Two box plots compare exam scores for two classes. Class A: median=72, Q1=65, Q3=80. Class B: median=78, Q1=70, Q3=85. Compare center and spread for both classes.

Example 3

medium
Data {2,4,5,7,8,10,12,15}. Find the five-number summary.

Common mistakes

  • Reading box width as a count of data — each section holds 25% of values; width shows spread, not frequency.
  • Forgetting outliers extend the whiskers only to non-outlier values — points beyond the 1.5×IQR fences are plotted separately.
  • Confusing the median line with the mean — the box plot shows the median, which the mean need not match in skewed data.

Why this formula matters

Set the box plots of two classes side by side and you can compare their medians, spreads and outliers in seconds, which is hard to do from two lists of 30 scores. The 1.5×IQR fences give a fair rule for calling a value unusual instead of judging by eye. Reading a long section as 'more students' is the classic misreading.

Frequently asked questions

What is the Box Plot formula?

A box plot displays the five-number summary (minimum, Q1, median, Q3, maximum) of a data set using a box and whiskers.

How do you use the Box Plot formula?

Use a box plot when you need to compare two or more groups' medians and spreads, or check for outliers with the 1.5×IQR fences: two classes' scores, prices at two shops, reaction times before and after practice. It suits large data sets, where a dot for every value would be cluttered. If the question is about detailed shape, such as two peaks or gaps, use a histogram. If you need the mean, compute it from the data, since a box plot does not show it.

What do the symbols mean in the Box Plot formula?

Five-number summary: {xmin⁡,Q1,x~,Q3,xmax⁡} where x~ is the median

Why is the Box Plot formula important in Math?

Set the box plots of two classes side by side and you can compare their medians, spreads and outliers in seconds, which is hard to do from two lists of 30 scores. The 1.5×IQR fences give a fair rule for calling a value unusual instead of judging by eye. Reading a long section as 'more students' is the classic misreading.

What do students get wrong about Box Plot?

The procedure for box plot is the easy part; the trap is reading box width as a count of data. Asking "Am I summarizing or comparing distributions using min, Q1, median, Q3, and max?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Box Plot formula?

Before studying the Box Plot formula, you should understand: median, quartiles.