Box and Whisker Plot Maker
Create box and whisker plots online. Enter data, compute quartiles, detect outliers with Tukey's fences, and export publication-ready PNG charts.
About
A box-and-whisker plot compresses a dataset into five statistics: minimum, first quartile (Q1), median (Q2), third quartile (Q3), and maximum. Outliers are flagged using Tukeyโs fences at Q1 โ 1.5โ IQR and Q3 + 1.5โ IQR. Misidentifying outliers distorts regression models, inflates variance estimates, and corrupts hypothesis tests. This tool computes interpolated quartiles consistent with Excelโs QUARTILE.INC function and renders publication-grade plots on an HTML Canvas. It supports up to 10 simultaneous datasets for direct visual comparison. Note: quartile methods vary across software (R alone offers 9 types). This tool uses the inclusive linear-interpolation method (Type 7), which is the most widely adopted default.
Formulas
The interquartile range is the core measure of spread in a box plot:
Tukeyโs fences define outlier boundaries:
Whiskers extend to the most extreme data points within fences (not the fence values themselves). Any observation xi where xi < FL or xi > FU is plotted individually as an outlier.
Interpolated quartile at position p (where p = 0.25 or 0.75):
Where x is the sorted dataset of n observations, k is the fractional index, and floor truncates to the integer part. This is the Type 7 interpolation method used by Excel, Python (numpy default), and most statistical software.
Reference Data
| Statistic | Symbol | Definition | Sensitivity to Outliers |
|---|---|---|---|
| Minimum | xmin | Smallest observed value (or whisker lower bound) | Extreme |
| First Quartile | Q1 | 25th percentile - splits lowest 25% of data | Low |
| Median | Q2 | 50th percentile - middle value of sorted data | Very Low |
| Third Quartile | Q3 | 75th percentile - splits highest 25% of data | Low |
| Maximum | xmax | Largest observed value (or whisker upper bound) | Extreme |
| Interquartile Range | IQR | Q3 โ Q1 | Very Low |
| Lower Fence | FL | Q1 โ 1.5 ร IQR | Low |
| Upper Fence | FU | Q3 + 1.5 ร IQR | Low |
| Mean | Arithmetic average of all values | High | |
| Standard Deviation | ฯ | Square root of variance (spread measure) | High |
| Mild Outlier | - | Between 1.5รIQR and 3รIQR from box | - |
| Extreme Outlier | - | Beyond 3รIQR from box | - |
| Skewness Indicator | - | If median closer to Q1 โ right-skewed; closer to Q3 โ left-skewed | Moderate |
| Range | R | xmax โ xmin | Extreme |
| Sample Size | n | Count of observations in dataset | None |