Generate a five‑number summary (minimum, Q1, median, Q3, maximum), detect outliers using the IQR method, and visualize your data as an interactive box plot.
A box and whisker plot — often called a box plot — is a standardized way of displaying the distribution of a data set based on its five‑number summary: the minimum, first quartile (Q1), median (Q2), third quartile (Q3), and maximum. The “box” shows the interquartile range (IQR) where the middle 50% of the data lies, while the “whiskers” extend to the minimum and maximum values within 1.5 times the IQR from the quartiles. Points beyond the whiskers are flagged as outliers.
Five‑Number Summary: Min < Q1 < Median < Q3 < Max
IQR = Q3 − Q1 · Lower Fence = Q1 − 1.5 · IQR · Upper Fence = Q3 + 1.5 · IQR
This calculator follows the Tukey method (also known as the “hinge” method) for quartile calculation, which is the most widely used approach in exploratory data analysis. For odd-sized datasets, the overall median is excluded from both the lower and upper halves when computing Q1 and Q3, aligning with standard statistical practice (e.g., R's boxplot()). After parsing your input, it:
A high school teacher collects final exam scores from 30 students. By generating a box plot, the teacher can quickly see that the median score is 82, the middle 50% of students scored between 74 and 88, and two students scored below 60 — clear outliers that may indicate the need for additional support. The box plot also reveals a slight left‑skew, meaning more students scored above the median than below it.
A factory measures the diameter of 200 ball bearings each day. The box plot of daily measurements helps the quality engineer monitor the process mean (median) and variability (IQR). If the whiskers extend beyond the control limits or if outliers appear frequently, the engineer can investigate the production line for defects before they cause a batch rejection.
| Method | Q1 Calculation (n=odd) | Q1 Calculation (n=even) | Common Use |
|---|---|---|---|
| Tukey (Hinge) | Median of lower half (exclude overall median) | Median of lower half | Exploratory analysis, box plots |
| Mendenhall & Sincich | (n+1)/4 th observation | (n+1)/4 th observation | Introductory statistics |
| Excel QUARTILE.INC | Interpolation between observations | Interpolation between observations | Business spreadsheets |
| Hyndman & Fan (Type 7) | Linear interpolation of percentiles | Linear interpolation of percentiles | R, Python (numpy) |
This calculator uses the Tukey (hinge) method, which is the standard for box plots and is consistent with most statistical software.