Box Plot Maker
Draw a box plot from your data โ one group per line โ with Tukey or Excel quartiles, 1.5รIQR outlier fences and a five-number summary for every group.
CALCULATION
Box plot
Five-number summary by group
A box plot maker draws a box plot from your data โ one group per line โ with the five-number summary, 1.5×IQR outlier fences and a choice of Tukey or Excel quartiles. Paste your values, pick a quartile method, and it draws the box, lists the fences and flags the outliers.
How to use the box plot maker
Paste one group per line, pick Tukey or Excel quartiles, and the calculator draws the box plot and works out the five-number summary for every group.
- Paste your data: one group per line, values separated by commas, spaces or line breaks. A single column of values is one group.
- Choose a quartile method: Tukey hinges (the median of each half, excluding the median itself) or Excel QUARTILE.INC (the position (n − 1) × p + 1, interpolated).
- Click Draw box plot โ the calculator updates as you type, so you can also just watch the tiles change.
- Read the headline median for the first group, then the results grid for the five-number summary, the IQR and the two fences. The calculation ledger shows every step.
- Use the chart to compare groups side by side, and download it as a PNG or an SVG, or copy a link that re-opens the same data and method.
Try it now: the 20 values in the worked example give, by Tukey, a five-number summary of 12, 17.5, 22.5, 27.5 and 33, an IQR of 10 and fences at 2.5 and 42.5 โ with no outliers.
When should you use a box plot?
Use a box plot when you want to see a distribution at a glance โ its centre, its spread and its outliers โ or to compare two or more groups without plotting every value. It is the right picture when:
- You want to compare the centre and spread of two or more groups side by side โ the boxes sit next to each other and the medians are easy to compare.
- You need to spot outliers: values outside the 1.5×IQR fences are plotted as dots, so they stand out at once.
- Your data are skewed: the median line sits off-centre in the box and one whisker stretches further than the other, which a mean and SD alone would hide. A histogram shows the same skew in more detail.
- You have too many values to list but want more than a single number โ the box holds the middle 50% and the whiskers show the range that is not outlying.
- You are checking spread before a test: the box plot is the first picture for an ANOVA, which assumes similar spreads across groups.
A box plot hides the shape of the data inside the box โ it cannot show two peaks, for example. If you need the shape, draw a histogram as well. And if you need the quartiles as numbers, a quartile calculator gives them with the IQR.
Tukey vs Excel: why do the boxes differ?
There is no single way to define a quartile, so the same data can give two different boxes. Tukey's hinges take the median of each half of the ordered data (the median itself is excluded when n is odd). Excel's QUARTILE.INC puts Q1 at position (n − 1) × 0.25 + 1 and Q3 at (n − 1) × 0.75 + 1, interpolating between the two nearest values.
| Method | Q1 | Median | Q3 | IQR | Fences |
|---|---|---|---|---|---|
| Tukey hinges | 17.5 | 22.5 | 27.5 | 10 | 2.5 to 42.5 |
| Excel QUARTILE.INC | 17.75 | 22.5 | 27.25 | 9.5 | 3.5 to 41.5 |
On the 20 worked-example values, Q1 differs by 0.25 and Q3 by 0.25, so the boxes shift even though the median is the same either way. Neither method is wrong โ but always say which one you used, or two people will report different quartiles from the same data and both be right.
What are the whiskers?
The whiskers are the lines that stick out of the top and bottom of the box โ and they do not reach the minimum and maximum. Each whisker stops at the farthest data point that is still inside the fences: the lower fence Q1 − 1.5 × IQR and the upper fence Q3 + 1.5 × IQR. Points outside the fences are plotted as individual dots.
On the worked example, the fences are 2.5 and 42.5 and every value lies inside them, so the whiskers reach the minimum (12) and the maximum (33) and there are no dots. With a value of 50 added, the upper fence is still 42.5, so 50 would be plotted as a dot and the upper whisker would stop at 33.
Worked examples
Example 1 — the 20 shared values (Tukey)
The 20 values 12, 15, 14, 18, 16, 20, 22, 19, 17, 21, 23, 25, 24, 26, 28, 27, 29, 30, 31, 33, sorted, are 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33. The median is the mean of the 10th and 11th values, (22 + 23) / 2 = 22.5. The lower half (the first 10 values) has median (17 + 18) / 2 = 17.5, so Q1 = 17.5; the upper half has median (27 + 28) / 2 = 27.5, so Q3 = 27.5. The IQR is 27.5 − 17.5 = 10. The fences are 17.5 − 15 = 2.5 and 27.5 + 15 = 42.5. Every value lies inside them, so there are no outliers and the whiskers reach 12 and 33. By Excel, Q1 = 17.75, Q3 = 27.25 and the IQR is 9.5 โ the same median, a slightly narrower box.
Example 2 — two groups side by side
Split the same 20 values into two groups of 10. Group X is 12, 15, 14, 18, 16, 20, 22, 19, 17, 21 (median 17.5, Q1 15, Q3 20) and group Y is 23, 25, 24, 26, 28, 27, 29, 30, 31, 33 (median 27.5, Q1 25, Q3 30). The two boxes do not overlap at all: the top of group X's box (Q3 = 20) is below the bottom of group Y's box (Q1 = 25). That gap is the story of the picture โ the groups are clearly separated, and you can see it without a single test.
Example 3 — five values, and all identical
With five values 4, 7, 9, 12, 15, Tukey gives Q1 = 5.5 (the median of 4 and 7), a median of 9 and Q3 = 13.5 (the median of 12 and 15), so the box still draws. With six identical values 7, 7, 7, 7, 7, 7, every summary number is 7 and the IQR is 0, so the box collapses to a single line at 7 โ the calculator shows it rather than erroring, because a line is the honest picture of data with no spread.
Frequently asked questions
Why do Tukey and Excel give different boxes?
Because there is no single definition of a quartile. Tukey's hinges take the median of the lower and upper halves of the ordered data (excluding the median itself when n is odd). Excel's QUARTILE.INC interpolates at position (n − 1) × p + 1. On the same 20 values, Tukey gives Q1 = 17.5 and Q3 = 27.5 while Excel gives Q1 = 17.75 and Q3 = 27.25 โ the median is 22.5 either way. Neither is wrong; always say which method you used.
What are the whiskers?
The whiskers are the lines reaching out of the top and bottom of the box. Each one stops at the farthest data point that is still inside the fences โ the lower fence Q1 − 1.5 × IQR and the upper fence Q3 + 1.5 × IQR. They do not reach the minimum and maximum unless every value is inside the fences. Points outside the fences are plotted as individual dots, and those dots are the outliers.
Source: the box plot, its quartiles and the 1.5×IQR fences are described in the NIST/SEMATECH e-Handbook of Statistical Methods, Box Plot. All examples on this page were recomputed with Python (scipy.stats), last updated 19 November 2026.
See all 91 free statistics tools on Empirical Rule Calculators.
Next steps
๐งฎ
โ Live
Quartile Calculator
Find quartiles and the IQR โ the numbers behind the box edges.
Calculator
Try Calculator โ
๐
โ Live
Histogram Maker
See the shape inside the box โ bins, counts and a normal overlay.
Calculator
Try Calculator โ
๐
โ Live
One-Way ANOVA Calculator
Compare group means โ the test the box plot previews.
Calculator
Try Calculator โ
๐
โ Live
Stem-and-Leaf Plot Maker
See every value in order โ the stem-and-leaf plot keeps all your data visible.
Calculator
Try Calculator โ
๐
โ Live
How to Read a Box Plot
Learn to read a box plot: median, quartiles, whiskers and outliers.
Article
Read Article โ
More Tools to Explore
Keep going with the calculators that pair with the box plot maker โ quartiles, the histogram, ANOVA and spread.
Quartile Calculator
Find quartiles and the IQR โ the numbers behind the box edges.
Histogram Maker
See the shape inside the box โ bins, counts and a normal overlay.
One-Way ANOVA Calculator
Compare group means โ the test the box plot previews.
Standard Deviation Calculator
Measure spread with the SD โ the other half of the five-number story.
Z-Score Calculator
Turn any raw score into a z-score and read off its percentile in seconds.
Normal Distribution Calculator
Work out normal probabilities, quantiles and the mean from ฮผ and ฯ.
Explore All Tools→
Browse all 91 free statistics tools โ every calculator on this site in one place.