Skip to content
LoveToCalc

Box plot

Five numbers on one axis, and a box around the middle half.

In Swedish: Lådagram

A box plot of the values 2, 4, 4, 4, 5, 5, 7, 9 on one axis. Whiskers reach out to the smallest value 2 and the largest 9, the box spans the quartiles 4 and 6, and the line inside it marks the median 4.5.

What it shows

A box plot (box-and-whisker plot) draws the five-number summary of a list on one axis:

  1. the smallest value,
  2. the lower quartile Q₁,
  3. the median,
  4. the upper quartile Q₃,
  5. the largest value.

The box runs from Q₁ to Q₃ with a line across it at the median. The whiskers run out from the box to the smallest and the largest value. There is no formula; the numbers come from the quartiles page.

Swedish books call it a lådagram and name the five numbers minsta värde, nedre kvartil, median, övre kvartil and största värde.

Worked example

Eight values. 2, 4, 4, 4, 5, 5, 7, 9. The five numbers are 2, 4, 4.5, 6, 9. Draw an axis from 0 to 10, a box from 4 to 6, a line at 4.5, a whisker left to 2 and a whisker right to 9.

How to read it — length is not count

Each of the four pieces — left whisker, left half of the box, right half, right whisker — holds about a quarter of the values, whatever its length. In the example the right whisker, 6 to 9, is the longest piece, but it does not hold more values than the others. It holds a quarter that is spread out.

So a long piece means spread out, and a short piece means packed close together. The width of the box is the interquartile range, here 2.

A second example: comparing two groups

Box plots are often drawn side by side to compare groups. Two classes’ test results:

Min Q₁ Median Q₃ Max
Class A 12 18 22 25 30
Class B 15 20 21 23 40

Class B has the larger range, 25 against 18, because of one result of 40. But its box is narrower: an IQR of 3 against 7. The middle half of class B is much more even than class A’s, and the range alone would have said the opposite.

Common mistakes

Common questions

What are the dots beyond the whiskers in some box plots? Outliers, by the 1.5 × IQR rule: values more than 1.5 · IQR outside the box are drawn as points, and the whisker stops at the last value inside. School courses often draw the whiskers all the way to the extremes instead. Both are in use; say which you draw.

Can a box plot show the mean? Some software adds it as a cross or a dot. It is not one of the five numbers, and a box plot without it is complete.

Last reviewed October 6, 2026 ·How pages are reviewed

Read more in articles

Statistics and probabilityAll formulas