Outlier Calculator

Published on: November 26, 2026
Final Answer: Free | Full Steps: Plus

This Outlier Calculator finds the values in a list that are unusually small or large and shows the working line by line. It works out the quartiles and the interquartile range, then builds a lower fence 1.5 interquartile ranges below the lower quartile and an upper fence the same distance above the upper quartile. Any value outside the fences is an outlier. The fences and the outliers are then drawn on a box plot, so the pattern can be checked by eye.

Step-by-step method

  1. Set up the problem.
  2. Write the formulas.
  3. Find the quartiles and the interquartile range.
  4. Substitute them into the formulas.
  5. Work out the two fences.
  6. Check each value against the fences.
  7. Show the fences and the outliers on a box plot.

Formula: Lower Fence Formula

This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.

\(\text{Lower fence} = Q_1 - 1.5 \times IQR\)

Formula: Upper Fence Formula

This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.

\(\text{Upper fence} = Q_3 + 1.5 \times IQR\)

Useful Tips to Remember

A value is an outlier if it lies more than \(1.5 \times \text{IQR}\) below the lower quartile or above the upper quartile. Work out both fences, \(Q_1 - 1.5 \times \text{IQR}\) and \(Q_3 + 1.5 \times \text{IQR}\), and check the data against each one. An outlier is not automatically a mistake, so think about whether it is a real value before removing it.

Required knowledge

Where Is Outlier Detection Used?

An outlier is a value that lies unusually far from the rest of the data, often found with the \(1.5 \times \text{IQR}\) rule. Spotting outliers is important because they can be mistakes, such as a typing error, or genuinely unusual events that need attention. Banks look for outlier transactions to detect fraud, factories look for outlier measurements to find faulty products, and scientists check outliers before trusting their results. Deciding whether to keep or remove an outlier can change the mean and the conclusions of a study.

  • Detecting fraudulent card transactions
  • Finding faulty products in quality control
  • Spotting data entry mistakes in spreadsheets
  • Checking experimental results before analysis
  • Identifying unusual weather events or sensor readings

Outlier Practice Problems

Example 1 has outliers at both ends of the data, and Example 2 has none. Try working out the lower and upper fences yourself before opening each example. For two more free worked examples, check out the Outlier Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formulas.
  3. Find the quartiles and the interquartile range.
  4. Substitute them into the formulas.
  5. Work out the two fences.
  6. Check each value against the fences.
  7. Show the fences and the outliers on a box plot.

Formula

Formula: Lower Fence Formula

This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.

\(\text{Lower fence} = Q_1 - 1.5 \times IQR\)

Formula: Upper Fence Formula

This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.

\(\text{Upper fence} = Q_3 + 1.5 \times IQR\)

Step 1

Step 1 - Set up the problem.

In this problem: We are checking \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\) for values that are unusually small or large.

\(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\)

Step 2

Step 2 - Write the formulas.

In this problem: The fences sit 1.5 interquartile ranges below the lower quartile and above the upper quartile. Any value outside them is an outlier.

\(\text{Lower fence} = Q_1 - 1.5 \times IQR\)
\(\text{Upper fence} = Q_3 + 1.5 \times IQR\)

Step 3

Step 3 - Find the quartiles and the interquartile range.

In this problem: The quartiles are \(Q_1 = 10.5\) and \(Q_3 = 15.5\), so \(IQR = 5\).

\(Q_1 = 10.5,\; Q_3 = 15.5,\; IQR = 5\)

Step 4

Step 4 - Substitute them into the formulas.

In this problem: Replacing \(Q_1\), \(Q_3\) and \(IQR\) in both formulas gives the two fences to work out.

\(\begin{gathered} \text{Lower fence} = 10.5 - 1.5 \times 5 \\ \text{Upper fence} = 15.5 + 1.5 \times 5 \end{gathered}\)

Step 5

Step 5 - Work out the two fences.

In this problem: First \(1.5 \times 5 = 7.5\), then it is taken away from \(Q_1\) and added to \(Q_3\).

\(\begin{gathered} \text{Lower fence} = 10.5 - 1.5 \times 5 = 10.5 - 7.5 = 3 \\ \text{Upper fence} = 15.5 + 1.5 \times 5 = 15.5 + 7.5 = 23 \end{gathered}\)

Step 6

Step 6 - Check each value against the fences.

In this problem: Any value below \(3\) or above \(23\) is an outlier. The values \(2,\; 40\) lie outside the fences.

\(\text{Outliers} = 2,\; 40\)

Step 7

Step 7 - Show the fences and the outliers on a box plot.

In this problem: The dashed lines are the fences. The orange circles are the outliers, and the whiskers stop at the last values inside the fences.

Box plot with the outlier fences

Final Answer

\(\text{Outliers} = 2,\; 40\)
See Example 2 Hide Example 2

Problem

\(1,\; 2,\; 3,\; 4,\; 5\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formulas.
  3. Find the quartiles and the interquartile range.
  4. Substitute them into the formulas.
  5. Work out the two fences.
  6. Check each value against the fences.
  7. Show the fences and the outliers on a box plot.

Formula

Formula: Lower Fence Formula

This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.

\(\text{Lower fence} = Q_1 - 1.5 \times IQR\)

Formula: Upper Fence Formula

This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.

\(\text{Upper fence} = Q_3 + 1.5 \times IQR\)

Step 1

Step 1 - Set up the problem.

In this problem: We are checking \(1,\; 2,\; 3,\; 4,\; 5\) for values that are unusually small or large.

\(1,\; 2,\; 3,\; 4,\; 5\)

Step 2

Step 2 - Write the formulas.

In this problem: The fences sit 1.5 interquartile ranges below the lower quartile and above the upper quartile. Any value outside them is an outlier.

\(\text{Lower fence} = Q_1 - 1.5 \times IQR\)
\(\text{Upper fence} = Q_3 + 1.5 \times IQR\)

Step 3

Step 3 - Find the quartiles and the interquartile range.

In this problem: The quartiles are \(Q_1 = 1.5\) and \(Q_3 = 4.5\), so \(IQR = 3\).

\(Q_1 = 1.5,\; Q_3 = 4.5,\; IQR = 3\)

Step 4

Step 4 - Substitute them into the formulas.

In this problem: Replacing \(Q_1\), \(Q_3\) and \(IQR\) in both formulas gives the two fences to work out.

\(\begin{gathered} \text{Lower fence} = 1.5 - 1.5 \times 3 \\ \text{Upper fence} = 4.5 + 1.5 \times 3 \end{gathered}\)

Step 5

Step 5 - Work out the two fences.

In this problem: First \(1.5 \times 3 = 4.5\), then it is taken away from \(Q_1\) and added to \(Q_3\).

\(\begin{gathered} \text{Lower fence} = 1.5 - 1.5 \times 3 = 1.5 - 4.5 = -3 \\ \text{Upper fence} = 4.5 + 1.5 \times 3 = 4.5 + 4.5 = 9 \end{gathered}\)

Step 6

Step 6 - Check each value against the fences.

In this problem: Any value below \(-3\) or above \(9\) is an outlier. Every value lies between the fences, so there are no outliers.

\(\text{No outliers}\)

Step 7

Step 7 - Show the fences and the outliers on a box plot.

In this problem: The dashed lines are the fences. Every value sits between them.

Box plot with the outlier fences

Final Answer

\(\text{No outliers}\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.