Interquartile Range Calculator

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

This Interquartile Range Calculator measures the spread of the middle half of a list of numbers and shows the working line by line. It finds the lower and the upper quartile and takes one away from the other. Because the smallest and the largest quarter of the values are left out, one unusually big or small value barely changes the answer, unlike the range. The result is then drawn as the width of the box on a box plot, so the pattern can be seen as well as worked out.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the lower and the upper quartile.
  4. Substitute the quartiles into the formula.
  5. Subtract to get the interquartile range.
  6. Show the interquartile range on a box plot.

Formula: Interquartile Range Formula

This formula gives the spread of the middle half of the data. Take the lower quartile away from the upper quartile.

\(IQR = Q_3 - Q_1\)

Useful Tips to Remember

The interquartile range is the upper quartile minus the lower quartile, \(\text{IQR} = Q_3 - Q_1\). Put the data in order before finding the quartiles. The IQR describes the spread of the middle half of the data and is not affected by extreme values. It is used to find outliers with the \(1.5 \times \text{IQR}\) rule.

Required knowledge

Where Is the Interquartile Range Used?

The interquartile range is the difference between the upper and lower quartiles, showing the spread of the middle half of the data. Because it ignores the lowest and highest quarters, it is not affected by extreme values, which makes it more reliable than the range for skewed data like incomes and house prices. It is used to compare consistency between groups, to draw box plots, and to detect outliers with the \(1.5 \times \text{IQR}\) rule. Researchers, doctors and analysts use it to describe typical variation.

  • Comparing the consistency of test scores between classes
  • Describing the spread of incomes and house prices
  • Finding outliers with the \(1.5 \times \text{IQR}\) rule
  • Setting the length of the box on a box plot
  • Reporting typical ranges in medical measurements

Interquartile Range Practice Problems

Example 1 uses eight ordered values, and Example 2 uses nine unordered values. Try finding both quartiles yourself before opening each example. For two more free worked examples, check out the Interquartile Range 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

\(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the lower and the upper quartile.
  4. Substitute the quartiles into the formula.
  5. Subtract to get the interquartile range.
  6. Show the interquartile range on a box plot.

Formula

Formula: Interquartile Range Formula

This formula gives the spread of the middle half of the data. Take the lower quartile away from the upper quartile.

\(IQR = Q_3 - Q_1\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the spread of the middle half of \(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\).

\(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\)

Step 2

Step 2 - Write the formula.

In this problem: The interquartile range is the gap between the upper and the lower quartile, which holds the middle half of the values.

\(IQR = Q_3 - Q_1\)

Step 3

Step 3 - Find the lower and the upper quartile.

In this problem: The quartiles of the list are \(Q_1 = 2.5\) and \(Q_3 = 6.5\).

\(Q_1 = 2.5,\; Q_3 = 6.5\)

Step 4

Step 4 - Substitute the quartiles into the formula.

In this problem: Replacing \(Q_3\) with \(6.5\) and \(Q_1\) with \(2.5\) gives \(IQR = 6.5 - 2.5\).

\(IQR = 6.5 - 2.5\)

Step 5

Step 5 - Subtract to get the interquartile range.

In this problem: Subtracting gives \(6.5 - 2.5 = 4\).

\(IQR = 6.5 - 2.5 = 4\)

Step 6

Step 6 - Show the interquartile range on a box plot.

In this problem: The interquartile range is the width of the box, from \(Q_1\) to \(Q_3\).

Box plot with the interquartile range marked

Final Answer

\(IQR = 4\)
See Example 2 Hide Example 2

Problem

\(3,\; 7,\; 8,\; 5,\; 12,\; 14,\; 21,\; 13,\; 18\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the lower and the upper quartile.
  4. Substitute the quartiles into the formula.
  5. Subtract to get the interquartile range.
  6. Show the interquartile range on a box plot.

Formula

Formula: Interquartile Range Formula

This formula gives the spread of the middle half of the data. Take the lower quartile away from the upper quartile.

\(IQR = Q_3 - Q_1\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the spread of the middle half of \(3,\; 7,\; 8,\; 5,\; 12,\; 14,\; 21,\; 13,\; 18\).

\(3,\; 7,\; 8,\; 5,\; 12,\; 14,\; 21,\; 13,\; 18\)

Step 2

Step 2 - Write the formula.

In this problem: The interquartile range is the gap between the upper and the lower quartile, which holds the middle half of the values.

\(IQR = Q_3 - Q_1\)

Step 3

Step 3 - Find the lower and the upper quartile.

In this problem: The quartiles of the list are \(Q_1 = 6\) and \(Q_3 = 16\).

\(Q_1 = 6,\; Q_3 = 16\)

Step 4

Step 4 - Substitute the quartiles into the formula.

In this problem: Replacing \(Q_3\) with \(16\) and \(Q_1\) with \(6\) gives \(IQR = 16 - 6\).

\(IQR = 16 - 6\)

Step 5

Step 5 - Subtract to get the interquartile range.

In this problem: Subtracting gives \(16 - 6 = 10\).

\(IQR = 16 - 6 = 10\)

Step 6

Step 6 - Show the interquartile range on a box plot.

In this problem: The interquartile range is the width of the box, from \(Q_1\) to \(Q_3\).

Box plot with the interquartile range marked

Final Answer

\(IQR = 10\)

Notes and Practice Mode

Example Problems

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