Outlier Calculator (IQR & Z-Score)

Flag unusual values with three methods side by side (IQR fences, z-scores and modified z-scores) and see how much the outliers move the mean and SD.

Separate values with commas, spaces or new lines.
1.5 flags outliers; 3 flags only extreme ones.
Fences
5.5 to 29.5
Q1 / Q3 (IQR)
14.5 / 20.5 (6)
IQR rule (1.5×) finds
45
Z-score > 3 finds
45
Modified z > 3.5 finds
45
Mean without outliers
17with them: 19.1538
SD without outliers
3.0748with them: 8.3051
Outliers (1.5 × IQR)451 of 13 values flagged
  • An outlier is a value worth checking, not automatically an error. Remove it only with a documented reason.

Show the work

  1. n = 13 is odd, so the median is the middle value x7 = 17 (it is left out of both halves)
  2. Lower half: 12, 14, 14, 15, 16, 16 → its median is Q1 = 14.5
  3. Upper half: 18, 19, 20, 21, 22, 45 → its median is Q3 = 20.5
  4. IQR = Q3 − Q1 = 20.5 − 14.5 = 6
  5. Lower fence = Q1 − 1.5 × IQR = 14.5 − 9 = 5.5; upper fence = Q3 + 1.5 × IQR = 20.5 + 9 = 29.5
  6. Outliers: 45
1020304050 Outlier 45Q1 14.5Median 17Q3 20.51222
Whiskers reach the most extreme values inside the 1.5 × IQR fences; circles mark outliers. × marks the mean.
Every value with its scores (✓ = flagged)
Valuez-scoreModified zIQR (1.5×)|z| > 3|M| > 3.5
12−0.8614−1.1242
14−0.6206−0.6745
14−0.6206−0.6745
15−0.5002−0.4497
16−0.3797−0.2248
16−0.3797−0.2248
17−0.25930
18−0.13890.2248
19−0.01850.4497
200.10190.6745
210.22230.8993
220.34271.1242
453.11216.2953✓✓✓

An outlier is a value that sits unusually far from the rest of the data. It might be a typo, a faulty sensor, a member of a different group, or a genuine rare event. This calculator flags outliers three ways: Tukey’s IQR fences, z-scores, and modified z-scores based on the median. It shows every value’s scores in a table, draws a box plot, and reports how the mean and standard deviation change when the flagged values are set aside.

How to use the outlier calculator

  1. Paste your data. At least three values are needed.
  2. Choose the method for the headline result: IQR fences, z-score, or modified z-score.
  3. Adjust the threshold if needed: the fence multiplier k (1.5 or 3), the z cutoff (often 2, 2.5 or 3), or the modified z cutoff (3.5 by default). For the IQR method you can also choose how quartiles are computed.
  4. Compare the methods on the tape, then scan the table to see each value’s z and modified z.

Outlier formulas

IQR fences (Tukey). With quartiles Q1 and Q3 and IQR = Q3 − Q1:

lower fence = Q1 − k × IQR  ·  upper fence = Q3 + k × IQR

Z-score. Using the mean x̄ and sample standard deviation s, flag values with |z| above the cutoff:

z = (x − x̄) ÷ s

Modified z-score (Iglewicz and Hoaglin). With the median x̃ and MAD = median(|x − x̃|), flag |M| > 3.5:

M = 0.6745 × (x − x̃) ÷ MAD

Worked example

Thirteen website response times, in seconds: 12, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 22, 45.

  1. IQR fences: Q1 = 14.5 and Q3 = 20.5, so IQR = 6. The fences are 14.5 − 9 = 5.5 and 20.5 + 9 = 29.5. The value 45 is outside.
  2. Z-score: the mean is 19.15 and s = 8.31, so 45 has z = (45 − 19.15) ÷ 8.31 = 3.11, just over 3.
  3. Modified z: the median is 17 and MAD = 3, so 45 scores 0.6745 × 28 ÷ 3 = 6.30, far beyond 3.5.

All three agree. Without 45, the mean drops from 19.15 to 17.00 and the SD from 8.31 to 3.07: one value nearly tripled the apparent spread.

Now add a second slow response of 47. The IQR and modified z methods flag both 45 and 47, but the z-score method flags neither: the two values pull the mean up to 21.14 and the SD up to 10.91, so 47 only reaches z = 2.37. This masking effect is why robust methods are preferred for screening.

Choosing and using a method

Robust versus classical

The IQR rule and the modified z-score are built from quartiles and medians, which ignore how extreme the tails are. They work for skewed data and are hard to fool. The z-score method is best when the data are roughly normal and you expect at most one outlier.

Skewed data

In right-skewed data such as incomes or reaction times, many legitimate large values will be flagged by any symmetric rule. Consider transforming the data (for example with logarithms) before screening, or judge outliers against the expected shape.

Report what you did

State the method, the cutoff, which values were flagged, and whether they were removed. The box plot follows the standard 1.5 × IQR convention regardless of the cutoff you choose. For quartiles under different conventions, see the quartile calculator, and for individual standardized scores, the z-score calculator.

Frequently asked questions

Which outlier method should I use?

For a quick, assumption-free screen, use the IQR rule; it relies on quartiles, so the outliers themselves cannot distort it. The modified z-score is similarly robust and gives each value a score. The ordinary z-score assumes roughly normal data and can miss outliers because extreme values inflate the standard deviation used to judge them.

Why does the z-score method sometimes find no outliers?

Two reasons. Outliers inflate the mean and standard deviation, which shrinks their own z-scores (masking). And in small samples no z-score can exceed (n − 1) ÷ √n; with 10 values that is 2.85, so a cutoff of 3 can never be reached.

What is the difference between 1.5 × IQR and 3 × IQR?

Tukey called values beyond 1.5 × IQR from the quartiles outside values and those beyond 3 × IQR far out. The 1.5 rule flags about 0.7% of values from normally distributed data; the 3 rule flags essentially none, so a hit is a strong signal.

Should I delete outliers?

Only with a reason. Check first for data-entry errors, measurement faults or values from a different population; correct or remove those and document it. Genuine extreme values belong in the data and may be the most interesting part. If unsure, report results with and without them.

What is the median absolute deviation (MAD)?

MAD is the median of the absolute distances from the median. Because it uses medians twice, a few wild values barely change it. Multiplying by 1.4826 turns it into an estimate of the standard deviation for normal data, which is where the 0.6745 constant in the modified z-score comes from.

Last reviewed October 2026 by the CalcFluent editorial team. How we check our calculators.