Outlier Detector (1.5 IQR)

Enter a list of numbers to find outliers by the 1.5×IQR rule.

Result

60.25
1
-0.25
7.75
2.00

How it is calculated

The numbers, separated by spaces or commas, are sorted and split into a lower and an upper half. With an odd count the middle value is left out of both halves. Q1 is the median of the lower half and Q3 the median of the upper half, so this is the median-of-halves method, not an interpolated percentile, and other software can give slightly different quartiles. Then IQR = Q3 − Q1, lower fence = Q1 − 1.5 × IQR and upper fence = Q3 + 1.5 × IQR. Any value strictly below the lower fence or above the upper fence is listed as an outlier, together with a count; if nothing falls outside, the list reads None. At least four numbers are needed, and an entry that is not a number gives no result. Fences and IQR are shown to two decimals.

Worked example

Data: 1.5, 2.5, 3, 3.5, 4, 4.5, 5, 60.25. Eight values, so each half holds four. Lower half 1.5, 2.5, 3, 3.5 has median 2.75, so Q1 = 2.75. Upper half 4, 4.5, 5, 60.25 has median 4.75, so Q3 = 4.75. IQR = 2.00. Lower fence = 2.75 − 1.5 × 2 = −0.25 and upper fence = 4.75 + 3 = 7.75. Only one value is outside the fences: 60.25. The outlier count is 1.

Try this example →

Common mistakes

  • Entering fewer than four numbers. Quartiles need enough points, and the tool gives no result below four.
  • Assuming a value flagged here is an error. The rule marks values that are unusual compared with the middle half of the data, and they may be real.
  • Comparing the answer with a spreadsheet's QUARTILE function. This tool uses medians of the two halves, so Q1 and Q3 can differ from other methods, especially with small samples.
  • Being surprised when a single different value is flagged in a nearly constant list. With the values 5 5 5 5 5 5 9 the IQR is 0, so the fences sit on the quartiles and the 9 is reported as an outlier.
  • Typing a decimal comma such as 2,5. A comma separates numbers here, so 2,5 is read as the two numbers 2 and 5; use a point for decimals.

About this calculator

The 1.5×IQR rule, popularised by statistician John Tukey, flags outliers in a data set using the interquartile range (IQR), the spread between the first quartile (Q1, the 25th percentile) and third quartile (Q3, the 75th percentile). It sets a lower fence at Q1 minus 1.5 times the IQR and an upper fence at Q3 plus 1.5 times the IQR, and any data point falling outside those two fences is treated as an outlier.

This method is a staple of exploratory data analysis and is the same rule that produces the whiskers on a box-and-whisker plot; it's widely used because, unlike rules based on the mean and standard deviation, it isn't itself thrown off much by extreme values, making it a robust first pass for spotting data-entry errors, sensor glitches, or genuinely unusual observations before deeper statistical analysis.

Enter a list of numbers and this calculator computes the quartiles, the lower and upper fences, and lists any values that fall outside them.

Was this helpful?

You can pick up to 3 reactions.

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators