Interquartile Range

Definitionnoun phrase

What is the interquartile range in math?

The interquartile range (IQR) is the spread of the middle half of a data set: the third quartile minus the first quartile, IQR = Q3 − Q1. Because it ignores the lowest and highest quarters of the data, outliers barely change it. In a box plot it is the length of the box.

In Spanish
rango intercuartílico
Also called
IQR, midspread, middle 50%, H-spread
Grade level
6-8
Grade 6Grade 7Algebra 1StatisticsCCSS 6.SP.A.3CCSS 6.SP.B.5.cCCSS HSS-ID.A.2SATACTGEDAP

Interquartile Range in a picture

Finding the interquartile rangeEleven ordered values 2, 4, 5, 7, 8, 10, 12, 13, 15, 18, 34 with Q1 = 5, median 10 and Q3 = 15 highlighted. Below, a box plot on a number line from 0 to 36: the box runs from 5 to 15 and is labeled IQR = 15 minus 5 = 10, the median line is at 10, whiskers reach 2 and 18, and 34 is plotted as an outlier because it is above 15 + 1.5 times 10 = 30.11 values in order24578101213151834Q1medianQ3lower half: 2, 4, 5, 7, 8upper half: 12, 13, 15, 18, 34061218243036outlierIQR = 15 − 5 = 10upper fence: 15 + 1.5 × 10 = 30, and 34 > 30
The IQR is the width of the box: the middle half of the data. The far value 34 stretches the range to 32 but leaves the IQR at 10.

Formal definition and notation

Order the data and find the median. The first quartile Q1 is the median of the lower half and the third quartile Q3 is the median of the upper half; with an odd count, leave the median itself out of both halves. The interquartile range is IQR = Q3 − Q1, the distance between the first and third quartiles. It is a measure of variability that is resistant to extreme values.

Symbol Read it as Meaning
IQR I Q R, or interquartile range Q3 − Q1
Q1 Q one first quartile, the 25th percentile
Q3 Q three third quartile, the 75th percentile

Key facts

  • About half of the data lie between Q1 and Q3, inside a span of one IQR.
  • The IQR is never negative, and it is 0 when the middle half of the values are all equal.
  • The range uses the two most extreme values; the IQR skips them, so it is the better spread for skewed data or data with outliers.
  • Pair the IQR with the median, and the standard deviation with the mean.
  • The 1.5 × IQR rule flags possible outliers; box plots draw them as separate dots.
  • Different calculators find quartiles in slightly different ways, so a small data set can give slightly different IQRs.

Interquartile range formula

Interquartile range formula
IQR = Q3 − Q1
Q1
median of the lower half of the ordered data
Q3
median of the upper half of the ordered data

Outlier test: a value is a possible outlier if it is below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.

Try it: the middle half

Interactive

The box shows Q1 to Q3, and the readout gives the IQR. Drag the largest dot far to the right: the range jumps, but the IQR stays put.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Interquartile Range examples, step by step

Example 1: IQR with an even count

Warm-up

Find the IQR of 3, 5, 6, 8, 10, 12, 15, 20.

  1. There are 8 values, already in order. Lower half: 3, 5, 6, 8. Upper half: 10, 12, 15, 20.
  2. Q1 = 5 + 62 = 5.5 and Q3 = 12 + 152 = 13.5.
  3. IQR = 13.5 − 5.5 = 8.

Answer: The IQR is 8.

Example 2: IQR with an odd count

Core

Find the IQR of the ages 21, 14, 9, 30, 17, 12, 25.

  1. Order: 9, 12, 14, 17, 21, 25, 30. The median is 17.
  2. Leave 17 out. Lower half: 9, 12, 14, so Q1 = 12. Upper half: 21, 25, 30, so Q3 = 25.
  3. IQR = 25 − 12 = 13.

Answer: The IQR is 13 years.

Example 3: Is it an outlier?

Test-style

For a set of commute times, Q1 = 40 minutes and Q3 = 52 minutes. Is a commute of 75 minutes an outlier by the 1.5 × IQR rule?

  1. IQR = 52 − 40 = 12.
  2. 1.5 × 12 = 18.
  3. Upper fence: 52 + 18 = 70.
  4. 75 is greater than 70.

Answer: Yes. 75 minutes is above the upper fence of 70, so it is an outlier.

Common mistakes

✗ MistakeFinding quartiles in unordered data: for 21, 14, 9, 30, 17, 12, 25, taking Q1 = 14 from the first three values.
✓ InsteadOrder first: 9, 12, 14, 17, 21, 25, 30, so Q1 = 12.

Quartiles are medians of halves of the ordered data.

✗ MistakeSubtracting the wrong numbers: IQR = max − min = 30 − 9 = 21.
✓ InsteadThat is the range. IQR = Q3 − Q1 = 25 − 12 = 13.

The IQR measures only the middle half; the range uses the extremes.

✗ MistakeGiving the quartiles as the answer: “IQR = 12 to 25.”
✓ InsteadThe IQR is one number, the difference: 25 − 12 = 13.

Like the range, the IQR is a distance, not an interval.

Not to be confused with

Interquartile Rangevs.Range

The range is maximum minus minimum and uses every extreme value. For 2, 4, 5, 7, 8, 10, 12, 13, 15, 18, 34 the range is 32 but the IQR is only 10.

Interquartile Rangevs.Quartile

A quartile is a single cut point, like Q1 = 5. The IQR is the distance between two of them, Q3 − Q1.

Quick check: 3 questions

Question 1 of 3

Find the IQR of 1, 3, 4, 6, 9, 11, 14, 18.

Show answer and explanation

Answer: D. Lower half 1, 3, 4, 6 gives Q1 = 3.5; upper half 9, 11, 14, 18 gives Q3 = 12.5. IQR = 12.5 − 3.5 = 9. 17 is the range, and 12.5 and 3.5 are the quartiles themselves, not the distance between them.

Question 2 of 3

A box plot has Q1 = 20 and Q3 = 32. What is the IQR?

Show answer and explanation

Answer: A. IQR = 32 − 20 = 12. 26 is the midpoint of the box, 52 is the sum, and “20 to 32” names the quartiles instead of the distance between them.

Question 3 of 3

Q1 = 10 and Q3 = 18. Which value is an outlier by the 1.5 × IQR rule?

Show answer and explanation

Answer: C. IQR = 8 and 1.5 × 8 = 12, so the fences are 10 − 12 = −2 and 18 + 12 = 30. Only 31 is outside. 0 and 28 are inside the fences, and 25 is well inside.

Interquartile Range: frequently asked questions

Why use the IQR instead of the range?

The range depends only on the two most extreme values, so one unusual value can make it huge. The IQR measures the middle 50% of the data and ignores the top and bottom quarters, so outliers barely move it. That makes it the better measure of spread for skewed data, such as incomes or home prices.

Do you include the median when finding the quartiles?

In the method taught with Common Core and most US textbooks, no: with an odd number of values, leave the median out and find the medians of the two halves. With an even count, the data split evenly, so nothing is left out. Some calculators and spreadsheets use other rules and can give slightly different quartiles.

Practice and tools

Sources

  1. Common Core State Standards, Grade 6 Statistics and Probability (6.SP.A.3, 6.SP.B.5.c)
  2. OpenStax, Introductory Statistics 2e, 2.3 Measures of the Location of the Data
  3. Common Core State Standards, Mathematics Glossary (interquartile range)

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 6.SP.A.3, CCSS 6.SP.B.5.c, CCSS HSS-ID.A.2

Cite this entry

Effortless Math Team. “Interquartile Range.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/interquartile-range/

Flashcard

TermInterquartile RangeQ3 − Q1
DefinitionThe spread of the middle half of the data. For 2, 4, 5, 7, 8, 10, 12, 13, 15, 18, 34: Q1 = 5, Q3 = 15, IQR = 10.
Study the full deck

Browse all terms in the Math Dictionary · More statistics terms · Random term