Skip to content

Box and Whisker Plot Maker

Paste a list of numbers to draw a box and whisker plot, with the five-number summary, interquartile range and outliers worked out next to it.

Free, no sign-up · Last updated

Data

Separate values with spaces, commas, or new lines. Start a line with a name and colon to create a group.

Chart options

Orientation
Chart colors

Numbers

Values (n)

11

Data

n
11
Minimum
15
Q1
22
Median
30
Q3
40
Maximum
70
IQR
18
Range
55
Mean
32.9091
Lower fence
-5
Upper fence
67
Outliers
70

Definition

What a box plot shows

A box plot shows the center and spread of numerical data using quartiles. The box spans the middle half, a line marks the median, and whiskers show how far values extend under a stated rule. Individual points can mark values beyond the whiskers.

Box
Spans the first to the third quartile
Line in the box
Marks the median
Whiskers
Check the rule before reading their ends

How to make a box plot

Enter the raw data, one number per observation. You do not need to sort it first. The maker sorts the list, finds the median and quartiles, and draws the box and whiskers on a scale chosen to fit your data. Commas, spaces, tabs and new lines all work as separators, so a column pasted from a spreadsheet is fine.

Choose the quartile method your teacher uses, decide whether to show outliers, and pick horizontal or vertical. Horizontal box plots are the usual choice in US math classes and fit well under a dot plot or histogram on the same scale. Add a title and a label for the number line, including units, such as Minutes.

Worked example: minutes spent on homework

Eleven students recorded how many minutes they spent on homework: 15, 20, 22, 25, 28, 30, 32, 35, 40, 45 and 70. This is the example in the maker. With 11 values the median is the 6th, which is 30. The lower half is 15, 20, 22, 25 and 28, so Q1 is its middle value, 22. The upper half is 32, 35, 40, 45 and 70, so Q3 is 40.

The interquartile range is 40 − 22 = 18. The outlier fences are 22 − 1.5 × 18 = −5 and 40 + 1.5 × 18 = 67. No value is below −5, but 70 is above 67, so 70 is an outlier and is drawn as a dot. The upper whisker stops at 45, the largest value that is not an outlier. The mean is 362 ÷ 11 ≈ 32.9, above the median of 30. That fits the long right whisker and the outlier, a sign of right skew.

How to read a box and whisker plot

The line inside the box is the median, the middle value. The box holds the middle 50% of the data, from Q1 to Q3, and its length is the interquartile range. Each whisker covers the lowest or highest quarter of the data. A longer section means the values are spread more thinly there, not that it holds more data. Every section holds about a quarter.

If the median sits nearer one end of the box, or one whisker is much longer than the other, the data are skewed. A long right whisker means a few large values stretch the data out. To compare two groups, look at how far apart the medians are compared with the size of the boxes. A big gap with little overlap suggests a real difference.

When to use a box plot

Box plots are best for comparing groups, such as test scores for two classes or reaction times before and after practice, because several boxes fit on one scale. They also show outliers clearly. They hide the individual values and the exact shape, though, so a data set with two peaks can look like an ordinary box. Pair the box plot with a histogram or dot plot when the shape matters.

For the standard deviation and variance of the same data, use the standard deviation calculator. The statistics calculator gives the full set of summary numbers in one place.

Step-by-step example

Use homework times of 15, 20, 22, 25, 28, 30, 32, 35, 40, 45 and 70 minutes, excluding the overall median from both halves when finding quartiles.

StepResult
First quartile22 min
Median30 min
Third quartile40 min
Interquartile range18 min
Outlier fences−5 and 67 min
Upper whisker45 min
Outlier70 min

Formulas used

Five-number summary and outliers

Median = middle value of the sorted data

Q1 = median of the lower half; Q3 = median of the upper half

IQR = Q3 − Q1

Outlier if x < Q1 − 1.5 × IQR or x > Q3 + 1.5 × IQR

Q1
first quartile
Q3
third quartile
IQR
interquartile range
x
an observed value

Example: 15, 20, 22, 25, 28, 30, 32, 35, 40, 45, 70: median 30, Q1 22, Q3 40, IQR 18. Fences −5 and 67, so 70 is an outlier and the upper whisker ends at 45.

When the answer can mislead

  • An outlier marker calls attention to a value that may still be a valid observation.
  • Two datasets with matching boxes can have very different clusters between the quartiles.
  • Check sample sizes before comparing boxes drawn at the same width.

Questions

How do I make a box and whisker plot?

Type or paste your numbers into the box, separated by commas, spaces or new lines. The maker sorts them, finds the minimum, first quartile, median, third quartile and maximum, and draws the plot. To compare groups, put each on its own line with a name and a colon, for example Class A: 12 15 18 20. Then download it as a PNG or SVG, or print it.

What is the five-number summary?

It is the minimum, the first quartile (Q1), the median, the third quartile (Q3) and the maximum. The box runs from Q1 to Q3 with a line at the median, and the whiskers reach out toward the minimum and maximum. A quarter of the data falls in each of the four sections.

Why are my quartiles different from my calculator or Excel?

There is more than one way to find quartiles. Most US textbooks and the TI-84 take the median of the lower half and of the upper half, leaving the median out when there is an odd number of values. Excel’s QUARTILE.INC interpolates between values instead. Pick the method your class uses. For the example data the first method gives Q1 = 22 and Q3 = 40, while Excel gives 23.5 and 37.5.

How are outliers found?

With the 1.5 × IQR rule. The interquartile range is IQR = Q3 − Q1. Any value below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR is an outlier and is drawn as a separate dot. The whisker then stops at the most extreme value that is not an outlier. Turn outliers off to draw the whiskers all the way to the minimum and maximum.

Can I compare two classes on one box plot?

Yes. Write each data set on its own line, starting with its name and a colon. Each group gets its own box on the same scale, in its own color. Compare the medians first, then the boxes. A longer box means the middle half of that group is more spread out.

Does a box plot show the mean?

Not usually. A box plot is built from the median and quartiles. You can turn on the mean marker to add it as a small cross, and the mean is also listed in the numbers next to the plot. When the mean is well above the median, the data are skewed to the right.

Last updated How we check
Embed this calculator
Cite this calculator

Box and Whisker Plot Maker. CalculatorLab. https://calculatorlab.site/calculators/box-plot-maker/. Last updated .