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.
Interquartile Range in a picture
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
- 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
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.
Interquartile Range examples, step by step
Example 1: IQR with an even count
Find the IQR of 3, 5, 6, 8, 10, 12, 15, 20.
- There are 8 values, already in order. Lower half: 3, 5, 6, 8. Upper half: 10, 12, 15, 20.
- Q1 = 5 + 62 = 5.5 and Q3 = 12 + 152 = 13.5.
- IQR = 13.5 − 5.5 = 8.
Answer: The IQR is 8.
Example 2: IQR with an odd count
Find the IQR of the ages 21, 14, 9, 30, 17, 12, 25.
- Order: 9, 12, 14, 17, 21, 25, 30. The median is 17.
- Leave 17 out. Lower half: 9, 12, 14, so Q1 = 12. Upper half: 21, 25, 30, so Q3 = 25.
- IQR = 25 − 12 = 13.
Answer: The IQR is 13 years.
Example 3: Is it an outlier?
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?
- IQR = 52 − 40 = 12.
- 1.5 × 12 = 18.
- Upper fence: 52 + 18 = 70.
- 75 is greater than 70.
Answer: Yes. 75 minutes is above the upper fence of 70, so it is an outlier.
Common mistakes
Quartiles are medians of halves of the ordered data.
The IQR measures only the middle half; the range uses the extremes.
Like the range, the IQR is a distance, not an interval.
Not to be confused with
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.
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
Find the IQR of 1, 3, 4, 6, 9, 11, 14, 18.
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.Show answer and explanation
A box plot has Q1 = 20 and Q3 = 32. What is the IQR?
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.Show answer and explanation
Q1 = 10 and Q3 = 18. Which value is an outlier by the 1.5 × IQR rule?
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.Show answer and explanation
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
- Common Core State Standards, Grade 6 Statistics and Probability (6.SP.A.3, 6.SP.B.5.c)
- OpenStax, Introductory Statistics 2e, 2.3 Measures of the Location of the Data
- 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
Browse all terms in the Math Dictionary · More statistics terms · Random term