The standard method for identifying outliers uses the IQR to build two boundaries called fences:
Lower fence=Q1−1.5×IQR
Upper fence=Q3+1.5×IQR
Any data value that falls below the lower fence or above the upper fence is classified as an outlier. Values that land inside the fences, including those exactly on a boundary, are not outliers.
Why the multiplier 1.5? Statistician John Tukey chose it because it strikes a practical balance: strict enough to catch genuinely extreme values, yet lenient enough to avoid flagging ordinary ones. Think of it as a widely accepted convention, much like calling a body temperature above 100.4 °F a fever. The number is not derived from a proof; it simply works well across a wide variety of real datasets.
Let's walk through a full example. A small online store records shipping times (in days) for its last 12 orders:
2,3,3,4,4,5,5,6,6,7,7,18
Most packages arrived within a week, but one took 18 days. Let's determine whether that value qualifies as an outlier.
Step 1 — Find Q1, Q3, and IQR. With 12 values, the median is the average of the 6th and 7th: (5+5)/2=5. The lower half is 2,3,3,4,4,5, so Q1=(3+4)/2=3.5. The upper half is 5,6,6,7,7,18, so Q3=(6+7)/2=6.5. That gives us IQR=6.5−3.5=3.
Step 2 — Compute the fences.
Lower fence=3.5−1.5×3=3.5−4.5=−1
Upper fence=6.5+1.5×3=6.5+4.5=11
Step 3 — Compare every value to the fences. All values from 2 through 7 fall between −1 and 11, so none of them are outliers. The value 18, however, sits well above the upper fence of 11. It is an outlier.
Notice that the lower fence came out to −1. Since shipping times cannot be negative, a negative lower fence simply tells us that no value on the low end could possibly qualify as an outlier in this dataset.
This is a good moment to revisit the box plot convention. In the previous lesson, we drew the whiskers all the way out to the minimum and maximum. Once we can identify outliers, it is common to switch to the modified box plot: outliers are drawn as individual dots beyond the whiskers, and the whiskers stop at the most extreme values that fall inside the fences. In the shipping-time plot above, the right whisker ends at 7 (the largest non-outlier), and the point at 18 appears as a lone dot to the right. From here on, whenever you see a dot floating beyond a whisker, remember that the whisker endpoints no longer mark the true minimum or maximum — they mark the most extreme non-outlier values.