AP · Statistics · Describing Distributions

Boxplots and Outliers

13 min readUpdated December 1, 2026FreeAP Statistics, Exploring One-Variable Data

A boxplot draws the five-number summary of a quantitative data set: the minimum, first quartile, median, third quartile and maximum. The 1.5 × IQR rule calls a value an outlier when it lies more than 1.5 IQRs below Q1Q_1 or above Q3Q_3, and a boxplot marks those values as separate points. A boxplot shows center, spread, skew and outliers at a glance, but it hides gaps, clusters and the number of peaks.

Quick check

  1. If Q1=20Q_1 = 20 and Q3=32Q_3 = 32, what is the interquartile range?Show answerHide answer

    32−20=1232 - 20 = 12.

  2. What is 1.5×IQR1.5 \times \text{IQR} when the IQR is 12?Show answerHide answer

    1.5×12=181.5 \times 12 = 18. That distance sets the outlier boundaries.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the five-number summary of a data set.
  • Calculate the outlier boundaries with the 1.5 × IQR rule and identify any outliers.
  • Construct a boxplot with outliers plotted as separate points.
  • Explain what a boxplot shows about a distribution and what it hides.

Key terms

Five-number summary

The minimum, Q1Q_1, the median, Q3Q_3 and the maximum of a data set.

In plain English
Five values that split the ordered data into four parts with about a quarter of the values in each.
Don't write
The mean in a five-number summary; it uses the median.

Outlier (1.5 × IQR rule)

A value below Q1−1.5×IQRQ_1 - 1.5 \times \text{IQR} or above Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}.

In plain English
A value unusually far beyond the middle half.
Don't write
"outlier" for a value exactly on a boundary; it must lie beyond it.

Whisker

The line from the box to the smallest or the largest value that is not an outlier.

In plain English
The reach of the ordinary values beyond the box.
Don't write
A whisker that ends at a boundary such as Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}; it ends at a data value.

What is the five-number summary?

Order the data, then find the minimum, Q1Q_1, the median, Q3Q_3 and the maximum. Q1Q_1 and Q3Q_3 are the medians of the lower and upper halves, leaving out the overall median when nn is odd; the note on measures of center and variability covers that method.

The five values cut the data into four parts, each holding about 25% of the values. So about half the data lie between Q1Q_1 and Q3Q_3, and the IQR, Q3−Q1Q_3 - Q_1, is the width of that middle half. Graphing calculator output lists the five-number summary directly.

Check yourself

What percent of the data lie between the median and the maximum?
Show answerHide answer

About 50%, because the median splits the data in half.

How does the 1.5 × IQR rule find outliers?

Learn this: a value is an outlier if it lies below Q1−1.5×IQRQ_1 - 1.5 \times \text{IQR} or above Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}. These two boundaries are often called fences.

For Q1=20Q_1 = 20 and Q3=32Q_3 = 32, the IQR is 12 and 1.5×12=181.5 \times 12 = 18. The fences are 20−18=220 - 18 = 2 and 32+18=5032 + 18 = 50. A value of 51 is an outlier; a value of exactly 50 is not, because it does not lie beyond the fence.

The rule uses the IQR because the IQR is resistant: the outliers you are hunting cannot stretch the yardstick that finds them. An outlier is a flag to investigate, not an error to delete. Check whether it is a recording mistake or a genuine unusual individual.

Key idea

Compute both fences, then compare the smallest and largest values with them; only values beyond a fence are outliers.

Check yourself

Q1=8Q_1 = 8 and Q3=14Q_3 = 14. Is 24 an outlier?
Show answerHide answer

Yes. The IQR is 6, so the upper fence is 14+9=2314 + 9 = 23, and 24 lies above it.

How do you draw a boxplot?

  1. Draw a scaled number line and label it with the variable and units.
  2. Draw a box from Q1Q_1 to Q3Q_3, with a line across it at the median.
  3. Draw each whisker from the box to the most extreme value that is not an outlier.
  4. Mark each outlier as a separate point.

A boxplot that shows outliers this way is sometimes called a modified boxplot. The figure "Boxplot of 15 hypothetical test completion times, with an outlier at 58 minutes" shows the data from Worked example 1: the right whisker stops at 41, the largest ordinary value, and 58 sits alone.

Check yourself

The upper fence is 53 and the three largest values are 40, 41 and 58. Where does the right whisker end?
Show answerHide answer

At 41, the largest value that is not an outlier; 58 is plotted as a separate point.

What does a boxplot show and hide?

A boxplot shows the median, the IQR (the length of the box), the range and any outliers. It also hints at skew: when the right whisker and the right part of the box are longer, the distribution is likely skewed right.

It hides a lot. You cannot see individual values, the number of values, gaps, clusters or the number of peaks. A bimodal distribution and a roughly flat one can share the same boxplot. A long whisker means the values there are spread out, not that there are more of them, since each of the four parts holds about a quarter of the data.

Check yourself

Can a boxplot show that a distribution is bimodal?
Show answerHide answer

No. The five-number summary hides the peaks; you need a histogram, dotplot or stemplot to see them.

Worked example 1: A boxplot with an outlier

Question: The times, in minutes, that 15 students in a hypothetical class took to finish a test are 22, 25, 27, 28, 30, 31, 31, 33, 34, 35, 36, 38, 40, 41 and 58. (a) Find the five-number summary. (b) Use the 1.5 × IQR rule to identify any outliers. (c) State where each whisker ends.

What tells you the method

"1.5 × IQR rule" means find the quartiles, then the fences.

  1. Step 1: Find the median and quartiles.

    With 15 values, the median is the 8th, 33. The lower half 22, 25, 27, 28, 30, 31, 31 gives Q1=28Q_1 = 28; the upper half 34, 35, 36, 38, 40, 41, 58 gives Q3=38Q_3 = 38.

    Why

    With nn odd, the median is left out of both halves.

  2. Step 2: Calculate the fences.

    IQR=38−28=10\text{IQR} = 38 - 28 = 10 and 1.5×10=151.5 \times 10 = 15, so the fences are 28−15=1328 - 15 = 13 and 38+15=5338 + 15 = 53.

    Why

    Outliers lie beyond these two boundaries.

  3. Step 3: Compare the extremes.

    The minimum, 22, is above 13, so there are no low outliers. The maximum, 58, is above 53, so it is an outlier; the next value, 41, is not.

    Why

    Only values beyond a fence count.

Check it

58 is 20 minutes above Q3Q_3, twice the IQR, so it clearly stands apart.

Answer

(a) The five-number summary is 22, 28, 33, 38 and 58 minutes. (b) The fences are 13 and 53, so 58 minutes is the only outlier. (c) The left whisker ends at 22 and the right whisker at 41.

Worked example 2: Outliers from a summary alone

Question: A hypothetical data set has minimum 4, Q1=12Q_1 = 12, median 15, Q3=19Q_3 = 19 and maximum 35. (a) Calculate the outlier fences. (b) Determine whether the data contain any outliers, and whether you can tell how many.

What tells you the method

You have only five numbers, so compare the minimum and maximum with the fences.

  1. Step 1: Calculate the fences.

    IQR=19−12=7\text{IQR} = 19 - 12 = 7 and 1.5×7=10.51.5 \times 7 = 10.5, so the fences are 12−10.5=1.512 - 10.5 = 1.5 and 19+10.5=29.519 + 10.5 = 29.5.

    Why

    The rule needs only Q1Q_1, Q3Q_3 and the IQR.

  2. Step 2: Test the extremes.

    The minimum, 4, is above 1.5, so there are no low outliers. The maximum, 35, is above 29.5, so there is at least one high outlier.

    Why

    If the most extreme value is not beyond a fence, no value on that side is.

  3. Step 3: Decide whether you can count them.

    You cannot: other values between 29.5 and 35 may exist, and the summary does not show them.

    Why

    A five-number summary hides every value except those five.

Check it

The right side is much longer (35−19=1635 - 19 = 16) than the left (12−4=812 - 4 = 8), which fits a high outlier.

Answer

(a) The fences are 1.5 and 29.5. (b) There is at least one high outlier, the maximum of 35, and no low outlier; the exact number of outliers cannot be told from the summary.

Your turn

Question: A hypothetical data set is 3, 5, 6, 6, 7, 8, 9, 10, 11, 12, 14 and 25. Use the 1.5 × IQR rule to find the fences and any outliers.

  1. Step 1:

    With 12 values, the median is 8+92=8.5\frac{8 + 9}{2} = 8.5, Q1=6Q_1 = 6 (from 3, 5, 6, 6, 7, 8) and Q3=11.5Q_3 = 11.5 (from 9, 10, 11, 12, 14, 25).

  2. Step 2: Your go: calculate the IQR and both fences, then test the extremes.

Show the full solutionHide the solution

IQR=11.5−6=5.5\text{IQR} = 11.5 - 6 = 5.5 and 1.5×5.5=8.251.5 \times 5.5 = 8.25. The fences are 6−8.25=−2.256 - 8.25 = -2.25 and 11.5+8.25=19.7511.5 + 8.25 = 19.75. The minimum, 3, is above −2.25-2.25; the maximum, 25, is above 19.75, and the next value, 14, is not.

Answer: The fences are −2.25-2.25 and 19.75, and the only outlier is 25.

Traps

Trap

Drawing the whisker out to the fence.

It seems right because the fence marks where ordinary values stop. But the fence is not a data value; the whisker ends at the most extreme actual value inside the fences.

Check yourself

The fences are 13 and 53, and the values inside them run from 22 to 41. Where do the whiskers end?
Show answerHide answer

At 22 and 41, the most extreme values that are not outliers.

Trap

Reading a longer section of a boxplot as holding more data.

It seems right because a longer part looks bigger. But each of the four parts holds about 25% of the values; a longer part means those values are more spread out.

Check yourself

In a boxplot, the left whisker is twice as long as the right whisker. Which whisker covers more values?
Show answerHide answer

Neither. Each whisker covers about 25% of the values; the left ones are just more spread out.

What's examined

Boxplots and the 1.5 × IQR rule are tested on the AP® Statistics exam, in both the multiple-choice and free-response sections. You may be asked to identify outliers with the rule, showing the fences, to construct a boxplot from data, or to explain what a boxplot can and cannot show. Justify an outlier claim with numbers: state the fence and compare the value with it.

Practice questions

  1. Recall In a boxplot drawn with the 1.5 × IQR rule, where do the whiskers end?
    • A) At the fences Q1−1.5×IQRQ_1 - 1.5 \times \text{IQR} and Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}
    • B) At the minimum and maximum, even when they are outliers
    • C) At the most extreme values that are not outliers
    • D) One standard deviation from the mean
Show answer

Answer: C) At the most extreme values that are not outliers.

Marking points:

  • Whiskers end at actual data values inside the fences.
  • A stops at the fences, which are not data values. B ignores the outliers. D mixes in the standard deviation.
  1. Recall A data set has Q1=40Q_1 = 40 and Q3=52Q_3 = 52. What is the upper fence for outliers?
    • A) 58
    • B) 70
    • C) 78
    • D) 88
Show answer

Answer: B) 70

Marking points:

  • IQR=12\text{IQR} = 12, and 52+1.5×12=7052 + 1.5 \times 12 = 70.
  • A adds half the IQR. C multiplies Q3Q_3 by 1.5. D adds three IQRs.
  1. Apply A hypothetical data set has five-number summary 10, 18, 21, 30 and 44. Which statement must be true?
    • A) The data contain no outliers.
    • B) More values lie between 21 and 30 than between 18 and 21.
    • C) The mean is 21.
    • D) The distribution has a single peak.
Show answer

Answer: A) The data contain no outliers.

Marking points:

  • IQR=12\text{IQR} = 12, so the fences are 18−18=018 - 18 = 0 and 30+18=4830 + 18 = 48; 10 and 44 lie inside both.
  • B misreads length as count. C confuses the median with the mean. D is a feature a boxplot hides.
  1. Apply A hypothetical data set is 2, 15, 17, 18, 20, 21, 23 and 26. Identify any outlier using the 1.5 × IQR rule, and state where the left whisker ends.
Show answer

Answer: The outlier is 2, and the left whisker ends at 15.

Marking points:

  • Median 19, Q1=16Q_1 = 16, Q3=22Q_3 = 22, so IQR=6\text{IQR} = 6.
  • The fences are 16−9=716 - 9 = 7 and 22+9=3122 + 9 = 31; 2 is below 7, and 26 is below 31.
  • The smallest value that is not an outlier is 15.
  1. Exam-style A boxplot of hypothetical quiz scores shows minimum 40, Q1=55Q_1 = 55, median 65, Q3=75Q_3 = 75 and maximum 90. Which feature of the scores could this boxplot hide?
    • A) The median score
    • B) The interquartile range
    • C) The range
    • D) Two separate clusters of scores
Show answer

Answer: D) Two separate clusters of scores.

Marking points:

  • A boxplot shows only the five-number summary and outliers, so clusters and gaps can be invisible.
  • A, B and C can all be read directly from the boxplot.
  1. Exam-style Hypothetical salaries at a small company, in thousands of dollars, have minimum 38, Q1=45Q_1 = 45, median 52, Q3=61Q_3 = 61 and maximum 112. The second-largest salary is 79. (a) Show that the maximum salary is an outlier by the 1.5 × IQR rule. (b) State where the right whisker ends.
Show answer

Answer: (a) The upper fence is 85, and 112 is above it, so 112 is an outlier. (b) The right whisker ends at 79.

Marking points:

  • IQR=61−45=16\text{IQR} = 61 - 45 = 16 and 1.5×16=241.5 \times 16 = 24, so the upper fence is 61+24=8561 + 24 = 85.
  • 112 > 85, so the maximum is an outlier; 79 < 85, so 79 is the largest ordinary value.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • The five-number summary is the minimum, Q1Q_1, the median, Q3Q_3 and the maximum, each part holding about a quarter of the data.
  • The fences are Q1−1.5×IQRQ_1 - 1.5 \times \text{IQR} and Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}; only values beyond them are outliers.
  • Whiskers end at the most extreme values that are not outliers, and each outlier is plotted as its own point.
  • A boxplot shows center, spread, skew and outliers, but hides gaps, clusters, peaks and sample size.

Figures

Horizontal boxplot on a scale of test completion time in minutes. The box runs from 28 to 38 with the median line at 33. The left whisker reaches 22, the right whisker reaches 41, and a separate point marks the outlier at 58. (open full size in a new tab)
Boxplot of 15 hypothetical test completion times, with an outlier at 58 minutes

Keep learning

Explore AP Statistics tutoring →

View the full Statistics syllabus →

More in this unit

Exploring One-Variable Data

All Describing Distributions notes

Part of Novark's AP Statistics notes