Outlier Rule

The Outlier Rule identifies data values farther than 1.5 times the interquartile range from the quartiles—use it to flag unusual observations.

x<Q11.5IQRorx>Q3+1.5IQRx < Q_1 - 1.5\,\text{IQR} \quad \text{or} \quad x > Q_3 + 1.5\,\text{IQR}

Solve a problem with Outlier Rule

Type the problem. The solver will use Outlier Rule where Outlier Rule is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Outlier Rule takes
xx
Q1Q_1
Q3Q_3
Outlier Rule
SymbolMeaning
xxThe specific data value being tested; xx must be in the same units as the rest of the dataset.
Q1Q_1The first quartile or 25th percentile, the median of the lower half of ordered data; if Q1Q_1 equals Q3Q_3, the data lacks sufficient spread for reliable outlier detection.
Q3Q_3The third quartile or 75th percentile, the median of the upper half of ordered data; the distance from Q1Q_1 to Q3Q_3 (the IQR) determines how far a value must be to qualify as an outlier.

When to use it

When examining raw data to detect values that are unusually far from the central cluster and may warrant separate investigation.

Level

Usually taught in: Statistics

Worked examples

1. Identify a single outlier in a small dataset

Problem

Is 25 an outlier in the dataset 2, 5, 6, 7, 8, 9, 10, 25?
  1. Q1=5+62=5.5Q_1 = \frac{5 + 6}{2} = 5.5

    Find the first quartile by averaging the 2nd and 3rd values of the ordered dataset.

  2. Q3=9+102=9.5Q_3 = \frac{9 + 10}{2} = 9.5

    Find the third quartile by averaging the 6th and 7th values.

  3. IQR=9.55.5=4IQR = 9.5 - 5.5 = 4

    Calculate the interquartile range, which is the spread of the middle half of the data.

  4. Q3+1.5IQR=9.5+1.5(4)=15.5Q_3 + 1.5 \cdot IQR = 9.5 + 1.5(4) = 15.5

    The upper boundary is Q3+1.5×IQR=15.5Q_3 + 1.5 \times IQR = 15.5.

  5. x=25>15.5x = 25 > 15.5

    Since 25 exceeds the upper boundary, it is an outlier by the Outlier Rule.

Answer: x=25 is an outlierx = 25 \text{ is an outlier}

The dataset shows a clear separation between the main group (values 2–10) and the single large value (25). The Outlier Rule correctly flags 25 as unusual because it lies far beyond where we would expect typical variation in this dataset.

2. Detect a low outlier among mostly high scores

Problem

A student's test scores are 25, 78, 81, 83, 85, 87, 89, 92, 95. Is the score of 25 an outlier?
  1. Q1=78+812=79.5Q_1 = \frac{78 + 81}{2} = 79.5

    Find the first quartile by taking the average of the 2nd and 3rd values in the ordered list.

  2. Q3=89+922=90.5Q_3 = \frac{89 + 92}{2} = 90.5

    Find the third quartile by taking the average of the 7th and 8th values.

  3. IQR=90.579.5=11IQR = 90.5 - 79.5 = 11

    Calculate the interquartile range, the spread of the middle 50% of scores.

  4. Q11.5IQR=79.51.5(11)=79.516.5=63Q_1 - 1.5 \cdot IQR = 79.5 - 1.5(11) = 79.5 - 16.5 = 63

    The lower boundary is Q11.5×IQR=63Q_1 - 1.5 \times IQR = 63.

  5. x=25<63x = 25 < 63

    Since 25 falls below the lower boundary, it qualifies as a low outlier.

Answer: x=25 is an outlierx = 25 \text{ is an outlier}

The score of 25 is drastically lower than the student's remaining scores, which cluster between 78 and 95. The Outlier Rule detects this as an unusual value, which might indicate the student was ill, unprepared, or the test differed from the others in difficulty.

3. Identify unusual lap times during a training climb

Problem

A cyclist records nine lap times (in seconds) climbing a steep hill: 87, 92, 89, 95, 91, 88, 530, 90, 93. Which lap times are outliers?
  1. Ordered data: 87,88,89,90,91,92,93,95,530\text{Ordered data: } 87, 88, 89, 90, 91, 92, 93, 95, 530

    First, arrange the nine lap times in ascending order.

  2. Q1=88Q_1 = 88

    With 9 data points, the first quartile is the value at position 2 after dividing into quarters.

  3. Q3=93Q_3 = 93

    The third quartile is the value at position 8.

  4. IQR=9388=5IQR = 93 - 88 = 5

    The interquartile range represents typical variation in the cyclist's lap times.

  5. Q3+1.5IQR=93+1.5(5)=93+7.5=100.5Q_3 + 1.5 \cdot IQR = 93 + 1.5(5) = 93 + 7.5 = 100.5

    Any time above 100.5 seconds exceeds the upper outlier threshold.

  6. x=530>100.5x = 530 > 100.5

    The 530-second lap is far beyond the upper boundary, making it a clear outlier.

Answer: x=530 seconds is an outlierx = 530 \text{ seconds is an outlier}

One lap took 530 seconds (nearly 9 minutes) while all others took 87–95 seconds. This extreme outlier likely represents a mechanical failure, a rest break, or the cyclist walking part of the steep route. The Outlier Rule successfully identifies when a single performance measurement is radically different from the rest.

Common mistakes

Where Outlier Rule usually goes wrong
Answer came out wrong
Using 2×IQR2 \times IQR instead of 1.5×IQR1.5 \times IQR as the multiplier.
Always use exactly 1.5, not 2. The Outlier Rule specifically uses Q11.5IQRQ_1 - 1.5 \cdot IQR and Q3+1.5IQRQ_3 + 1.5 \cdot IQR as boundaries.
Forgetting to order the data before finding Q1Q_1 and Q3Q_3.
Always sort the data in ascending order first, then find Q1Q_1 as the median of the lower half and Q3Q_3 as the median of the upper half.
Swapping the boundaries by using Q11.5IQRQ_1 - 1.5 \cdot IQR as the upper boundary and Q3+1.5IQRQ_3 + 1.5 \cdot IQR as the lower boundary.
Remember: subtract 1.5IQR1.5 \cdot IQR from Q1Q_1 for the lower boundary, and add 1.5IQR1.5 \cdot IQR to Q3Q_3 for the upper boundary.
The mistakeWhy it is wrongThe fix
Using 2×IQR2 \times IQR instead of 1.5×IQR1.5 \times IQR as the multiplier.The 2×IQR2 \times IQR rule (called Tukey's outer fence) is more conservative and flags fewer outliers; using it will miss genuine outliers that the standard 1.5×IQR1.5 \times IQR rule would detect.Always use exactly 1.5, not 2. The Outlier Rule specifically uses Q11.5IQRQ_1 - 1.5 \cdot IQR and Q3+1.5IQRQ_3 + 1.5 \cdot IQR as boundaries.
Forgetting to order the data before finding Q1Q_1 and Q3Q_3.Quartiles are defined by position in the sorted dataset; if the data is scrambled, Q1Q_1 and Q3Q_3 will be wrong, making the boundaries meaningless.Always sort the data in ascending order first, then find Q1Q_1 as the median of the lower half and Q3Q_3 as the median of the upper half.
Swapping the boundaries by using Q11.5IQRQ_1 - 1.5 \cdot IQR as the upper boundary and Q3+1.5IQRQ_3 + 1.5 \cdot IQR as the lower boundary.Since Q1Q_1 is always less than Q3Q_3, reversing the boundaries places them on the wrong ends of your data; you will incorrectly mark normal values as outliers.Remember: subtract 1.5IQR1.5 \cdot IQR from Q1Q_1 for the lower boundary, and add 1.5IQR1.5 \cdot IQR to Q3Q_3 for the upper boundary.

Tips and when to use something else

  • The multiplier 1.5 is a statistical convention chosen to work well with normally distributed data; roughly 0.7%\% of values in a bell-shaped dataset will flag as outliers.
  • If Q1Q_1 and Q3Q_3 are equal (the middle 50%\% of your data is identical), then IQR=0IQR = 0 and both boundaries collapse to the same point—a sign your dataset lacks sufficient spread for reliable outlier detection.
  • For very small datasets (fewer than 5 values), quartiles are unstable and the Outlier Rule may not be reliable; use visual inspection or the ZZ-score method instead.
  • Unlike methods that first remove extreme values, the Outlier Rule is robust because it uses quartiles—which are not affected by outliers themselves—to define the boundaries.

Frequently asked questions

What is the difference between the Outlier Rule and the Empirical Rule for detecting outliers?
The Empirical Rule (68–95–99.7) applies only to normally distributed data and flags any value beyond 3 standard deviations as an outlier. The Outlier Rule uses quartiles and the 1.5×IQR1.5 \times IQR multiplier, which works on any shaped distribution and is more resistant to skew. Choose the Empirical Rule if your data is clearly bell-shaped; use the Outlier Rule for most real-world datasets with unknown distributions.
Why 1.5? Where does that specific number come from?
The constant 1.5 is an empirical choice popularized by John Tukey and assumes roughly normal data. It is designed to flag roughly the outer 0.7%\% of values in a normal distribution while ignoring typical variation. Other multipliers (like 1 or 3) are sometimes used for different sensitivity; 1.5 is the standard default in statistics courses and software packages.
Can the lower boundary be negative if my data is all positive numbers?
Yes. If your dataset has low values and tight clustering, Q11.5IQRQ_1 - 1.5 \cdot IQR can easily be negative even though all actual data points are positive (like times or test scores). A negative boundary simply means no low outliers can exist—any value still below that boundary would have to be even more negative, which is impossible in your dataset.
If I find an outlier, should I always remove it from my data?
No. Finding an outlier is a signal to investigate, not a signal to delete. Some outliers are errors (typos or faulty sensors), some are real but unusual (a record-breaking performance), and some reveal important information about your process. Always check the source before deciding whether to exclude it from further analysis.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18