Outlier Calculator
Flag values beyond the Tukey fences, and see how far outside each one falls.
The 1.5 × IQR rule
The fences are built from the quartiles, which is what makes the rule work. A value far out in the tail has no influence on where the quartiles sit, so it cannot widen the net that is meant to catch it. Rules based on the mean and standard deviation suffer exactly that problem — one large outlier inflates the standard deviation and can hide itself.
Where 1.5 comes from
It is a convention chosen by Tukey for convenience, not a result derived from theory. Its usual justification is empirical: for data that really is normally distributed, the 1.5 fences sit at roughly 2.7 standard deviations from the mean, so about 0.7% of observations get flagged by chance. That is a workable false-positive rate — rare enough to be worth looking at, common enough not to miss anything.
Using 3 × IQR instead marks what Tukey called extreme outliers, and flags far less. The multiplier is a dial, and this calculator exposes it rather than hiding it.
What to do with a flagged value
Flagging is a prompt to look, not a verdict. In order of what to check:
- Is it a recording error? A misplaced decimal, a unit mix-up, a sentinel like 999 or −1 standing in for "missing". These you fix or remove, and you say that you did.
- Is it from a different population? A commercial account in a data set of household accounts is not an outlier so much as a case that does not belong to the question being asked.
- Is the distribution simply skewed? Incomes, waiting times, file sizes and insurance claims produce flagged values routinely, and every one of them is real. Here the rule is telling you about the shape of the data, not about a fault in it.
- Is it the most interesting point you have? Fraud, equipment failure and genuine discoveries all arrive looking like outliers.
Removing values because a rule flagged them, with no reason beyond the flag, biases the result and understates the spread. If you exclude a point, record which one and why.
Other ways to flag a value
The IQR rule is not the only option, and for symmetric data a z-score is a common alternative: standardise each value and flag anything beyond about ±3. It uses every observation rather than four positions, which makes it more sensitive when the data is normal — and much less trustworthy when it is not, because the outlier is contributing to the standard deviation being used to judge it.
As a rough guide: use the IQR rule when the data is skewed or you do not know its shape; use z-scores when you have reason to believe it is roughly normal and you are not looking at a handful of observations.
Worked examples
A single obvious outlier
Sorted: 12, 13, 14, 15, 16, 17, 18, 92. Q1 = 13.5, Q3 = 17.5, IQR = 4.
- Lower fence = 13.5 − 1.5 × 4 = 7.5
- Upper fence = 17.5 + 1.5 × 4 = 23.5
- 92 is 68.5 above the upper fence — flagged.
Switch to a 3 × IQR fence and the upper limit moves to 29.5. The 92 is still flagged, which marks it as an extreme outlier rather than a marginal one.
Nothing flagged, even though the range is wide
Q1 = 3.5, Q3 = 11, IQR = 7.5. The fences land at −7.75 and 22.25, and the largest value is 18.
The range here is 16 — twice the IQR — and still nothing is flagged, because the values are spread evenly rather than clustered with a straggler. A wide range on its own is not evidence of an outlier.
Questions
Can a value be an outlier on the low side?
Yes. The rule is symmetric: anything below Q1 − 1.5 × IQR is flagged the same way. This calculator reports low and high outliers separately.
What if the IQR is zero?
Then both fences collapse onto Q1 and Q3, and every value that differs at all gets flagged. That is arithmetically correct but rarely useful — an IQR of zero means half your data is a single repeated value, and a different summary will serve you better.
Should I use 1.5 or 3?
Start at 1.5, which is what almost every paper and textbook means by "outlier" unqualified. Move to 3 when you only care about severe cases, or when 1.5 is flagging so much that it stops being informative.
Method & sources
- The IQR-based outlier rule and the box-plot fence convention — NIST/SEMATECH e-Handbook of Statistical Methods