Box Plot Calculator
Print PageA Box Plot Calculator (also known as a Box and Whisker Plot Calculator, Five-Number Summary Utility, IQR Outlier Detector, or Quartile Distribution Analyzer) computes the Minimum (non-outlier), First Quartile (Q1 / 25th percentile), Median (Q2 / 50th percentile), Third Quartile (Q3 / 75th percentile), Maximum (non-outlier), Interquartile Range (IQR = Q3 - Q1), and 1.5*IQR outlier fence boundaries for any numerical dataset.
Invented by legendary statistician John Tukey, a box plot displays dataset symmetry, skewness, dispersion, and statistical outliers at a single glance without making restrictive assumptions about underlying normal distributions.
Our free online Box Plot Calculator provides instant calculations across all Five-Number Summary parameters:
- First Quartile (Q1 / 25th Percentile): The median of the lower half of the ordered dataset.
- Median (Q2 / 50th Percentile): The middle value dividing the dataset into equal upper and lower halves.
- Third Quartile (Q3 / 75th Percentile): The median of the upper half of the ordered dataset.
- Interquartile Range (IQR):
IQR = Q3 - Q1(Represents the central 50% spread of data). - Mild Outlier Fences (1.5 · IQR Rule): Lower Fence =
Q1 - 1.5 · IQR; Upper Fence =Q3 + 1.5 · IQR. - Extreme Outlier Fences (3.0 · IQR Rule): Lower Extreme =
Q1 - 3.0 · IQR; Upper Extreme =Q3 + 3.0 · IQR.
Master Five-Number Summary & Outlier Reference Table
The table below displays the exact mathematical definitions, quartile formulas, sample values for an employee salary dataset [12, 15, 18, 20, 22, 25, 28, 30, 45], and outlier status:
| Box Plot Metric | Mathematical Definition & Formula | Calculated Value (Sample Dataset) | Graphical Whisker Placement |
|---|---|---|---|
| Minimum Whisker (Non-Outlier) | Lowest data value ≥ Lower Fence | 12.00 | End of lower left whisker line |
| First Quartile (Q1) | 25th Percentile (Lower Half Median) | 16.50 | Left edge of central box |
| Median (Q2) | 50th Percentile (Middle Data Value) | 22.00 | Vertical line inside central box |
| Third Quartile (Q3) | 75th Percentile (Upper Half Median) | 29.00 | Right edge of central box |
| Interquartile Range (IQR) | IQR = Q3 – Q1 = 29.00 – 16.50 | 12.50 | Total width of central box |
| Lower Outlier Fence (Mild) | Q1 – 1.5 · IQR = 16.50 – 18.75 | -2.25 | Theoretical lower cutoff limit |
| Upper Outlier Fence (Mild) | Q3 + 1.5 · IQR = 29.00 + 18.75 | 47.75 | Theoretical upper cutoff limit |
| Maximum Whisker (Non-Outlier) | Highest data value ≤ Upper Fence | 45.00 | End of upper right whisker line |
Step-by-Step Outlier Detection Calculation (Exam Scores Dataset)
To compute the Five-Number Summary and check for outliers in an exam dataset of n = 10 students: [52, 68, 70, 72, 75, 78, 82, 85, 88, 140]:
Step 1 (Order Dataset & Find Median Q2): Ordered 10 values. Middle values are 75 and 78 &implies; Q2 = (75 + 78) ÷ 2 = 76.50
Step 2 (Find First Quartile Q1): Lower half is [52, 68, 70, 72, 75]. Median of lower half &implies; Q1 = 70.00
Step 3 (Find Third Quartile Q3): Upper half is [78, 82, 85, 88, 140]. Median of upper half &implies; Q3 = 85.00
Step 4 (Calculate IQR): IQR = Q3 - Q1 = 85.00 - 70.00 = 15.00
Step 5 (Compute Upper Outlier Fence): Upper Fence = Q3 + 1.5 · IQR = 85.00 + (1.5 · 15.00) = 85.00 + 22.50 = 107.50
Step 6 (Identify Outlier Points): The score 140 exceeds 107.50 &implies; 140 is an OUTLIER! The upper whisker ends at 88.00.
Thus, the dataset has a Five-Number Summary of [52.00, 70.00, 76.50, 85.00, 88.00] with one severe outlier plotted at 140.00.
Data Plot Comparison: Box Plot vs. Histogram vs. Scatter Plot
Below is a comparative reference chart detailing when to use a Box Plot versus other statistical graphics:
| Graphic Chart Type | Primary Visual Strength | Outlier Detection Ability | Best Sample Size (n) |
|---|---|---|---|
| Box Plot (Box & Whisker) | Displays 5-number summary & side-by-side group comparisons. | EXCELLENT (Explicitly plots outlier dots) | Moderate to Large (n ≥ 10) |
| Histogram | Shows modal peaks, distribution shape & skewness details. | Moderate (Isolated distant bins) | Large (n ≥ 30) |
| Dot Plot | Preserves every individual raw data point. | Good for small samples | Small (n < 50) |
History & Mathematics: 1977 John W. Tukey & EDA
1977 John W. Tukey & Exploratory Data Analysis
In 1977, Princeton professor and mathematician John W. Tukey introduced the modern Box and Whisker Plot in his landmark textbook Exploratory Data Analysis (EDA). Tukey popularized resistant visual statistics that remained robust against extreme data contamination.
Popular direct tools:
Frequently Asked Questions (FAQ)
What is the Five-Number Summary?
The Five-Number Summary consists of the Minimum (non-outlier), First Quartile (Q1), Median (Q2), Third Quartile (Q3), and Maximum (non-outlier).
How are outliers calculated in a Box Plot?
Outliers are points falling below the lower fence Q1 - 1.5 · IQR or above the upper fence Q3 + 1.5 · IQR.
What is the difference between Q1, Q2, and Q3?
Q1 is the 25th percentile, Q2 is the median (50th percentile), and Q3 is the 75th percentile.