Outlier Calculator

Quick answerAn outlier is a value below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR. Find Q1, Q3 and the IQR, build the two fences and check every value. In 2, 3, 4, 5, 6, 7, 50 the upper fence is 13, so 50 is an outlier.

Type or paste numbers separated by commas, spaces or new lines. Decimals and negative numbers are fine.

1 outlier: 50

  • Lower fence: -3
  • Upper fence: 13
  • IQR: 4
Outliers sit beyond the whiskers (open circles)Outliers sit beyond the whiskers (open circles)Q1 3Median 5Q3 701020304050

Step-by-step solution

  1. Sort the data and find Q1 = 3 and Q3 = 7.
  2. IQR = Q3 − Q1 = 4.
  3. Lower fence = Q1 − 1.5 × IQR = 3 − 6 = -3.
  4. Upper fence = Q3 + 1.5 × IQR = 7 + 6 = 13.
  5. Values outside the fences are outliers: 50.

Example shown: the default numbers above. Change them and press Calculate.

What you get when you use this calculator

Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.

What you get from the Outlier Calculator. A list of at least 4 numbers → Quartiles, IQR, fences, compare → Outliers flagged on a box plotWhat you get from the Outlier CalculatorYOU ENTERA list of at least 4numbersTHE CALCULATORQuartiles, IQR,fences, compareYOU GETOutliers flagged ona box plot

How to use the Outlier Calculator

  1. Type or paste your numbers into the box above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

Lower fenceQ1 − 1.5 × IQR
Upper fenceQ3 + 1.5 × IQR
OutlierAny value outside the two fences

Worked examples

Example 1: 2, 3, 4, 5, 6, 7, 50

1 outlier: 50

  1. Sort the data and find Q1 = 3 and Q3 = 7.
  2. IQR = Q3 − Q1 = 4.
  3. Lower fence = Q1 − 1.5 × IQR = 3 − 6 = -3.
  4. Upper fence = Q3 + 1.5 × IQR = 7 + 6 = 13.
  5. Values outside the fences are outliers: 50.

Example 2: 10, 12, 11, 13, 12, 11, 12

No outliers found by the 1.5 × IQR rule

  1. Sort the data and find Q1 = 11 and Q3 = 12.
  2. IQR = Q3 − Q1 = 1.
  3. Lower fence = Q1 − 1.5 × IQR = 11 − 1.5 = 9.5.
  4. Upper fence = Q3 + 1.5 × IQR = 12 + 1.5 = 13.5.
  5. Every value lies inside the fences, so there are no outliers.

Example 3: -30, 4, 5, 6, 7, 8

1 outlier: -30

Show the steps
  1. Sort the data and find Q1 = 4 and Q3 = 7.
  2. IQR = Q3 − Q1 = 3.
  3. Lower fence = Q1 − 1.5 × IQR = 4 − 4.5 = -0.5.
  4. Upper fence = Q3 + 1.5 × IQR = 7 + 4.5 = 11.5.
  5. Values outside the fences are outliers: -30.

Example 4: 15, 18, 21, 22, 25, 80, 90

No outliers found by the 1.5 × IQR rule

Show the steps
  1. Sort the data and find Q1 = 18 and Q3 = 80.
  2. IQR = Q3 − Q1 = 62.
  3. Lower fence = Q1 − 1.5 × IQR = 18 − 93 = -75.
  4. Upper fence = Q3 + 1.5 × IQR = 80 + 93 = 173.
  5. Every value lies inside the fences, so there are no outliers.

Practice problems

Try each one on paper first, then open the answer.

Problem 1: 5, 6, 7, 8, 9, 40

1 outlier: 40

Problem 2: 100, 102, 105, 107, 110

No outliers found by the 1.5 × IQR rule

Problem 3: 1, 20, 22, 24, 26, 28

1 outlier: 1

Frequently asked questions

What is the 1.5 IQR rule?

It flags any value more than 1.5 interquartile ranges below Q1 or above Q3 as a potential outlier.

Should I always delete outliers?

No. An outlier can be a data-entry error or a real, important observation. Investigate it before removing anything.

Why do I need at least four values?

Quartiles need enough values to split into halves. With fewer than four the fences are not meaningful.

Are there other ways to detect outliers?

Yes, such as z-scores beyond ±3. The IQR rule is popular because it does not assume the data are bell-shaped.

Related calculators

Calculators are for learning and general use. If a result matters (an exam, a report, a research paper), double-check it and read the methodology. Read the disclaimer.