Interquartile Range Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Interquartile Range.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

The interquartile range (IQR) is Q3โˆ’Q1Q3 - Q1 โ€” the spread of the middle 50% of the data, resistant to outliers.

The IQR ignores the extreme 25% on each end, capturing only the spread of the central bulk of data โ€” making it robust when outliers inflate the regular range.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: IQR throws away the extreme 25% on each end and measures only how wide the central 50% of the data is.

Common stuck point: The procedure for interquartile range is the easy part; the trap is subtracting min from max instead of Q3โˆ’Q1Q_3-Q_1. Asking "Am I measuring the width of the middle half of sorted data, not the full extent?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Am I measuring the width of the middle half of sorted data, not the full extent?

Worked Examples

Example 1

easy
Calculate the IQR for: {15,22,28,35,42,50,58,65}\{15, 22, 28, 35, 42, 50, 58, 65\} and explain what it measures.

Answer

IQR=29IQR = 29

First step

1
Find Q1Q_1: lower half is {15,22,28,35}\{15, 22, 28, 35\}; Q1=22+282=25Q_1 = \frac{22+28}{2} = 25

Full solution

  1. 2
    Find Q3Q_3: upper half is {42,50,58,65}\{42, 50, 58, 65\}; Q3=50+582=54Q_3 = \frac{50+58}{2} = 54
  2. 3
    Calculate IQR: IQR=Q3โˆ’Q1=54โˆ’25=29IQR = Q_3 - Q_1 = 54 - 25 = 29
  3. 4
    Interpretation: the middle 50% of values span a range of 29 units
The IQR measures the spread of the middle 50% of data. It is resistant to outliers (unlike the range) because it ignores the top and bottom 25% of values. A larger IQR indicates more variability in the central portion of the data.

Example 2

medium
Data set A: {1,2,3,4,5,6,7,8,9,100}\{1, 2, 3, 4, 5, 6, 7, 8, 9, 100\} and Data set B: {1,2,3,4,5,6,7,8,9,10}\{1, 2, 3, 4, 5, 6, 7, 8, 9, 10\}. Compare the range and IQR for both sets and explain why IQR is preferred as a measure of spread.

Example 3

medium
Find the IQR of test scores: 55,60,62,68,72,75,78,80,85,9055,60,62,68,72,75,78,80,85,90.

Example 4

hard
Data: 5,10,12,14,18,22,25,30,2005, 10, 12, 14, 18, 22, 25, 30, 200. Find the IQR and decide whether 200200 is an outlier.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
A box plot shows Q1=30Q_1 = 30 and Q3=50Q_3 = 50. Calculate the IQR and the lower and upper fences for outlier detection.

Example 2

hard
A data set has Q1=40Q_1 = 40, median =55= 55, Q3=70Q_3 = 70. A new value of 120 is added. Without recalculating quartiles, explain why the IQR may remain unchanged and identify whether 120 is an outlier.

Example 3

easy
For the ordered data with Q1=12Q1 = 12 and Q3=20Q3 = 20, find the interquartile range.

Example 4

easy
A data set has Q1=5Q1 = 5 and Q3=17Q3 = 17. What is the IQR?

Example 5

easy
Find the IQR for the ordered set 2,4,6,8,10,12,14,162, 4, 6, 8, 10, 12, 14, 16 (lower half 2,4,6,82,4,6,8; upper half 10,12,14,1610,12,14,16).

Example 6

easy
A box plot shows the box edges at 3030 and 4848. What is the IQR?

Example 7

easy
Is the IQR resistant to a single extreme outlier? Answer yes or no.

Example 8

easy
The range of a data set is 4040 and the IQR is 1515. Which measures the spread of the middle half?

Example 9

easy
For the set 7,7,7,7,77,7,7,7,7, all values equal 77. What is the IQR?

Example 10

easy
Given Q1=100Q1 = 100 and Q3=100Q3 = 100, what is the IQR, and what does it tell you?

Example 11

medium
For the ordered set 3,5,7,9,11,13,153,5,7,9,11,13,15 (7 values, median =9=9), find the IQR. Use the lower half 3,5,73,5,7 and upper half 11,13,1511,13,15.

Example 12

medium
A test has Q1=72Q1=72, median =80=80, Q3=88Q3=88. A new student scores 150150 (the new maximum). Does the IQR change?

Example 13

medium
The IQR of a data set is 2020 and Q1=35Q1 = 35. Find Q3Q3.

Example 14

medium
An outlier is often flagged if it lies more than 1.5ร—IQR1.5 \times \text{IQR} below Q1Q1 or above Q3Q3. If Q1=20Q1=20, Q3=40Q3=40, find the upper outlier boundary.

Example 15

medium
Find the lower outlier fence for Q1=20Q1=20, Q3=40Q3=40 using the 1.5ร—IQR1.5\times\text{IQR} rule.

Example 16

medium
Two classes have the same median test score. Class A has IQR =4=4; Class B has IQR =18=18. Which class has more consistent middle-half scores?

Example 17

medium
A five-number summary is min =4=4, Q1=10Q1=10, median =15=15, Q3=22Q3=22, max =40=40. Compare the IQR with the range.

Example 18

medium
Data: 10,12,12,13,14,15,16,18,19,4010,12,12,13,14,15,16,18,19,40 (10 values). Lower half is the first five, upper half the last five. Find the IQR.

Example 19

challenge
A symmetric data set has IQR =10=10 and median =50=50. Assuming the 1.5ร—IQR1.5\times\text{IQR} rule, give the full interval of values that are NOT flagged as outliers, given Q1=45Q1=45 and Q3=55Q3=55.

Example 20

challenge
Set A: 1,2,3,4,5,6,7,81,2,3,4,5,6,7,8. Multiply every value by 33 to get Set B. By what factor does the IQR change?

Example 21

challenge
Adding the same constant cc to every value of a data set changes the IQR how? Justify briefly.

Example 22

medium
A data set has Q1=14Q1=14 and an IQR of 99. A box plot is drawn. Where is the right edge of the box?

Example 23

easy
Q1=8Q_1=8 and Q3=23Q_3=23. Find the IQR.

Example 24

easy
A box plot shows the box from 4040 to 7070. What is the IQR?

Example 25

easy
For the data {4,6,8,10,12,14,16,18}\{4,6,8,10,12,14,16,18\} find the IQR. (Lower half: 4,6,8,104,6,8,10; upper half: 12,14,16,1812,14,16,18.)

Example 26

easy
True or false: the IQR can be negative.

Example 27

easy
Q1=15Q_1=15, Q3=45Q_3=45. Find the IQR.

Example 28

medium
For the data 2,5,7,8,10,13,14,16,202, 5, 7, 8, 10, 13, 14, 16, 20, find the IQR. (9 values; median =10=10; lower half 2,5,7,82,5,7,8; upper half 13,14,16,2013,14,16,20.)

Example 29

medium
Class A: range =20=20, IQR =4=4. Class B: range =20=20, IQR =12=12. Which class is more clustered around its center?

Example 30

medium
IQR =12=12 and Q3=50Q_3 = 50. Find Q1Q_1.

Example 31

medium
With Q1=10Q_1=10, Q3=22Q_3=22, what is the upper outlier fence using the 1.5ร—IQR1.5 \times \text{IQR} rule?

Example 32

medium
Q1=10Q_1=10, Q3=22Q_3=22. What is the lower outlier fence?

Example 33

medium
Data set has Q1=30Q_1=30, median =45=45, Q3=58Q_3=58. Is the value 9595 an outlier using the 1.5ร—1.5\timesIQR rule?

Example 34

medium
Multiplying every value of a data set by 44 changes the IQR by what factor?

Example 35

medium
A five-number summary is min =2=2, Q1=12Q_1=12, med =18=18, Q3=24Q_3=24, max =40=40. Compare IQR and range.

Example 36

hard
For the data 3,7,8,5,12,15,9,11,2,103,7,8,5,12,15,9,11,2,10, find the IQR after sorting.

Example 37

hard
Test scores {60,70,75,80,82,85,88,92,95,100}\{60,70,75,80,82,85,88,92,95,100\}. After replacing 100100 with 200200, does the IQR change?

Example 38

hard
A box plot has whisker endpoints at 55 and 9595, box from 3030 to 7070. Identify the IQR and check if 9595 is an outlier under the 1.5ร—1.5\timesIQR rule.

Example 39

hard
Two data sets have the same median but Class X has IQR =2=2 and Class Y has IQR =14=14. Which class has scores more spread out around the median?

Example 40

hard
A symmetric data set has Q1=40,Q3=60Q_1=40, Q_3=60. Give the interval of values NOT flagged as outliers.

Example 41

challenge
A data set of 200 values has Q1=30,Q3=60Q_1=30, Q_3=60. Approximately how many values lie in [30,60][30,60]?

Example 42

challenge
After a linear transformation y=5x+7y = 5x + 7, the IQR of xx is 44. What is the IQR of yy?

Example 43

challenge
Why is IQR generally preferred over standard deviation when a data set has heavy tails or extreme outliers?

Related Concepts

Background Knowledge

These ideas may be useful before you work through the harder examples.

quartiles