Interquartile Range: Definition, Method and Examples

MathPublished

Interquartile Range: Definition, Method and Examples

The interquartile range (IQR), sometimes called the quartile range or the middle fifty percent range, is a statistical measure that describes the spread of the middle 5050 percent of an ordered data set. It is found by subtracting the lower quartile (Q1Q_{1}) from the upper quartile (Q3Q_{3}). This value helps you understand how concentrated the central data points are.

What is the interquartile range?

To understand the interquartile range, you must first understand quartiles. Quartiles divide an ordered list of data into four equal parts.


The first mark is the lower quartile (Q1Q_{1}), representing the 2525th percentile. The second mark is the median, representing the 5050th percentile. The third mark is the upper quartile (Q3Q_{3}), representing the 7575th percentile.


The interquartile range focuses exclusively on the central half of the values.

A number line with twelve dots divided into four equal sections. The middle six dots are bracketed and labeled Middle 50 percent Interquartile Range.

A small interquartile range means the central data values are grouped tightly together. A large interquartile range means the middle values are widely spread out.

Find Q1 and Q3

Before you can find the interquartile range, you must identify the quartiles.

  1. Order the data from smallest to largest.
  2. Find the median to split the data into a lower half and an upper half. If the number of values is odd, do not include the median in either half.
  3. Find Q1Q_{1} by locating the median of the lower half.
  4. Find Q3Q_{3} by locating the median of the upper half.

An ordered list of seven numbers with 15 identified as the lower quartile, 20 as the median, and 29 as the upper quartile.

Use the IQR formula

Once the quartiles are identified, subtract the lower quartile from the upper quartile.

The standard formula is:

IQR=Q3−Q1IQR = Q_{3} - Q_{1}


You will always subtract the smaller quartile from the larger quartile. Because the upper quartile is always greater than or equal to the lower quartile, the interquartile range can never be negative.

Compare IQR and range

The standard range in statistics is the difference between the absolute highest and lowest values in a complete data set.


While the full range is easy to calculate, it is easily distorted by outliers. An outlier is a single extreme value that is much higher or lower than the rest of the data.


Because the interquartile range ignores the lowest 2525 percent and the highest 2525 percent of the data, it completely ignores extreme outliers. This makes it a more reliable measure of spread for data sets that contain unusual extreme values.

Read IQR from a box plot or graph

Statistical graphs often display quartiles visually, allowing you to calculate the interquartile range quickly.


You can easily read the interquartile range from box plots. In a box plot, the left edge of the central box represents Q1Q_{1} and the right edge represents Q3Q_{3}. The physical length of the box is the interquartile range.

A box plot on a number line from 0 to 100. A bracket above the box from 30 to 70 shows an interquartile range of 40.


You can also estimate the interquartile range from a cumulative frequency curve by locating the 2525th percentile and 7575th percentile on the cumulative frequency axis, reading across to the curve, and dropping down to the data axis to identify Q1Q_{1} and Q3Q_{3}.

Worked examples


Example 1: Odd number of ordered values


Question: Find the interquartile range for the ordered data set: 2,5,8,10,11,14,152, 5, 8, 10, 11, 14, 15.


Method:

  1. The data is already ordered. Count the values to find the median.
  2. With 77 values, the median is the fourth value (1010).
  3. Find Q1Q_{1}, the median of the lower half (2,5,82, 5, 8). Here, Q1=5Q_{1} = 5.
  4. Find Q3Q_{3}, the median of the upper half (11,14,1511, 14, 15). Here, Q3=14Q_{3} = 14.
  5. Subtract Q1Q_{1} from Q3Q_{3} to find the interquartile range.

Answer: The interquartile range is 14−5=914 - 5 = 9.


Check: The middle 5050 percent of the values lies between 55 and 1414, spanning a distance of 99.


Example 2: Reading from a box plot


Question: A box plot shows the heights of plants in a greenhouse. The left edge of the box is at 1414 centimeters and the right edge is at 2626 centimeters. Calculate the interquartile range.


Method:

  1. Identify the lower quartile (Q1Q_{1}). In a box plot, this is the left edge of the central box. Here, Q1=14Q_{1} = 14.
  2. Identify the upper quartile (Q3Q_{3}). This is the right edge of the central box. Here, Q3=26Q_{3} = 26.
  3. Subtract Q1Q_{1} from Q3Q_{3}.

Answer: The interquartile range is 26−14=1226 - 14 = 12 centimeters.


Check: A distance of 1212 exactly spans the box from 1414 to 2626.


Example 3: Unordered data with an outlier


Question: Find the interquartile range for these test scores: 45,82,75,88,71,91,7845, 82, 75, 88, 71, 91, 78.


Method:

  1. Order the data from smallest to largest: 45,71,75,78,82,88,9145, 71, 75, 78, 82, 88, 91.
  2. Find the median. The fourth value out of 77 is 7878.
  3. Identify the lower half, excluding the median: 45,71,7545, 71, 75. The middle value is Q1=71Q_{1} = 71.
  4. Identify the upper half, excluding the median: 82,88,9182, 88, 91. The middle value is Q3=88Q_{3} = 88.
  5. Subtract Q1Q_{1} from Q3Q_{3}.

Answer: The interquartile range is 88−71=1788 - 71 = 17.


Check: The full range is 91−45=4691 - 45 = 46, but the IQR is 1717, showing how the outlier (4545) heavily affects the full range but not the IQR.

Common mistakes

Forgetting to order the data

The most common mistake is finding the middle of a list before arranging the numbers from smallest to largest. Quartiles are based on numerical order, not appearance.


Confusing the position with the value

Sometimes the formula tells you that Q1Q_{1} is the 33rd value in the list. Do not mistakenly write down 33 as the answer. You must find the actual number sitting in the 33rd position in your ordered list.


Calculating the full range instead

Make sure you are subtracting Q1Q_{1} from Q3Q_{3}. Do not accidentally subtract the minimum from the maximum.

Frequently asked questions

Can the interquartile range be zero?

Yes. If the middle 5050 percent of your data consists of the exact same number, Q1Q_{1} and Q3Q_{3} will be identical, resulting in an interquartile range of zero.


Can the interquartile range be negative?

No. Because the upper quartile is always greater than or equal to the lower quartile, subtracting Q1Q_{1} from Q3Q_{3} will always result in a positive number or zero.


Are outliers used to calculate the interquartile range?

Outliers must remain in the list while you are ordering the data and finding the median. However, because they sit at the extreme ends of the list, they do not affect the final values of the quartiles.

Practice questions

Question

A dot plot with dots at 10, 12, 14, 15, 18, 20, and 22 on a number line without marking the quartiles or the median.

What is the interquartile range of the data shown on the dot plot?

  • 1212

  • 88

  • 1010

  • 2020

Answer:

88

Question

Find the interquartile range for the following data set: 4,6,8,9,12,14,15,184, 6, 8, 9, 12, 14, 15, 18.

  • 7.57.5

  • 77

  • 10.510.5

  • 1414

Answer:

7.57.5

Question

A box plot on an axis from 0 to 50 with the left edge of the box at 15 and the right edge of the box at 40.

What is the interquartile range of the data represented by the box plot?

  • 4040

  • 2525

  • 1515

  • 3535

Answer:

2525

Question

Why is the interquartile range sometimes a better measure of spread than the full range?

  • It uses every single data value in its calculation.

  • It is not affected by extreme values or outliers.

  • It represents the distance between the smallest and largest numbers.

  • It is always larger than the standard range.

Answer:

It is not affected by extreme values or outliers.

Question

Find the interquartile range of this unordered data set: 32,11,14,18,15,12,1932, 11, 14, 18, 15, 12, 19.

  • 2121

  • 77

  • 1010

  • 88

Answer:

77