Box Plots: Using the Five-Number Summary to Reveal Spread, Skewness, and Outliers
A staple of data science, the box plot compresses thousands of data points into five simple numbers. We break down how it works, what it hides, and why John Tukey's 1970s invention remains the standard for visualizing distribution.
Share this story
In short
- The box plot visualizes the distribution of data through quartiles, highlighting the median rather than the mean.
- The central box represents the middle 50% of the dataset, known as the interquartile range (IQR).
- Whiskers extend to the lowest and highest values within 1.5 times the IQR, providing a visual boundary for expected variation.
The short version: a box plot is a visual summary that cuts a dataset into four equal parts, draws a box around the middle half, and flags anything too far outside that box as an outlier. It is the fastest way to see if data is skewed, how widely it varies, and where the typical values actually sit. But earning that simplicity requires understanding the mechanics of how those boundaries are drawn, and what the chart intentionally hides.[7]
The foundation of the box plot is the "five-number summary." Instead of relying on a single average—which can be easily distorted by a few extreme values—this method relies on percentiles. The five numbers are the minimum, the first quartile (the 25th percentile), the median (the 50th percentile), the third quartile (the 75th percentile), and the maximum. By plotting these five anchors, the chart reveals the shape of the data without plotting every single point.[1][2]
The most prominent feature of the chart is the central box. The bottom edge of the box represents the first quartile (Q1), meaning 25 percent of the data falls below this line. The top edge represents the third quartile (Q3), meaning 75 percent of the data falls below it. Consequently, the box itself contains exactly the middle 50 percent of the dataset, providing a clear visual anchor for the majority of the observations.[2][5]
This middle 50 percent is known as the Interquartile Range, or IQR. The IQR is a robust measure of spread; unlike the overall range (maximum minus minimum), the IQR is entirely unaffected by extreme outliers. If you are looking at a box plot of household incomes, the IQR tells you exactly what the middle class in that specific dataset is earning, completely ignoring the billionaires at the top and the bankruptcies at the bottom.[2][6]
Inside the box sits a line representing the median. If the median line sits perfectly in the center of the box, the middle 50 percent of the data is symmetrically distributed. If the median line is pushed toward the bottom of the box, the data is positively skewed, meaning the lower values are tightly packed together while the higher values stretch out over a wider range.[4]
Extending outward from the box are the "whiskers." This is where the mechanics become slightly more complex, and where statistical software often makes invisible decisions for the user. Originally, the whiskers simply extended to the absolute minimum and maximum values of the dataset. However, this made the chart highly vulnerable to extreme outliers, which would stretch the whiskers to useless lengths and compress the central box into an unreadable sliver.[3][5]
To solve this, the statistician John Tukey, who invented the box plot in 1970, introduced a mathematical boundary for the whiskers. He defined a "fence" located 1.5 times the IQR beyond the upper and lower edges of the box. The whiskers are drawn out to the furthest actual data point that still falls inside this invisible fence, rather than extending to the theoretical boundary itself.[1][6]
Why 1.5? Tukey himself admitted that 1 was too small and 2 was too large, settling on 1.5 as a pragmatic middle ground that worked well for normally distributed data. In a perfect normal distribution, the 1.5 IQR boundary captures roughly 99.3 percent of the data. Today, this 1.5 multiplier is hardcoded into almost every major statistical software package, from Minitab to Python's Matplotlib, establishing a universal standard for anomaly detection.[1]
Any data point that falls beyond the ends of the whiskers is classified as an outlier. Rather than extending the whisker to reach them, the box plot renders these points individually, usually as dots or asterisks. This is perhaps the most powerful feature of the chart: it automatically flags anomalies without requiring the analyst to manually search through thousands of rows of data.[3][5]
When a data scientist looks at a box plot with a dense cluster of outlier dots above the top whisker, they immediately know that the dataset contains a heavy "tail" of extreme high values. In clinical trials, these dots might represent patients who had an unusually strong reaction to a drug; in manufacturing, they might represent defective parts that fall far outside acceptable tolerances.[3]
However, the evidence presented by a box plot has strict limitations. Because it reduces a dataset to just five numbers, it intentionally obscures the underlying density of the data. A box plot cannot tell you how many total data points are in the sample. A box plot of 10 observations can look identical to a box plot of 10,000 observations if their quartiles happen to align.[5][6]
Furthermore, box plots assume that data clusters around a single central median. If a dataset is bimodal—meaning it has two distinct peaks, like the heights of a mixed group of adult men and women—the box plot will simply draw a box across the middle, completely hiding the two separate clusters. The median line might even fall in a valley where very few actual data points exist.[5][7]
For this reason, modern data analysis often pairs the box plot with a "violin plot" or a "jitter plot." A violin plot uses kernel density estimation to show the actual shape of the distribution, swelling where data is dense and narrowing where it is sparse, while still overlaying Tukey's five-number summary in the center. This hybrid approach covers the blind spots of the traditional box plot.[4][6]
Despite these limitations, the box plot remains a foundational tool in exploratory data analysis. It provides a standardized, mathematically rigorous way to compare multiple distributions side-by-side. When comparing the test scores of five different schools, five side-by-side box plots instantly reveal which school has the highest median, which has the widest spread of ability, and which has extreme outliers.[2][4]
Ultimately, the box plot is an exercise in strategic compression. By sacrificing the granular detail of every individual data point, it buys clarity, allowing researchers to see the structural reality of the data at a single glance. It proves that sometimes, the best way to understand a massive dataset is to look at just five numbers.[1][7]
How we did this
- Method
- Synthesizing the mathematical definitions of outlier boundaries across multiple statistical standards to evaluate the rigidity of the 1.5 IQR rule.
- What we found
- While the 1.5 IQR multiplier was originally proposed by Tukey as a flexible, somewhat arbitrary heuristic for exploratory analysis, it has calcified into a rigid, hardcoded threshold in modern statistical software, effectively redefining what constitutes an 'outlier' by default rather than by statistical necessity.
- What we worked from
- Tukey's original 1.5 IQR formulation: 1.5 multiplier — NIST
- Modern software implementation defaults: Hardcoded 1.5 multiplier
- Limits of this analysis
- This analysis evaluates the default settings of major software packages, but individual data scientists can and do manually adjust these thresholds for specific distributions.
Key terms
- Quartile
- One of three values that divide a sorted dataset into four equal parts, each containing 25% of the data.
- Interquartile Range (IQR)
- The distance between the first quartile (Q1) and the third quartile (Q3), representing the middle 50% of the data.
- Median
- The exact middle value of a dataset when arranged in order from lowest to highest.
- Outlier
- A data point that differs significantly from other observations, typically defined in a box plot as falling beyond 1.5 times the IQR from the box.
- Skewness
- A measure of the asymmetry of a distribution; data is skewed if it stretches out further on one side of the median than the other.
Viewpoints in depth
Exploratory Analysts
Value the box plot for its speed and robustness against outliers.
For exploratory data analysts, the box plot is the essential first step in understanding a new dataset. Before running complex regressions or machine learning models, analysts need to know if the data is fundamentally sound. The box plot provides an immediate, robust check against extreme values that would otherwise distort the mean and ruin subsequent analyses. Its reliance on the median and the interquartile range means that a single massive data entry error will not skew the visual representation of the middle 50 percent.
Data Visualization Critics
Argue that box plots hide underlying density and can mislead audiences.
Critics within the data visualization community point out that the box plot is a highly specialized tool that often fails when presented to a general audience. Because it relies on abstract statistical concepts like quartiles rather than intuitive counts, non-experts frequently misinterpret the size of the box as representing the volume of data rather than its spread. Furthermore, critics emphasize that the five-number summary aggressively hides the true shape of the data, masking bimodal distributions and gaps that would be immediately obvious in a simple histogram or a modern violin plot.
Statistical Software Developers
Focus on standardizing mathematical definitions to ensure consistency.
For the developers building tools like Minitab, R, and Python's Matplotlib, the challenge of the box plot lies in standardization. While John Tukey originally proposed the 1.5 IQR rule as a loose guideline, software requires hardcoded logic. Developers have largely standardized around this 1.5 multiplier to ensure that an 'outlier' flagged in one programming language is also flagged in another. This creates a universal language for anomaly detection, even if it occasionally forces a rigid mathematical boundary onto messy, real-world data.
- Exploratory Analysts
- Value the box plot for its speed and robustness against outliers, viewing it as the essential first step in understanding a new dataset.
- Data Visualization Critics
- Argue that box plots hide underlying density and can mislead audiences, advocating for violin plots or strip charts instead.
- Statistical Software Developers
- Focus on standardizing mathematical definitions, like the 1.5 IQR rule, to ensure consistency across different programming languages and platforms.
Perspectives this story doesn't cover
- General public audience members who struggle to interpret non-standard chart types.
- Machine learning engineers who rely on automated outlier removal rather than visual inspection.
Sources
[1]NISTExploratory Analysts1.3.3.7. Box Plot
Read on NIST →
[2]University of IllinoisExploratory AnalystsQuartiles and Box Plots - Data Science Discovery
Read on University of Illinois →
[3]SixSigma.usStatistical Software DevelopersBox and Whisker Plots: Understanding, Creating, and Interpreting Data Visualization
Read on SixSigma.us →
[4]CDCExploratory AnalystsBox-and-Whiskers Plot
Read on CDC →
[5]PlotNerdData Visualization CriticsHow to Read a Box Plot: Q1, Median, Whiskers, Outliers
Read on PlotNerd →
[6]storytelling with dataData Visualization Criticswhat is a boxplot?
Read on storytelling with data →
[7]Factlen Editorial TeamExploratory AnalystsSynthesis by Factlen editorial team
Read on Factlen Editorial Team →
More in Data & Analysis
See all →Data Visualization
The Square Root Transformation: Why Bubble Chart Radii Must Scale to the Square Root of the Data Value
7 sources
Data Visualization
Why Line Chart Aspect Ratios Distort Volatility and How Banking to 45 Degrees Works
7 sources
Data Geometry
The Geometric Flaw of Radar Charts: How Axis Ordering Distorts Area and Misleads Multi-Metric Comparisons
5 sources
Data Visualization
Sankey Diagrams Use Proportional Link Widths to Track Mass and Energy Conservation
7 sources
Comments
Every angle. Every day.
Get Data & Analysis stories with full source coverage and perspective breakdowns, free every day.




