Box plotFive numbers in one picture.
A box for the middle half, a line for the middle value, whiskers for the usual range and dots for the odd ones. Five numbers, and many groups side by side.
- Answers How are the values spread?
- Your data values of one number per group
- Values about 10 or more per group
- Groups 2 to 20
- Excel built in (Box and Whisker)
What is a box plot?
A box plot (also a box-and-whisker plot) sums up the values of one number in five numbers: the median (the middle value), the box around the middle half, the whiskers out to the usual range, and dots for outliers, values far from the rest. Each group gets one box, so many groups compare side by side in very little space.
A help desk times how long callers wait, for three teams. The boxes show that South is quick and steady, West is slow and spread out, and North had one caller who waited 25 minutes.
Why use a box plot?
Because it compares the spread of many groups in the space of one chart.
- Many groups at once. Ten or twenty boxes fit side by side.
- The middle and the spread. The median and the box say "typical" and "how much it varies".
- Outliers marked. Odd values show as dots, not hidden in an average.
- A standard. Analysts, scientists and Excel all draw it the same way.
How does a box plot work?
Four steps shrink each group to five numbers.
- Step 1 of 4Every valueEach call as a dot, one row per team.
- Step 2 of 4Sort and splitSort each team's waits and cut them into four equal quarters.
- Step 3 of 4Box and medianThe middle two quarters make the box; the line is the median.
- Step 4 of 4Whiskers and dotsWhiskers reach the last value within 1.5 box lengths; the rest are dots.
The box holds the middle half of the values, so half of all callers waited somewhere inside it.
What are the parts of a box plot?
Four parts, and each one has a job.
- Medianthe middle value: half below, half above
- Boxthe middle half, from the first to the third quarter
- Whiskerthe usual range outside the box
- Outliera value far past the whisker
How do you read a box plot?
Three looks, in this order.
- Compare the mediansSouth's median is 4.5 minutes, West's 11.5: the typical wait.
- Compare the boxesWest's box is widest: its waits vary the most.
- Check the dotsNorth has one caller at 25 minutes: worth a look.
What kinds of box plot are there?
The same three teams, three ways.
- Kind 1Box and whiskerThe standard: box, median, whiskers and outlier dots.
- Kind 2One team litGrey boxes with one accent, for one message.
- Kind 3With the shapeA violin: the box inside the shape of the values.
When should you use a box plot?
When you compare the spread of one number across several groups.
- you compare 2 to 20 groups
- the spread matters, not only the average
- outliers should show
- readers know box plots
- the shape has two peaks (a violin plot)
- there are few values (a strip plot)
- readers are not used to it (a bar chart of medians)
Box plot or violin plot?
A box plot for the summary, a violin when the shape matters.
The box plot gives five clear numbers and marks the outlier. The violin plot adds the shape around the box, which matters when the values form two groups that a box would hide.
How do you make a box plot?
Built into Excel; in Power BI with a visual or Python.
In Excel, select the values (one column per group) and choose Insert > Statistic Chart > Box and Whisker. Power BI has no built-in box plot: use a visual from AppSource (custom visuals in Power BI) or a Python visual with seaborn's boxplot (Python and R visuals). DAX's MEDIAN and PERCENTILE.INC give the five numbers for a table (statistical functions in DAX).
What goes wrong with box plots?
The most common mistake, and its fix: a box that hides two groups.
| Mistake | Why it hurts | Fix |
|---|---|---|
| Hiding two clumps | The box looks normal | Dots on top, or a violin |
| Few values | Five numbers from six values mislead | A strip plot |
| Readers who do not know it | They read the box as a range of all values | A short note on what the box is |
| Groups in random order | Hard to compare | Sort by median |
| Different whisker rules | Outliers change | Say the rule (1.5 box lengths) |
Every chart for “How are the values spread?”
- One groupHistogramTouching bars that count how many values fall in each range.
- One groupDensity plotA smooth curve of where values bunch up.
- One groupStrip plotEvery value as a dot along one line.
- One groupBeeswarm plotDots that push apart instead of overlapping, so every value shows.
- Comparing groupsViolin plotA box plot with the shape of the values drawn around it.
- Comparing groupsRidgeline plotDensity curves stacked and overlapping, one per group.
- Comparing groupsRaincloud plotHalf a violin, a box and the dots, in one picture.
- Comparing groupsPopulation pyramidTwo histograms back to back, by age and sex.
- CumulativeCumulative distributionA rising line of the share of values at or below each point.
- CumulativePareto chartBars from biggest to smallest with a running total line.
- Fit checkQ-Q plotDots along a line when the data fits the shape you expect.
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.