Example 1 — No outliers (Type 7)
Data: \(1,3,3,6,7,8,9\) (\(n=7\)). \(Q_2=6\). \(Q_1=Q(0.25)=\frac{3+3}{2}=3\). \(Q_3=Q(0.75)=\frac{7+8}{2}=7.5\). \(\mathrm{IQR}=4.5\). Fences: \(-3.75\) and \(14.25\). Whiskers: \(1\) and \(9\). No outliers.
Paste a list of numbers to compute the five-number summary and draw a box plot.
Quartiles use the Type-7 interpolation (like R): p = 1 + (n−1)·q.
Q1 − k·IQR, Q3 + k·IQR.Q1 to Q3 with a median line. Whiskers reach to data within fences.
p = 1 + (n−1)·q for q ∈ {0.25, 0.5, 0.75}.
A Box Plot Calculator is a statistics tool that summarizes a dataset using five-number summary statistics: minimum, first quartile (Q1), median (Q2), third quartile (Q3), and maximum (often of non-outlier values). It visualizes spread and skewness, highlights potential outliers, and compares groups at a glance. By entering raw numbers (integers, decimals, fractions), the calculator sorts the data, computes quartiles, derives the interquartile range (IQR), and determines whisker endpoints and outlier points. Because box plots are nonparametric, they are robust to skewed data and make no distribution assumptions. All formulas are written in LaTeX and render responsively with MathJax or math.js.
Let the sorted sample be \(x_{(1)} \le \cdots \le x_{(n)}\). The median (Q2) is the middle value (or average of the two middles). Quartiles can be defined in several consistent ways; by default, this calculator uses the widely adopted “Type 7” quantile (R/NumPy default) with linear interpolation, and can also show Tukey’s hinges for teaching purposes. The interquartile range is \( \mathrm{IQR} = Q_3 - Q_1 \). Whiskers typically extend to the most extreme non-outlier values, where outliers are defined with the 1.5×IQR rule. Extreme outliers may be flagged with 3×IQR.
Median (Q2): \[ Q_2 = \begin{cases} x_{\left(\frac{n+1}{2}\right)}, & n \text{ odd}\\[4pt] \dfrac{x_{\left(\frac{n}{2}\right)} + x_{\left(\frac{n}{2}+1\right)}}{2}, & n \text{ even} \end{cases} \]
Type 7 quantile (default) for \(p\in[0,1]\): \[ h = 1 + (n-1)p,\quad k=\lfloor h \rfloor,\quad \gamma = h-k,\quad Q(p) = (1-\gamma)\,x_{(k)} + \gamma\,x_{(k+1)}. \]
Interquartile range: \[ \mathrm{IQR} = Q_3 - Q_1. \]
Outlier fences (Tukey): \[ \text{Lower Fence } = Q_1 - 1.5\,\mathrm{IQR}, \qquad \text{Upper Fence } = Q_3 + 1.5\,\mathrm{IQR}. \]
Whiskers: \[ \text{Lower whisker} = \min\{x_i \mid x_i \ge \text{Lower Fence}\},\quad \text{Upper whisker} = \max\{x_i \mid x_i \le \text{Upper Fence}\}. \]
Data: \(1,3,3,6,7,8,9\) (\(n=7\)). \(Q_2=6\). \(Q_1=Q(0.25)=\frac{3+3}{2}=3\). \(Q_3=Q(0.75)=\frac{7+8}{2}=7.5\). \(\mathrm{IQR}=4.5\). Fences: \(-3.75\) and \(14.25\). Whiskers: \(1\) and \(9\). No outliers.
Data: \(10,12,12,13,13,14,50\). \(Q_2=13\). \(Q_1=12\). \(Q_3=13.5\). \(\mathrm{IQR}=1.5\). Fences: \(9.75\) and \(15.75\). Whiskers: \(10\) and \(14\). Outlier: \(50\).
Data: \(2,4,6,8,10,12\) (\(n=6\)). \(Q_2=\frac{6+8}{2}=7\). \(Q_1=4.5\). \(Q_3=9.5\). \(\mathrm{IQR}=5\). Fences: \(-3\) and \(17\). Whiskers: \(2\) and \(12\). No outliers.
To visualize center, spread, skewness, and potential outliers of a dataset via the five-number summary.
Type 7 (default) with linear interpolation; you can also display Tukey’s hinges for comparison in teaching contexts.
Lines from the box to the most extreme non-outlier values, bounded by the 1.5×IQR fences.
Values below \(Q_1-1.5\,\mathrm{IQR}\) or above \(Q_3+1.5\,\mathrm{IQR}\). Extreme outliers may use 3×IQR.
Yes. Duplicates are valid; interpolation still yields correct quartiles.
Yes—enter separate datasets; the tool computes summaries for side-by-side comparison.
They’re ignored or flagged; only numeric values are used in calculations.
Quartiles are specific percentiles: \(Q_1=P_{25}, Q_2=P_{50}, Q_3=P_{75}\); computed using the chosen quantile method.
Use 3×IQR to flag extreme outliers in heavy-tailed distributions; 1.5×IQR is the standard default.