Statistics & Probability

Box Plots and Quartiles: Five-Number Summary and Outliers

By Math Solving Space · · 2 min read

On this page
  1. Finding the quartiles
  2. Worked example
  3. Outliers
  4. Why use the IQR?
  5. Common mistakes
  6. Practice questions
  7. Frequently asked questions

A box plot summarises data with five numbers: minimum, lower quartile (Q1), median, upper quartile (Q3) and maximum. The box covers the middle half of the data, and the interquartile range IQR = Q3 − Q1 measures its spread. Values more than 1.5 × IQR beyond the box are outliers.

Finding the quartiles

  1. Sort the data.
  2. Find the median (Q2).
  3. Q1 is the median of the lower half; Q3 is the median of the upper half. With an odd count, leave the overall median out of both halves.

Worked example

Data: 7,15,36,39,40,41,42,43,47,49,957, 15, 36, 39, 40, 41, 42, 43, 47, 49, 95 (11 values, already sorted).

  • Median: the 6th value, 4141.
  • Lower half: 7,15,36,39,407, 15, 36, 39, 40, so Q1=36Q_1 = 36.
  • Upper half: 42,43,47,49,9542, 43, 47, 49, 95, so Q3=47Q_3 = 47.
  • IQR=47−36=11\text{IQR} = 47 - 36 = 11.

Outliers

Fences are Q1−1.5×IQR=19.5Q_1 - 1.5 \times \text{IQR} = 19.5 and Q3+1.5×IQR=63.5Q_3 + 1.5 \times \text{IQR} = 63.5.

So 77, 1515 and 9595 are outliers. In the box plot, the whiskers stop at the most extreme values inside the fences (36 and 49), and outliers are drawn as dots.

Why use the IQR?

The range (95−7=8895 - 7 = 88) is dragged around by a single extreme value. The IQR depends only on the middle half of the data, so it is much more stable.

Common mistakes

  • Forgetting to sort first.
  • Including the median in both halves for an odd count (this calculator's method leaves it out; some textbooks differ).
  • Drawing whiskers all the way to outliers.

Practice questions

For 3,5,8,9,123, 5, 8, 9, 12:

  1. Find the median.
  2. Find Q1 and Q3.
  3. Find the IQR.

Answers: 1) 8 2) Q1 = 4, Q3 = 10.5 3) 6.5

The box plot calculator finds the five-number summary and draws the plot with outliers. For averages see the mean, median and mode calculator, and for spread read standard deviation explained.

Frequently asked questions

What does the box show?

The middle 50% of the data, from Q1 to Q3, with a line at the median.

Why do calculators give different quartiles?

There are several conventions for splitting the data or interpolating. Results usually differ only slightly.

Is an outlier a mistake?

Not necessarily. It is a value that is unusually far from the rest and worth checking.

Open the calculator →

#statistics#data#quartiles