Outlier Detection Calculator
Detect outliers using IQR bounds, z-score bounds, and modified z-score methods. Determine whether a data point is an outlier using configurable thresholds.
About this calculator
This calculator runs a single Data Value through three independent outlier tests, each built on a different assumption about your data's distribution. The IQR test compares Data Value against fences built from Q1 and Q3: IQR Lower Bound = Q1 − Threshold × IQR and IQR Upper Bound = Q3 + Threshold × IQR (lines 12-13), so those two bounds respond only to Q1, Q3, and the Threshold Multiplier — Data Value, Mean, and Standard Deviation never enter their formulas at all. The Z-Score test instead measures how many standard deviations Data Value sits from Mean (line 16) and is completely unaffected by Q1 or Q3.
The Modified Z-Score test approximates the median with the Mean input, but for the denominator it does not approximate the Median Absolute Deviation at all — mad = iqr * 0.7413 (line 22) is the standard IQR-to-standard-deviation conversion (for a normal distribution IQR ≈ 1.349σ, so IQR × 0.7413 ≈ σ), not an IQR-to-MAD one; a genuine MAD approximation from IQR would instead be roughly IQR × 0.5. Because the test effectively divides by an estimated σ rather than the true MAD, the reported Modified Z-Score runs about 1.48x smaller than a textbook Modified Z-Score would against the same fixed 3.5 cutoff (line 24) — and that cutoff is hard-coded, so the Threshold Multiplier field has zero effect on this third test no matter what you set it to. Because all three summary statistics are entered by hand rather than derived from a raw dataset, this calculator cannot detect whether your Mean, Q1, and Q3 are mutually inconsistent — for example a Mean sitting outside the Q1–Q3 range — it will still run all three tests on whatever numbers you provide.
Inputs
Results
IQR Outlier?
No
Z-Score Outlier?
Yes
How to Use This Calculator
- Enter the dataset values or summary statistics (mean and standard deviation).
- Set the Z-score threshold (typically 2.5-3.5) or IQR multiplier (typically 1.5).
- Review the number and percentage of detected outliers.
- Investigate outliers to determine if they are data errors or genuine extreme events.
- Decide whether to remove, cap, or retain outliers based on your analysis goals.
What each input means
- Data Value
- The data point you want to test for outlier status.
- Q1 (25th Percentile)
- The first quartile of your dataset — 25% of values fall below this.
- Q3 (75th Percentile)
- The third quartile of your dataset — 75% of values fall below this.
- Mean
- The arithmetic mean of your dataset for z-score calculations.
- Standard Deviation
- The standard deviation of your dataset.
- Threshold Multiplier
- Multiplier for IQR fences and z-score cutoff. Standard is 1.5 for IQR (mild outliers) or 3 for extreme outliers.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersData Value = 100, Q1 (25th Percentile) = 25, Q3 (75th Percentile) = 75, Mean = 50 = 6 input(s) provided
- Calculate IQR Outlier?No = No
- Calculate Z-Score Outlier?Yes = Yes
- Calculate Modified Z Outlier?No = No
- Calculate IQR Lower BoundIQR Lower Bound-50 = -50
Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Does the Threshold Multiplier affect the Modified Z Outlier result?
No. isModifiedOutlier compares the Modified Z-Score against a fixed cutoff of 3.5 (line 24), the standard statistical convention, regardless of what you set the Threshold Multiplier to — only the IQR fences and the Z-Score outlier test actually read that field.
Why doesn't Data Value affect the IQR Lower and Upper Bounds?
IQR Lower and Upper Bound are built entirely from Q1, Q3, and Threshold Multiplier (lines 12-13) — Data Value is only compared against those bounds afterward to decide isIqrOutlier, it never appears inside the formulas that compute the bounds themselves.
What does the Modified Z-Score use in place of the median?
It substitutes the Mean input for the true median. For the spread term, it does not approximate the Median Absolute Deviation at all — mad = iqr * 0.7413 (line 22) is the standard IQR-to-standard-deviation conversion (for a normal distribution IQR ≈ 1.349σ, so IQR × 0.7413 ≈ σ), not an IQR-to-MAD one; a genuine MAD approximation from IQR would instead be roughly IQR × 0.5. Because the calculator effectively divides by an estimated σ rather than the true MAD, its reported "Modified Z-Score" runs about 1.48x smaller than a textbook Modified Z-Score would against the same fixed 3.5 cutoff.
Which input moves the Z-Score the most?
Data Value has roughly twice the effect of Mean or Standard Deviation on the Z-Score at the calculator's defaults, since Z-Score is a direct linear function of Data Value (line 16) while Mean and Standard Deviation only shift or rescale the result.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Feature Scaling Calculator
Scale raw feature values using min-max normalization, z-score standardization, robust scaling, and max-abs normalization for machine learning preprocessing.
Data ScienceConfusion Matrix Analyzer
Analyze classification model performance from confusion matrix values. Calculate precision, recall, F1 score, MCC, accuracy, specificity, and more.
Data ScienceA/B Test Calculator
Determine statistical significance of A/B test results. Calculate z-score, p-value, conversion lift, and whether your variant beats the control at your chosen confidence level.
More in Math & Statistics.