Outlier Notes

Published on: November 26, 2026

These Outlier Notes explain how to find the values in a list that are unusually small or large, with the working shown line by line. The method 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. Examples 3 and 4 give you two more of the same kind to try, \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\) and \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\). Try working out the lower and upper fences yourself before opening each example.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them 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}\)
See Example 3 Hide Example 3

Problem

\(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\)

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 \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\) for values that are unusually small or large.

\(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\)

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 = 7\) and \(Q_3 = 11\), so \(IQR = 4\).

\(Q_1 = 7,\; Q_3 = 11,\; IQR = 4\)

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} = 7 - 1.5 \times 4 \\ \text{Upper fence} = 11 + 1.5 \times 4 \end{gathered}\)

Step 5

Step 5 - Work out the two fences.

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

\(\begin{gathered} \text{Lower fence} = 7 - 1.5 \times 4 = 7 - 6 = 1 \\ \text{Upper fence} = 11 + 1.5 \times 4 = 11 + 6 = 17 \end{gathered}\)

Step 6

Step 6 - Check each value against the fences.

In this problem: Any value below \(1\) or above \(17\) is an outlier. The value \(30\) lies outside the fences.

\(\text{Outliers} = 30\)

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} = 30\)
See Example 4 Hide Example 4

Problem

\(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\)

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 \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\) for values that are unusually small or large.

\(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\)

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\) and \(Q_3 = 5\), so \(IQR = 4\).

\(Q_1 = 1,\; Q_3 = 5,\; IQR = 4\)

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 - 1.5 \times 4 \\ \text{Upper fence} = 5 + 1.5 \times 4 \end{gathered}\)

Step 5

Step 5 - Work out the two fences.

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

\(\begin{gathered} \text{Lower fence} = 1 - 1.5 \times 4 = 1 - 6 = -5 \\ \text{Upper fence} = 5 + 1.5 \times 4 = 5 + 6 = 11 \end{gathered}\)

Step 6

Step 6 - Check each value against the fences.

In this problem: Any value below \(-5\) or above \(11\) is an outlier. The value \(-20\) lies outside the fences.

\(\text{Outliers} = -20\)

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} = -20\)

Calculator and Practice Mode