Outlier Calculator
Reviewed by CalcMulti Editorial Team·Last updated: ·← Statistics Hub
An outlier is a data point that lies far outside the typical range of the dataset — potentially due to measurement error, data entry mistakes, or genuinely extreme values. Identifying outliers is a critical first step in data analysis, as they can distort means, inflate standard deviations, and invalidate the assumptions of many statistical tests.
This calculator detects outliers using two standard methods: the IQR method (Tukey fences), which is robust and distribution-free, and the Z-score method, which works best for approximately normal data.
Formula
IQR fences: Q1 − 1.5×IQR and Q3 + 1.5×IQR | Z-score: z = (x − x̄) / s, outlier if |z| > 3
IQR Method vs Z-Score Method
| Property | IQR Method | Z-Score Method |
|---|---|---|
| Requires normality? | No — robust to any distribution | Best for approximately normal data |
| Outlier affects fences? | No — Q1/Q3 are robust to extremes | Yes — outliers inflate mean and SD |
| Threshold | 1.5×IQR (mild), 3×IQR (extreme) | |z| > 3 (or 2.5 for stricter) |
| Best for | Skewed data, non-normal distributions | Approximately normal datasets |
| Small samples? | More reliable for n < 30 | Unreliable for small n — use IQR |
| Result interpretation | Values outside Tukey fences | Values more than 3 SDs from mean |
Case Study: Lab Measurement Error
A lab measured enzyme activity (units/mL) for 25 samples: most values clustered between 40–80 units, but two values — 2.1 and 184.5 — appeared suspicious.
IQR method: Q1=48, Q3=72, IQR=24. Fences: [48−36, 72+36] = [12, 108]. Both 2.1 and 184.5 are beyond the fences. Z-score method: mean=65, SD=35. z(2.1)=−1.79 (not flagged by z-score!), z(184.5)=+3.41 (flagged). The z-score missed 2.1 because the extreme value 184.5 inflated the SD, making 2.1 appear less extreme.
This demonstrates why the IQR method is preferred: it correctly flagged both outliers. Lab records showed 2.1 was a pipetting error (wrong dilution) and 184.5 was a contaminated sample — both excluded from the final analysis.
Related Calculators
Full IQR, Q1, Q3, and fence calculation
Z-Score CalculatorZ-score for any value in a dataset
Five-Number Summary CalculatorBox plot values and fence overview
Skewness and Kurtosis CalculatorDistribution shape — check before removing outliers
Variance CalculatorSD is inflated by outliers — check both
Statistics HubAll statistics calculators & guides
Disclaimer
This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.