Box Plot Tool
Visualize statistical distributions. Enter min, Q1, median, Q3, and max for each group.
Chart Data
Note: What Is a Box Plot?
The Basics
A box plot, also known as a box and whisker plot, is a compact chart that summarizes a distribution of numerical data using five key numbers: the minimum, the first quartile, the median, the third quartile, and the maximum. The box spans from the first quartile to the third quartile, which is the interquartile range where the middle half of the data lives. A line inside the box marks the median, and the whiskers extend out to the most extreme values that are not considered outliers. Values beyond the whiskers are plotted as individual points.
Because it reduces a whole dataset to its key statistics, a box plot fits an enormous amount of information into a tiny space. That makes it ideal for comparing many groups side by side and for spotting skew, spread, and unusual values at a glance.
Common Use Cases
- Salary benchmarking, comparing pay distributions across departments, roles, or geographic regions.
- Test score analysis, showing how a class or cohort performed and where the middle 50% of students landed.
- Quality control in manufacturing, tracking measurement spread across batches or production lines.
- Financial data, comparing return distributions of different asset classes or funds.
- A/B testing and analytics, contrasting metrics like page load time or conversion rate across groups.
- Scientific experiments, summarizing measurement variability across treatment conditions.
When to Use It vs Alternatives
Choose a box plot when you want to compare distributions across several groups at once, especially when sample sizes vary widely or outliers matter. The median and quartiles make it robust to extreme values, unlike a mean that one wild number can drag around.
For a single dataset where you need the full shape, a histogram reveals modality and density more clearly. Violin plots combine a box plot with a density curve and are a good upgrade when the sample size supports it. If you simply need to compare average values and variation, a bar chart with error bars is more familiar to general audiences, though it hides the underlying distribution.
How to Read and Use It Well
- The median line splits the data in half; a median sitting off center inside the box signals skew in the middle 50%.
- Longer whiskers or boxes mean more spread; compare box widths and whisker lengths across groups to judge variability.
- Dots beyond the whiskers are outliers, often defined with the 1.5 times interquartile range rule; investigate them before dismissing them.
- Compare medians across boxes first, then spread, then outliers, in that order of importance.
- Note the scale on the axis, because a truncated axis can exaggerate differences between medians.
Fun Facts
- The box plot was invented in 1970 by the statistician John Tukey, who also coined the words "software" and "bit".
- Tukey originally called the chart a "schematic plot" and introduced the box and whisker form in his classic exploratory data analysis book.
- The whiskers usually extend to 1.5 times the interquartile range, not to the true minimum and maximum.
- Box plots are so dense that a skilled reader can estimate the mean, the variance, and even the approximate sample size from the shape alone.
- They are sometimes called "box and whisker plots" because the lines reaching for the tails resemble a cat's whiskers.
- Tukey's work on box plots helped launch the field of exploratory data analysis, which changed how statisticians approach messy real world data.
- Many box plot styles allow "notches" around the median that act as rough confidence intervals for comparing groups statistically.