Skip to content
Omnikalc

Is your largest or smallest value an outlier?

Enter Q1, Q3 and the smallest and largest values: get the interquartile range, the 1.5 × IQR and 3 × IQR fences and a check of whether the extremes are mild or extreme outliers.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Results

Interquartile range (IQR)

8.00

Upper fence (Q3 + 1.5 × IQR)

32.00

Lower fence (Q1 − 1.5 × IQR)
0.00
Lower extreme fence (Q1 − 3 × IQR)
-12.00
Upper extreme fence (Q3 + 3 × IQR)
44.00
Largest value
41.00
The maximum is a mild outlier (beyond 1.5 × IQR)
Smallest value
4.00
The minimum is within the fences
Quartile coefficient of dispersion
0.250

The interquartile range (IQR) is the width of the middle half of a data set, from the first quartile (Q1, the value below which 25% of the data fall) to the third (Q3, the value below which 75% fall). Because it ignores the extremes, it is a robust measure of spread. John Tukey used it to define a simple rule for spotting outliers: values too far outside the middle half are flagged. This calculator takes your quartiles and your smallest and largest values and checks whether either lies beyond the fences.

How the calculation works

  • IQR = Q3 − Q1
  • Lower fence = Q1 − 1.5 × IQR, and upper fence = Q3 + 1.5 × IQR
  • Extreme fences = Q1 − 3 × IQR and Q3 + 3 × IQR
  • A value outside the fences is a mild outlier; outside the extreme fences, an extreme outlier.
  • Quartile coefficient of dispersion = (Q3 − Q1) ÷ (Q3 + Q1)

Example

With Q1 = 12 and Q3 = 20, the IQR is 8. The fences are 12 − 12 = 0 and 20 + 12 = 32, and the extreme fences are −12 and 44. The smallest value, 4, is inside the fences. The largest, 41, is above 32 but below 44, so it is a mild outlier.

Why use fences

The mean and standard deviation are pulled by outliers, while quartiles are not, which makes the IQR rule reliable even when the data contain the very values you are looking for. The rule works well for roughly symmetric data. For skewed data, such as incomes or response times, many ordinary values may be flagged, so look at the shape of the distribution before deciding.

What to do with outliers

First check for mistakes: a misplaced decimal, a wrong unit or a sensor fault. If the value is real, keep it but consider reporting results with and without it, or use measures that resist outliers, such as the median. Remove a value only with a clear reason that you can state in your report.

Frequently asked questions

What is the interquartile range?

The distance between the third and the first quartile, Q3 − Q1. It covers the middle half of the data.

What is Tukey's rule for outliers?

A value is a mild outlier if it lies more than 1.5 × IQR below Q1 or above Q3, and an extreme outlier beyond 3 × IQR.

Should I delete outliers?

Not automatically. Check whether it is an error or a real, rare value; deleting valid data biases your results.

Where do the quartiles come from?

From a box plot, a statistics package or a sorted list; different methods give slightly different quartiles for small samples.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.