Box Plot
Variant: Standard
Data: Palmer Penguins (Horst, Hill & Gorman 2020), CC0 · whiskers reach the furthest point within 1.5×IQR
Variants
5 types · click one to see it in the frame above- Difference from standard
- The recommended type; use it as a starting point
- Use when
- Compare medians, quartiles and outliers
Box Plot is a chart that summarises the spread of numeric data with quartiles, a median and whiskers that show the range. The whisker ends may mark the minimum and maximum, or the furthest data point within 1.5×IQR, depending on the definition chosen. It lets you compare many groups in a small space.
How to read a Box Plot
Each box is one group of data.
- The line inside the box is the median (the middle value when the data is sorted). For Gentoo it is 5,000 grams.
- The edges of the box are quartiles 1 and 3. The Gentoo box runs from 4,700 to 5,500 grams, and half the group falls in that range. The width is called the IQR (800 grams).
- The whiskers in this chart reach the furthest real data point that is still within 1.5×IQR of the box edge. For Gentoo that is 3,950 and 6,300 grams.
- The orange dots are values beyond that. In this example only Chinstrap has any, 2 penguins at 2,700 and 4,800 grams.
Compare Adelie with Chinstrap. The median is the same, 3,700 grams, but the Chinstrap box is narrower (IQR 462.5 grams against 650 grams). That means Chinstrap weights bunch up more around the middle. The median alone cannot tell you this.
Whiskers have several definitions. Some run to the minimum and maximum, some use fixed quantiles such as 2% and 98%, and some use a multiplier other than 1.5. Try the "Whiskers to min–max" variant to compare. Always state the definition you used under the chart.
When to use it
- Comparing weights, heights or other measurements across several groups at once, such as the 3 species in this example.
- Comparing waiting or response times across branches, to see which branch is steadily slow and which is slow only sometimes.
- Checking whether the centre or the spread differs between groups, and finding points outside the whiskers to look into.
- You have many groups and limited space. A Histogram gives more detail but takes more room, while a Box Plot lines up many groups easily.
When not to use it
- You need to see whether the distribution has one peak or several. A box plot cannot show that. Use a Violin Plot or a Histogram instead.
- Each group has very little data. The box hides the values that were actually measured. Use a Strip Plot or a Beeswarm Plot so every point shows.
- The data set is very large. There may be a great many points outside the whiskers. Use a Density Plot to see the shape, or a letter-value plot, which shows finer quantiles.
- You want one value per group, such as total sales. Use a Bar Chart.
Common mistakes
1. Not saying what the whiskers mean
Whisker definitions vary, and readers may assume the ends are always the minimum and maximum, even though the chart has already cut unusual values out as dots. The fix is to write the definition under the chart. Switch between the default (whiskers within 1.5×IQR) and the "Whiskers to min–max" variant above, and you will see Chinstrap change its look.
No explanation: what is the orange dot, how far do the whiskers reach?
Whiskers reach the farthest data point within 1.5×IQR · orange dots are values outside the whiskers
2. Using it on data with several peaks
A box plot cannot see multiple peaks at all. Data sets with very different distributions can produce identical boxes (the research series Same Stats, Different Graphs has examples, listed at the end of the page). The fix is to lay the data points over the box (the "Box plus data points" variant) or to use a Violin Plot.
Synthetic data: boxes A and B look almost the same
Synthetic data: with the points shown, B has two peaks
3. Hiding the raw data when groups are small
A survey of 703 articles in physiology journals (see the end of the page) found that most summarise continuous data with bar or line charts of the mean, and many different data shapes give the same chart. The authors recommend a box plot or a scatter plot instead, and showing the raw data when samples are small. The fix is to place the points over the box.
Synthetic data: 6 values per group
Same synthetic data: all 6 measured values are visible
4. Not showing how big each group is
The box for a group of 68 and the box for a group of 151 can be equally wide, because a standard box plot does not show the number of data points. The fix is to set the box width by the group size, or to write n under each group name.
Compared with similar charts
| Chart | What you see | Choose it when |
|---|---|---|
| Box Plot | The five-number summary and unusual values | You compare many groups in a small space |
| Violin Plot | The density of all the data, not just the middle half | You suspect the data has several peaks |
| Histogram | A more detailed distribution, but it takes more space | You look at the shape of one group at a time |
| Strip Plot / Beeswarm Plot | Every data point | The sample is small and you need to see every value |
| Bar Chart of means | One value per group, which hides the spread | You want a single value and the spread does not matter |
History and development
The shape that became the box plot appears in Charting Statistics (1952) by Mary Eleanor Spear. The Thomas Fisher Rare Book Library at the University of Toronto calls the figure in that book the first box plot: it has a box from Q1 to Q3, a median line, and a line reaching the minimum and maximum. Wickham and Stryjewski call this basic form a range-bar and cite page 164 of the book.
John Tukey presented the box-and-whisker plot as part of his toolkit for exploratory data analysis, in the preliminary edition of Exploratory Data Analysis (1970). It became widely known after the full printing in 1977, according to Wickham and Stryjewski. What Tukey added was a choice of summary statistics that work for many kinds of data, tied to the range-bar shape, and he called the version with whisker limits a schematic plot. For decades the credit for the chart went to Tukey, until the data visualisation community campaigned to credit Spear, and the Royal Statistical Society named a competition after her.
Wickham and Stryjewski list several later developments, including boxes whose width follows the amount of data, notches that help compare medians, and charts that add a picture of the data density, such as the violin plot. Each answers a different limit: the standard box plot is compact, but it does not show the full shape of the distribution.
Frequently asked questions
What is a Box Plot used for?
To see where the data sits and how much it varies, especially when comparing groups in one chart.
What is the line inside the box?
It is the median, the middle value when the data is sorted from smallest to largest. It is not the mean. To see the mean, use the "Add the mean" variant.
How does a Box Plot decide what is an outlier?
The usual method: if IQR = Q3 − Q1, any value below Q1 − 1.5×IQR or above Q3 + 1.5×IQR is drawn as a dot beyond the whiskers. Look into these points before deciding whether they are bad data or unusual events, and state the whisker definition under the chart.
How is a Box Plot different from a Violin Plot?
A Violin Plot shows the density of all the data, so it can reveal several peaks. A standard Box Plot cannot.
References
- 1.3.3.7 Box Plot · NIST/SEMATECH e-Handbook of Statistical Methods · www.itl.nist.govUsed to confirm: the parts of a box plot and how to read quartiles
- 40 years of boxplots · Wickham, H., & Stryjewski, L. (2011) · vita.had.co.nzUsed to confirm: the history and variants of the box plot
- Same Stats, Different Graphs · Matejka, J., & Fitzmaurice, G. (2017) · CHI '17 · www.research.autodesk.comUsed to confirm: examples of data with the same statistics but different shapes (Datasaurus)
- Beyond Bar and Line Graphs: Time for a New Data Presentation Paradigm · Weissgerber, T. L., et al. (2015) · PLOS Biology, 13(4), e1002128 · journals.plos.orgUsed to confirm: why to show data points instead of mean bars in small samples
- Charting Statistics · Spear, M. E. (1952) · McGraw-Hill · cited via the Thomas Fisher Library, University of Toronto · fisherdigitus.library.utoronto.caUsed to confirm: the history of line, bar and box charts in early statistics textbooks
Last updated 28 Nov 2026