ADVERTISEMENT
728 × 90 Responsive Top Leaderboard Banner

Outlier, IQR & Box Plot Calculator

Paste numbers from Excel, Google Sheets, or CSV to compute the Five-Number Summary, Tukey Inner (1.5 × IQR) & Outer (3.0 × IQR) Fences, Z-Score anomalies, Cleaned Dataset stats, and an interactive SVG Box-and-Whisker Plot.

Presets:
• • •
12 valid numbers detected
ADVERTISEMENT
Responsive In-Content Banner (728 × 90 or 336 × 280)

How Outlier Detection Works: Tukey's IQR Fences vs. Z-Scores

An outlier is an observation lying unusually far from the bulk of a distribution. Because single extreme values heavily distort parametric statistics like the arithmetic mean (x̄) and sample standard deviation (s), statistician John Tukey introduced non-parametric IQR fences built solely from quartiles so that up to 25% of observations at either tail cannot corrupt the threshold.

Tukey Inner & Outer Fences

Distribution-free boundary using Q1, Q3, and IQR

LFin = Q1 − 1.5·IQR  |  UFin = Q3 + 1.5·IQR

Values outside [Q1 − 1.5·IQR, Q3 + 1.5·IQR] are Mild Outliers (drawn as individual dots beyond box-plot whiskers). Replacing 1.5 with 3.0 creates the Outer Fences that flag Extreme Outliers.

Parametric Z-Score Distance

Standard deviations away from the sample mean

Z = x − x̄s

Counts how many standard deviations s a data point falls above or below the mean x̄. Under an approximately Normal distribution, roughly 95.4% of data lies within |Z| ≤ 2 and 99.7% within |Z| ≤ 3.

Reading a Box-and-Whisker Plot

IQR Box
The Central 50% (Q1 to Q3): The shaded cobalt rectangle spans from the 25th percentile (Q1) to the 75th percentile (Q3), containing the middle half of all observations. The solid line inside marks the Median (Q2), and the diamond shows the Mean (x̄).
Whiskers
Adjusted Non-Outlier Reach: Left and right whiskers extend from Q1 down to the smallest observation ≥ Lower Inner Fence and from Q3 up to the largest observation ≤ Upper Inner Fence.
Outliers
Plotted Anomalies: Points outside inner fences are plotted individually as amber circles (Mild, between 1.5× and 3.0× IQR) or red stars (Extreme, beyond 3.0× IQR).

Comparison: Tukey IQR Fences vs. Z-Score Outlier Detection

Choose the detection threshold that matches your sample size, distribution symmetry, and domain risk tolerance:

Method / Threshold Mathematical Boundary Normal Equivalent Best Used For
Tukey Inner Fence Q1 − 1.5·IQR to Q3 + 1.5·IQR ~|Z| > 2.7 (~0.7% tails) Skewed data, general exploratory box plots, robustness against masking
Tukey Outer Fence Q1 − 3.0·IQR to Q3 + 3.0·IQR ~|Z| > 4.7 (rare extremes) Isolating sensor failures, data-entry typos, or critical extreme spikes
Moderate Z-Score |x − x̄| / s > 2.0 Top & bottom ~4.55% tails Large bell-shaped quality audits needing early warning signals
Strict Z-Score |x − x̄| / s > 2.5 Top & bottom ~1.24% tails Balanced symmetric distributions (medium-to-large sample sizes)
Three-Sigma Rule |x − x̄| / s > 3.0 Top & bottom ~0.27% tails Six Sigma process control & strict Gaussian anomaly detection (n ≥ 30)

Frequently Asked Questions

Proposed by John Tukey, the 1.5 × IQR rule multiplies the Interquartile Range (IQR = Q3 − Q1) by 1.5 to build a lower inner fence (Q1 − 1.5 × IQR) and upper inner fence (Q3 + 1.5 × IQR). Any observation outside these bounds is flagged as a potential outlier.

Mild outliers lie outside the 1.5 × IQR inner fences yet stay within the 3.0 × IQR outer fences. Extreme outliers exceed the 3.0 × IQR outer fences and almost always deserve immediate review for unit mismatches, missing decimals, or rare systemic shocks.

This phenomenon is called masking: because one huge observation sharply inflates the sample mean x̄ and standard deviation s, dividing by that inflated s shrinks every point's Z-score (and mathematically caps max |Z| below √(n − 1)). Quartiles and IQR do not suffer from masking unless more than 25% of observations at a tail are corrupted.

When the dataset size n is even, both methods split cleanly into two equal halves and produce identical Q1 and Q3. When n is odd, Exclusive / Tukey Hinges excludes the middle median before computing the lower and upper halves' medians (the textbook convention for box plots), whereas Inclusive keeps the middle value inside both halves.

No—never. Up to 10,000 numeric inputs are parsed, sorted, checked against Tukey fences and Z-scores, and rendered into an SVG box plot 100% locally in your browser with zero data transmission.

Explore Our Free Calculator Series

Fast, privacy-first math & statistical utilities running 100% in your browser.

ADVERTISEMENT
Responsive Bottom Banner (728 × 90 or Auto)