On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Statistics & Probability · Grade 6-8

Box Plot

A box plot displays the five-number summary (min, Q1, median, Q3, max) as a box spanning the middle 50% with whiskers to the extremes.

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

Quick Answer

A box plot displays the five-number summary (min, Q1, median, Q3, max) as a box spanning the middle 50% with whiskers to the extremes. Use it to compare groups quickly, such as test scores in two classes or delivery times from two shops: you can see at a glance which has the higher median and which is more spread out. Each of the four sections holds about a quarter of the data. When outliers are marked as separate dots, the whiskers stop at the most extreme values that are not outliers.

Why This 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.

Intuitive Explanation

Take 11 quiz scores in order: 3, 6, 7, 7, 8, 8, 8, 9, 9, 10, 10. The median, the 6th value, is 8. Leave it out and split the rest: the lower half 3, 6, 7, 7, 8 has median Q1=7, and the upper half 8, 9, 9, 10, 10 has median Q3=9. With the minimum 3 and maximum 10, the five-number summary is 3, 7, 8, 9, 10. Draw a box from 7 to 9 with a line at 8, and whiskers reaching out toward the lowest and highest scores.

Each piece of the plot holds about a quarter of the scores: the left whisker, the left part of the box, the right part and the right whisker. Their lengths show spread, not how many values they hold. Outliers are checked with fences: IQR=9−7=2, so the lower fence is 7−1.5(2)=4. The score 3 is below it, so it is drawn as a separate dot, and the left whisker stops at 6, the lowest score that is not an outlier.

A box plot hides detail. A data set with one hump and another with two separate humps can share the same five numbers and draw identical box plots. If the question is about shape, such as whether there are two peaks, use a histogram or a dot plot. Also, the line in the box is the median, not the mean; in skewed data the two can be far apart.

Think of it like this. 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.

Core idea. A box plot pictures min, Q1, median, Q3, and max as a box with whiskers, showing center and spread at a glance.


When to Use

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.

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

How to Recognize It

Before drawing a box plot, decide whether five summary numbers tell enough about the data, or whether the question needs its shape or every single value.

  1. Will the answer compare groups, like the jump distances of two teams, by their middles and spreads?

    If yes, box plots drawn on one shared scale make the comparison quick: compare the median lines, then the lengths of the boxes. For a single group's detailed shape, a histogram shows more.

  2. Could the data have two separate clusters, like the times of walkers and runners mixed together?

    If yes, a box plot hides them: it would show one wide box with nothing to mark the gap. A histogram or dot plot shows both clusters clearly.

  3. Is the question asking for the five numbers themselves, such as the value of Q3?

    If yes, the answer is the five-number summary, and the box plot is only its picture. Read the numbers off the plot's scale, or compute them from the data when the scale is too rough.

  4. Is the data set so small, around 8 values, that every one could be shown?

    If yes, a dot plot shows every value and is easier to read honestly, since a box plot of 8 values puts only about 2 values in each quarter. Box plots work best when there are too many values to show one by one.

Box Plot compared with Histogram, Five-number summary, and Dot plot

Box plots, histograms, the five-number summary and dot plots all show how one set of numbers is spread. Ask how much detail you need: every value (dot plot), the full shape (histogram), or five key numbers, drawn (box plot) or listed (five-number summary).

Box Plot

Meaning
Use this when you want to compare center and spread across groups or detect outliers using the five-number summary.
Key test
Am I summarizing or comparing distributions using min, Q1, median, Q3, and max?
Formula
Lower fence=Q1−1.5⋅IQR, Upper fence=Q3+1.5⋅IQR
Example
Data has Q1=20, Q3=40, so IQR=20. Is a value of 75 an outlier?

Histogram

Meaning
Shows the full detailed shape via binned counts, not just five numbers.
Key test
Use when you need to see modality and exact shape, not a compact summary.
Example
Whether scores are bimodal

Five-number summary

Meaning
The five numbers themselves; the box plot is their picture.
Key test
Use when you want the numbers listed, not drawn.
Formula
{xmin⁡,Q1,x~,Q3,xmax⁡}
Example
Listing 55,70,78,85,95

Dot plot

Meaning
Shows every individual value, ideal for small data sets.
Key test
Use when each data point should be visible.
Example
Ten reaction times

Formula & Notation

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

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

Worked Examples

Example 1 — Spot the outlier

Easy

Data has Q1=20, Q3=40, so IQR=20. Is a value of 75 an outlier?
Show the steps and the answer
  1. Compute the step: 1.5×IQR=1.5×20=30.

    The fences sit 1.5 box-lengths beyond each end of the box.

  2. Find the upper fence: Q3+30=40+30=70.

    Values above the upper fence are flagged as unusually high.

  3. Compare: 75>70.

    75 lies beyond the fence, so it is plotted as a separate dot rather than inside the whisker.

  4. Find the lower fence for completeness: Q1−30=20−30=−10.

    Any value from −10 to 70 would count as an ordinary value in this data set.

Answer: Yes, 75 is an outlier

Takeaway: Outliers lie above Q3+1.5 IQR or below Q1−1.5 IQR; compute the fences and compare.

Example 2 — Need the shape, not a summary

Standard

You want to know if exam scores have two distinct peaks. Box plot?
Show the steps and the answer
  1. Recall what a box plot draws: only the minimum, Q1, median, Q3 and maximum.

    Peaks are about where values bunch up, and five numbers cannot show that.

  2. Compare two sets of 12 scores. A: 50, 52, 54, 56, 58, 60, 80, 82, 84, 86, 88, 90. B: 50, 53, 55, 55, 62, 70, 70, 78, 85, 85, 88, 90.

    Set A has two clumps with nothing between 60 and 80; set B has scores across the whole range.

  3. Find the five numbers: both sets give 50, 55, 70, 85, 90.

    Identical summaries draw identical box plots, so the box plot cannot tell the two shapes apart.

  4. Draw 10-point histograms instead: set A's 70-79 bin is empty between two tall groups; set B has no empty bin.

    The histogram shows set A's two peaks, which the box plot hid.

Answer: Histogram reveals bimodality; box plot would hide it

Takeaway: Two different shapes can share one box plot; to see peaks and gaps, use a histogram.

Example 3 — Find the mistake: length is not count

Application

A box plot of 40 students' homework times has Q1=20, median 25 and Q3=50 minutes. Ana writes: "The right part of the box, from 25 to 50, is five times as long as the left part, so about five times as many students spent 25-50 minutes as spent 20-25 minutes." Find the mistake and correct it.
Show the steps and the answer
  1. Recall what quartiles mean: about 25% of values lie between Q1 and the median, and 25% between the median and Q3.

    Quartiles split the data by count, so the two parts of the box hold equal numbers of students.

  2. Count: 25% of 40 is 10 students in each part of the box.

    The 20-25 minute part and the 25-50 minute part each hold about 10 students.

  3. Interpret the lengths: the right part is 25 minutes wide and the left part 5 minutes.

    The same number of students is spread over five times the range, so the upper-middle times vary much more.

Answer: Both parts hold about 10 students; the longer right part means those times are more spread out, not more common.

Takeaway: In a box plot each section holds a quarter of the data; length shows spread, never count.

Where You'll See It

  • Comparing phone battery life in reviews

    A review site shows box plots of battery life from 50 tests per phone. Phone A has the higher median but a long lower whisker, so it sometimes dies early. Phone B has a slightly lower median and a short box, so its battery life is more predictable.

  • Daily temperatures, month by month

    Climate summaries draw a box plot of daily high temperatures for each month, side by side. Summer boxes sit higher on the scale, and a month with a long box has changeable weather, which helps travelers decide what to pack.

Common Mistakes

  1. The slip: Reading box width as a count of data

    Instead: each section holds 25% of values; width shows spread, not frequency.

  2. The slip: Forgetting outliers extend the whiskers only to non-outlier values

    Instead: points beyond the 1.5×IQR fences are plotted separately.

  3. The slip: Confusing the median line with the mean

    Instead: the box plot shows the median, which the mean need not match in skewed data.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. A box plot has minimum 12, Q1=18, median 25, Q3=31, maximum 40. Find the range and the IQR.

    Hint: One uses the ends of the whiskers, the other uses the ends of the box.

  2. Make the five-number summary for 3,5,6,8,9,11,12,14,20.

    Hint: The median is the middle value; leave it out when you split the two halves.

  3. A data set has Q1=14 and Q3=22. Find the outlier fences. Are the values 3 and 36 outliers?

    Hint: Compute 1.5×IQR, then go that far below Q1 and above Q3.

  4. Class A's box plot shows median 72 and IQR 10. Class B's shows median 78 and IQR 25. Which class scored higher typically, and which was more consistent?

    Hint: Center comes from the median line; consistency comes from the box width.

  5. You want to compare the median and spread of commute times at 3 schools side by side on one page. Box plot or histogram?

    Hint: Which display puts the median and quartiles of several groups next to each other?

  6. In a box plot, the part of the box from Q1 to the median is twice as wide as the part from the median to Q3. Noah says the left part holds twice as many values. Correct him.

    Hint: How much of the data lies between any two neighboring quartiles?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is the median line often not in the middle of the box?

Because the values between Q1Q_1 and the median can be bunched up while those between the median and Q3Q_3 are spread out, or the other way round. A longer upper part means the upper-middle values stretch over a wider range, a hint that the data is skewed to the right, as incomes often are. When the median line sits at the center of the box and the whiskers match, the data is roughly symmetric.

Can a whisker have no length at all?

Yes. If the smallest value equals Q1Q_1, the lower whisker vanishes. For the scores 3, 3, 3, 3, 5, 6, 8, 9, the lower half is 3, 3, 3, 3, so Q1=3Q_1 = 3, which is also the minimum. A missing whisker usually means many values are tied at one end, which happens, for example, when a quiz is so hard that many students score 0.

Why does the outlier rule use 1.5 times the IQR?

It is a rule of thumb from the statistician John Tukey, who made box plots popular in the 1970s. He wanted a fence far enough out that ordinary data rarely crosses it: for bell-shaped data, only about 0.7% of values land more than 1.5×IQR1.5 \times \text{IQR} beyond the box. A value past the fence is worth a second look, not automatically a mistake. Some software also marks values beyond 3×IQR3 \times \text{IQR} as extreme outliers.

Learning Path

← Before

MedianQuartiles
Box Plot

You are here

You need the Median and Quartiles, since the box runs from Q1 to Q3 around the median. A box plot adds a compact picture of a distribution that makes comparing groups easy. Next, the Interquartile Range, the length of the box, measures the spread of the middle half and sets the fences that decide which points are outliers.

See Also