Outlier Detection CalculatorFree online math calculator — instant results, no sign-up

Identify outliers using interpolated quartiles and the 1.5 IQR rule.

Inputs

Lower fence
-2
Upper fence14
OutliersNone

Sign in to save results and favorites.

About the Outlier Detection Calculator

The Outlier Detection Calculator flags values that fall outside fences set at 1.5 times the interquartile range (IQR) below and above interpolated quartiles. For the default values 2, 4, 6, 8, 10, it returns a lower fence of -2, an upper fence of 14, and no outliers.

Values
Enter the numerical observations to check, using the same units for all entries; the default is 2, 4, 6, 8, 10.

Formula and method

Sort the data as x₁ ≤ … ≤ xₙ. For p ∈ {0.25, 0.75}, set h = 1 + (n − 1)p, j = floor(h), and g = h − j; calculate Q(p) = (1 − g)xⱼ + gxⱼ₊₁ when j < n, or Q(p) = xₙ when j = n. Then Q₁ = Q(0.25), Q₃ = Q(0.75), IQR = Q₃ − Q₁, L = Q₁ − 1.5 × IQR, and U = Q₃ + 1.5 × IQR. A value xᵢ is an outlier if xᵢ < L or xᵢ > U.
  • nNumber of observations.
  • xᵢObservation at position i in the sorted data, with positions starting at 1.
  • pQuantile proportion: 0.25 for the first quartile or 0.75 for the third quartile.
  • hInterpolated position of the requested quantile.
  • jInteger part of h, obtained by rounding down.
  • gFractional part of h, used as the interpolation weight.
  • Q(p)Quantile calculated by linear interpolation between adjacent sorted observations.
  • Q₁, Q₃First and third quartiles, representing the 25th and 75th percentiles.
  • IQRInterquartile range, the difference between Q₃ and Q₁.
  • L, ULower and upper outlier fences.

The calculator sorts the observations, finds the first and third quartiles using linear interpolation at positions 1 + (n − 1)p, and computes their difference. It extends 1.5 times that difference below Q₁ and above Q₃ to obtain the fences, then checks each observation against them. For 2, 4, 6, 8, 10, the quartile positions are 2 and 4, so Q₁ = 4, Q₃ = 8, and IQR = 4. The fences are 4 − 1.5 × 4 = -2 and 8 + 1.5 × 4 = 14; every observation lies within these fences.

Worked example

These are the calculator's starting values and the results it actually produces for them.

Inputs

  • Values2, 4, 6, 8, 10

Results

  • Lower fence-2
  • Upper fence14
  • OutliersNone

How to use the Outlier Detection Calculator

  1. 1Enter your observations in Values, separated by commas, or keep the default 2, 4, 6, 8, 10.
  2. 2Check that every entry is numeric and that all observations use consistent units.
  3. 3Run the calculation to obtain the interpolated-quartile outlier fences.
  4. 4Read the Lower fence and Upper fence results; the default data produce -2 and 14.
  5. 5Review the Outliers result; the default data show None because no value is below -2 or above 14.

Reading your result

Lower fence is the cutoff below which values are flagged; Upper fence is the cutoff above which values are flagged. Both fences use the same units as the input data and need not be observed values or physically possible measurements. Outliers lists observations strictly outside the fences, or shows None if there are no such observations. Values exactly equal to a fence are not outliers under this rule.

Limitations

The 1.5 IQR rule is a screening convention, not proof that a value is erroneous or should be removed. It can flag legitimate observations in skewed or heavy-tailed distributions, and results can be unstable for very small datasets. Other quartile definitions can produce different fences, so comparisons require the same interpolation method. If IQR is zero, both fences coincide and any value different from that shared quartile value is flagged. Inputs should be finite numeric observations from a meaningfully comparable dataset.

Common questions

Why do the default values produce no outliers?+

For 2, 4, 6, 8, 10, Q₁ = 4 and Q₃ = 8, giving IQR = 4. The lower fence is -2 and the upper fence is 14, and none of the entered values falls outside that interval.

Why might another outlier calculator give different fences?+

Quartile conventions differ. This calculator uses positions 1 + (n − 1)p and linear interpolation, while another tool may use medians of data halves or a different percentile definition.

Does a value on a fence count as an outlier?+

No. The comparisons are strict: a value must be below the lower fence or above the upper fence to be flagged.

Should I delete every value listed under Outliers?+

No. Check flagged observations for entry errors, measurement problems, or genuine unusual events. The calculator identifies values that meet the 1.5 IQR criterion; it does not determine whether those observations are invalid.

Does the calculator save my information?+

Calculations run in your browser. While signed in, inputs and results are automatically recorded in account history; saving a result creates a separate saved record.

You might also like

Results are estimates for informational purposes and are not financial, medical or legal advice.