Interquartile Range Formula

The interquartile range (IQR) is Q3 - Q1 — the spread of the middle 50% of the data, resistant to outliers.

The Formula

IQR=Q3−Q1

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

Quick example

Data: {2,5,7,9,12,15,20}. Q1=5, Q3=15, IQR=15−5=10.

Notation

IQR=Q3−Q1; the middle 50% of the data

What this formula means

The interquartile range (IQR) is Q3−Q1 — the spread of the middle 50% of the data, resistant to outliers.

The IQR measures the width of the middle of a concert crowd, ignoring the stragglers at the back and the fans pressed against the stage. However far the stragglers wander, the middle of the crowd stays the same width. The comparison fails for a tiny crowd, where there is hardly a middle to measure.

Formal view

IQR=Q3−Q1 where Q1=Q0.25 and Q3=Q0.75 are the first and third quartiles

Worked examples

Example 1

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

Answer

IQR=29

First step

1.
Find Q1: lower half is {15,22,28,35}; Q1=22+282=25

Full solution

  1. 2.
    Find Q3: upper half is {42,50,58,65}; Q3=50+582=54
  2. 3.
    Calculate IQR: IQR=Q3−Q1=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} and Data set B: {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,90.

Common mistakes

  • Subtracting min from max instead of Q3−Q1 — the IQR uses the quartiles, never the extreme values.
  • Computing quartiles on unsorted data — order the data from smallest to largest before finding Q1 and Q3.
  • Confusing Q3−Q1 with Q2 — the IQR is a width (a difference), not the median itself.

Why this formula matters

One extreme value can double or triple the range while the IQR stays put, so the IQR gives an honest typical spread for messy real data. It also turns spotting outliers into a rule rather than a hunch: more than 1.5×IQR beyond Q1 or Q3. Without it, a single data-entry error, like a 600-minute commute, can distort every comparison.

Frequently asked questions

What is the Interquartile Range formula?

The interquartile range (IQR) is Q3−Q1 — the spread of the middle 50% of the data, resistant to outliers.

How do you use the Interquartile Range formula?

Use the IQR when you need the spread of data that is skewed or has outliers, or when a question mentions the middle 50%, the length of a box plot's box, or the 1.5×IQR outlier rule. Pair it with the median, since both depend only on order. If the data is roughly symmetric with no outliers, the standard deviation uses more of the information. If the question asks for the full extent from smallest to largest, give the range.

What do the symbols mean in the Interquartile Range formula?

IQR=Q3−Q1; the middle 50% of the data

Why is the Interquartile Range formula important in Math?

One extreme value can double or triple the range while the IQR stays put, so the IQR gives an honest typical spread for messy real data. It also turns spotting outliers into a rule rather than a hunch: more than 1.5×IQR beyond Q1 or Q3. Without it, a single data-entry error, like a 600-minute commute, can distort every comparison.

What do students get wrong about Interquartile Range?

The procedure for interquartile range is the easy part; the trap is subtracting min from max instead of Q3−Q1. 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.

What should I learn before the Interquartile Range formula?

Before studying the Interquartile Range formula, you should understand: quartiles.