Outlier Calculator

Detect outliers using IQR/Tukey fences, Z-score, modified Z-score (MAD), Grubbs, and Dixon Q tests. Visual outlier zones, method comparison, and full data analysis.

Minimum 4 values
1.5 for mild, 3 for extreme
Outliers Found
1
Of 9 total values
Outlier Values
90.00
IQR method
IQR Outliers
1
Fences: 17.50 to 33.50
Z-Score Outliers
0
|z| > 3
Modified Z Outliers
1
MAD-based, |z*| > 3
Mean
32.2222
Sensitive to outliers
Median
25.0000
Robust to outliers
Std. Deviation
21.7473
Inflated by outliers

Outlier Zones

LF: 17.5
UF: 33.5

Method Comparison

MethodOutlier CountThresholdRobustness
IQR (Tukey)1 (0 mild, 1 extreme)[17.50, 33.50]High (25% bdp)
Z-score0|z| > 3Low (0% bdp)
Modified Z (MAD)1|z*| > 3Very high (50% bdp)
Grubbs1G = 2.657 vs 1.831For single outlier
Dixon Q (min/max) MaxQ_lo=0.015, Q_hi=0.912 vs 0.437Small samples (n≤10)

Full Data Analysis

ValueZ-scoreMod ZIQR?Z?Mod Z?
22.0000-0.470-1.012
23.0000-0.424-0.674
24.0000-0.378-0.337
25.0000-0.3320.000
25.0000-0.3320.000
26.0000-0.2860.337
27.0000-0.2400.674
28.0000-0.1941.012
90.00002.65721.921ExtremeYes
Planning notes, formulas, and examples

About the Outlier Calculator

The outlier calculator detects unusual values in a dataset using several common rules: IQR/Tukey fences, classical Z-score, modified Z-score based on MAD, Grubbs test, and Dixon Q test.

It is built to show the difference between robust rules, which resist extreme values, and classical rules, which are more sensitive but often rely on stronger distribution assumptions. The comparison table and visual fence map make it easier to see why one method flags a point while another does not.

That is useful when you want a practical outlier screen rather than a single hard-coded threshold.

When This Page Helps

Outlier detection is rarely one-size-fits-all. A point that looks extreme under a Z-score may be ordinary under a robust fence rule, and a method designed for one suspected outlier can behave badly when several extremes are present.

Showing the main methods together makes it easier to pick a rule that matches the shape of the data instead of forcing every dataset through the same filter.

How to Use the Inputs

  1. Enter numeric data separated by commas or spaces (minimum 4 values).
  2. Select the primary outlier detection method (IQR recommended for most cases).
  3. Adjust the fence multiplier (IQR) or Z threshold as needed.
  4. Check the main output for the number and values of detected outliers.
  5. Review the outlier zone visualization to see fences and flagged points.
  6. Compare all five methods in the method comparison table.
  7. Examine the full data table for per-value Z-scores and detection flags.
Formula used
IQR method: outlier if x < Q1 − k × IQR or x > Q3 + k × IQR (k = 1.5 mild, 3 extreme). Z-score: outlier if |z| = |(x − mean) / SD| > threshold. Modified Z: outlier if |x − median| / (1.4826 × MAD) > threshold. Grubbs: G = max|xᵢ − mean| / SD vs critical value. Dixon Q: (x₂ − x₁) / (xₙ − x₁) vs critical value.

Example Calculation

Result: 1 outlier detected: 90

Q1 = 23.5, Q3 = 27.5, IQR = 4. Lower fence = 23.5 − 6 = 17.5, upper fence = 27.5 + 6 = 33.5. Value 90 exceeds 33.5 — it's an extreme outlier. All three methods (IQR, Z-score, modified Z) agree: 90 is an outlier.

Tips & Best Practices

  • Use IQR/Tukey for general outlier screening — it's robust and works for any distribution shape.
  • Modified Z-score (MAD-based) is the most robust method — it resists masking where multiple outliers hide each other.
  • Classical Z-score can fail when outliers inflate the mean and SD, making extreme values look "normal."
  • Grubbs test is designed for testing a single suspected outlier in approximately normal data.
  • Dixon Q test works best for very small samples (n ≤ 10) where other methods lack power.
  • Always investigate outliers — they may be errors (remove) or genuine extreme values (report as-is).

Outlier Detection in Practice

Real-world outlier analysis requires judgment, not just algorithms. A temperature sensor reading of 1000°F is almost certainly an error. A stock that rises 500% in a day may be a genuine event. The calculator gives you the statistical evidence; you provide the domain knowledge to interpret it.

Robust vs Classical Methods

Classical methods (mean-based Z-score, Grubbs) assume the data is approximately normal and that outliers are rare, isolated events. When multiple outliers exist, they inflate the mean and SD, causing "masking" — none are flagged. Robust methods (IQR, MAD-based) use the median and interquartile range, which are resistant to up to 25-50% contamination. For contaminated data, always prefer robust methods.

Beyond Univariate Outliers

This calculator handles univariate (single variable) outliers. In multivariate data, a value can be an outlier in the relationship between variables even if it's normal in each variable individually. Mahalanobis distance, isolation forests, and DBSCAN are multivariate outlier methods, but univariate screening remains the essential first step.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • For general use, the IQR/Tukey method with k = 1.5 is the standard choice. It's robust, distribution-free, and works well for most data. If you suspect multiple outliers that might be masking each other, use the modified Z-score (MAD-based) method. For formal hypothesis testing of a single outlier in normal data, use Grubbs test. For tiny samples (n ≤ 10), Dixon Q test is appropriate.