Interquartile Range (IQR) Formula

The interquartile range (IQR) is the range of the middle 50% of data, calculated as Q_3 - Q_1.

The Formula

IQR=Q3−Q1

Ask yourself: Do you need how spread out the middle half of the data is, ignoring the lowest and highest quarters?

Quick example

Q1=70, Q3=85. IQR=85−70=15 The middle 50% of scores spans 15 points.

Notation

IQR stands for Interquartile Range. Q1 is the 25th percentile and Q3 is the 75th percentile. The 1.5×IQR rule defines the outlier fences.

What this formula means

The interquartile range (IQR) is the range of the middle 50% of data, calculated as Q3−Q1. It measures spread while ignoring the top and bottom 25% of values, making it resistant to outliers.

The IQR is like measuring the width of the main crowd at an outdoor concert while ignoring the few people wandering at the back or pressed against the stage. Those stragglers can stand anywhere without changing the width of the crowd. The cost is that the IQR tells you nothing about how far the stragglers went.

Formal view

The interquartile range is IQR=Q3−Q1. Outliers are defined as observations below Q1−1.5⋅IQR or above Q3+1.5⋅IQR.

Worked examples

Example 1

medium
Find the IQR of 5,8,11,14,17,20,23,26.
Show solution

Answer

12

First step

1.
Eight values; median =(14+17)/2=15.5.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

medium
A box plot shows Q1=22, Q3=34. The largest value is 80. Does 80 qualify as a high outlier by the 1.5⋅IQR rule?

Example 3

medium
For 10,12,14,14,15,18,20,22, find the IQR.

Common mistakes

  • Confusing with range
  • Calculating from min/max instead of Q1/Q3
  • Forgetting it represents 50% of data

Why this formula matters

The IQR gives a spread that one strange value cannot wreck. If a single runner walks the course, the range of finishing times can double while the IQR hardly changes. It is also the standard ruler for deciding what counts as an outlier, so you can flag unusual values by a fixed rule instead of by guessing.

Frequently asked questions

What is the Interquartile Range (IQR) formula?

The interquartile range (IQR) is the range of the middle 50% of data, calculated as Q3−Q1. It measures spread while ignoring the top and bottom 25% of values, making it resistant to outliers.

How do you use the Interquartile Range (IQR) formula?

Use the IQR when a question asks for the spread of the middle 50%, gives quartiles or a box plot, or involves data with outliers or a long tail, where the range would mislead. Compute Q3−Q1. To flag outliers, go 1.5×IQR below Q1 and above Q3. If the data are roughly symmetric with no outliers and you are reporting the mean, the MAD or standard deviation is the matching spread.

What do the symbols mean in the Interquartile Range (IQR) formula?

IQR stands for Interquartile Range. Q1 is the 25th percentile and Q3 is the 75th percentile. The 1.5×IQR rule defines the outlier fences.

Why is the Interquartile Range (IQR) formula important in Statistics?

The IQR gives a spread that one strange value cannot wreck. If a single runner walks the course, the range of finishing times can double while the IQR hardly changes. It is also the standard ruler for deciding what counts as an outlier, so you can flag unusual values by a fixed rule instead of by guessing.

What do students get wrong about Interquartile Range (IQR)?

Students often know a procedure related to interquartile range (iqr) but skip the recognition step: Do you need how spread out the middle half of the data is, ignoring the lowest and highest quarters? That leads to a calculation or graph that looks reasonable but answers a different question.

What should I learn before the Interquartile Range (IQR) formula?

Before studying the Interquartile Range (IQR) formula, you should understand: stat quartiles, stat range.