To make a box plot, sort the data, find its median and quartiles, then draw a box from to with a line at the median. Add whiskers according to the convention your class uses. A simple box plot extends whiskers to the minimum and maximum; a modified box plot ends whiskers at the most extreme non-outlier values and plots outliers separately.
That last choice changes the picture. Always check whether a worksheet, textbook, or software expects simple or modified whiskers. OpenStax describes the five-number summary used to build the box and read its spread.
The five-number summary
Use this sorted dataset of nine observations:
The middle value, median, is 7. Using the common median-of-halves, exclude-the-middle method, the lower half is , so . The upper half is , so .
| Statistic | Value | How it appears |
|---|---|---|
| Minimum | 2 | Left whisker in a simple box plot |
| First quartile | 4.5 | Left edge of box |
| Median | 7 | Line inside box |
| Third quartile | 10.5 | Right edge of box |
| Maximum | 30 | Right whisker in a simple box plot |
Different quartile conventions can give different and values for the same small dataset. State your convention and follow your course's method. Math Is Fun's box-plot example also flags this variation.
Example 1: draw a simple box plot
Mark 2, 4.5, 7, 10.5, and 30 on one number line. Draw a box from 4.5 to 10.5 and a line through it at 7. Extend the left whisker from 4.5 to 2 and the right whisker from 10.5 to 30. The box covers the middle half of the observations by quartile position; it does not mean half the values lie between 4.5 and 7 alone.
Example 2: draw a modified box plot with outliers
For the same dataset, the interquartile range is
The usual fences are and . Since 30 is above 19.5, it is an outlier by this rule. The largest observation inside the fences is 11, so the modified plot's right whisker ends at 11, and 30 appears as a separate dot. The left whisker still ends at 2. A fence is a cutoff for classifying observations, not a whisker endpoint.
Example 3: an even-sized dataset
Problem: Make the five-number summary for using the same median-of-halves method.
The median is . The lower half has median . The upper half has median . Answer: . Check that the values are ordered from minimum to maximum.
How to read the result
- The box length is the IQR, a measure of the middle 50% spread. For the first dataset it is 6.
- The median line marks the middle value. It need not be centered in the box.
- A longer whisker or an outlier may suggest a longer tail, but a box plot does not show the full shape or every observation.
- Compare box plots only when their axes use the same scale and the same whisker convention.
Our standard deviation guide explains a different measure of spread, and the mean, median and mode calculator can help check the center of a dataset. The mean is not one of the five required box-plot numbers.
Practice answers
A. Find the five-number summary for with the median excluded from each half. Answer: .
B. If and , find the IQR and the upper outlier fence. Answer: ; upper fence .
C. If 45 is above the upper fence and 31 is the next highest observation, where does the modified upper whisker end? Answer: At 31, assuming it lies within the fences; plot 45 separately.
For a graph supplied as an image, use the Statistics Problem Solver to check the five labeled positions. Confirm the quartile and whisker convention yourself before comparing its result with a class answer key.


