Mathwords logoReference LibraryMathwords

Outlier Rule (1.5 x IQR)

The Outlier Rule (1.5 × IQR) is a method for identifying outliers in a data set by calculating boundaries (called fences) at 1.5 times the interquartile range below the first quartile and above the third quartile. Any data point outside these boundaries is considered an outlier.

The 1.5 × IQR rule establishes lower and upper fences for a data set using the first quartile (Q1Q_1), the third quartile (Q3Q_3), and the interquartile range (IQR=Q3Q1\text{IQR} = Q_3 - Q_1). A data value xx is classified as an outlier if x<Q11.5×IQRx < Q_1 - 1.5 \times \text{IQR} or x>Q3+1.5×IQRx > Q_3 + 1.5 \times \text{IQR}. This rule is widely used in exploratory data analysis and is the basis for the whiskers in a standard box plot.

Key Formula

\text{Lower Fence} = Q_1 - 1.5 \times \text{IQR}$$ $$\text{Upper Fence} = Q_3 + 1.5 \times \text{IQR}
Where:
  • Q1Q_1 = the first quartile (25th percentile)
  • Q3Q_3 = the third quartile (75th percentile)
  • IQRIQR = the interquartile range, equal to Q₃ − Q₁

Worked Example

Problem: A class recorded the number of minutes they spent reading last weekend: 10, 15, 20, 22, 25, 28, 30, 32, 35, 40, 80. Are there any outliers?
Step 1: Order the data and find the quartiles. The data is already sorted. With 11 values, the median is the 6th value (28). The lower half is 10, 15, 20, 22, 25, so Q₁ is the middle of that group. The upper half is 30, 32, 35, 40, 80, so Q₃ is the middle of that group.
Q1=20,Q3=35Q_1 = 20, \quad Q_3 = 35
Step 2: Calculate the interquartile range.
IQR=Q3Q1=3520=15\text{IQR} = Q_3 - Q_1 = 35 - 20 = 15
Step 3: Calculate the lower and upper fences.
\text{Lower Fence} = 20 - 1.5 \times 15 = 20 - 22.5 = -2.5$ $\text{Upper Fence} = 35 + 1.5 \times 15 = 35 + 22.5 = 57.5
Step 4: Check each data value against the fences. Any value below −2.5 or above 57.5 is an outlier. The value 80 is greater than 57.5.
80>57.5    outlier80 > 57.5 \implies \text{outlier}
Answer: There is one outlier: 80 minutes. All other values fall within the fences.

Visualization

Why It Matters

The 1.5 × IQR rule gives you a consistent, repeatable way to flag unusual data points rather than just guessing which values "look" extreme. It is built into box plots — the whiskers typically extend to the most extreme data points that are not outliers, and anything beyond gets plotted as an individual dot. Scientists, economists, and data analysts rely on this rule when cleaning data sets before drawing conclusions.

Common Mistakes

Mistake: Multiplying the IQR by 1.5 and then comparing directly to data values without adding to Q₃ or subtracting from Q₁.
Correction: You must build the fences from the quartiles. The lower fence is Q₁ minus 1.5 × IQR, and the upper fence is Q₃ plus 1.5 × IQR. The product 1.5 × IQR alone is not a fence — it's only the distance from each quartile.
Mistake: Confusing the range with the interquartile range when applying the rule.
Correction: The IQR uses only Q₃ − Q₁ (the middle 50% of data), not the full range from minimum to maximum. Using the full range will give incorrect fences.

Related Terms

  • OutlierThe type of data point this rule identifies
  • Interquartile RangeThe spread measure at the core of this rule
  • QuartilesQ₁ and Q₃ are used to build the fences