The interquartile range, often called the IQR, is a statistical measurement that shows how spread out the middle half of your data is. Think of it as a way to understand where most of your information clusters together. If you're looking at test scores, house prices, or any set of numbers, the interquartile range tells you about the distance between the middle values.
Find Your Car's Engine Size by VIN Number →
Statistics often focus on measures like the average or mean, but these can be misleading. For example, if you have five salaries of $30,000, $32,000, $31,000, $33,000, and $500,000, the average is about $125,200. That number doesn't reflect what most people actually earn in this group. The interquartile range helps you see past extreme values and understand the typical spread of your data.
The IQR is particularly useful when you have outliers—values that are much higher or much lower than the rest. Real-world data almost always contains outliers. Maybe one student scored significantly higher on a test, or one house sold for much more than others in the neighborhood. The interquartile range focuses on the central 50 percent of your values, so it gives you a clearer picture of normal variation.
Understanding the IQR builds a foundation for working with data in fields like healthcare, business, education, and research. When analysts look at patient recovery times, sales figures, or student performance, they often report the interquartile range alongside other statistics to provide a complete picture.
Practical takeaway: The interquartile range measures the spread of the middle 50 percent of your data, making it a reliable way to understand typical variation without being thrown off by extreme values.
Before calculating the interquartile range, you need to understand quartiles. A quartile divides your data into four equal parts. The word "quartile" comes from "quarter," meaning one-fourth. When you divide your data into quarters, you create three dividing points, each marking where 25 percent of your data lies below.
Learn About Wireless Savings Options and Plans →
The median is the middle value in your dataset—the point where half your values fall below and half fall above. In statistical terms, the median is also called the second quartile, or Q2. It's your starting point for finding other quartiles. For example, if you arrange the numbers 1, 2, 3, 4, 5 in order, the median is 3. Two values fall below it, and two fall above it.
The first quartile, called Q1, marks the point where 25 percent of your values fall below it. The third quartile, called Q3, marks the point where 75 percent of your values fall below it. This means 25 percent of your values fall above Q3. The distance between Q1 and Q3 is what we call the interquartile range.
Here's a concrete example. Imagine you have test scores: 45, 52, 58, 63, 70, 78, 82, 85, 90, 95. The median (Q2) is between 70 and 78, which equals 74. The first quartile (Q1) is between 52 and 58, which equals 55. The third quartile (Q3) is between 85 and 90, which equals 87.5. The interquartile range is 87.5 minus 55, which equals 32.5.
Practical takeaway: Quartiles divide your data into four sections, with the median at the center. Q1 represents the 25th percentile, and Q3 represents the 75th percentile. Your IQR is simply Q3 minus Q1.
Calculating the interquartile range involves five straightforward steps. Following this process consistently will help you get accurate results every time, whether you're working with five data points or five hundred.
How to Plant and Grow Peach Trees From Seeds →
Step 1: Arrange your data in order from smallest to largest. This is absolutely essential. You cannot find quartiles if your numbers are scattered randomly. Write out every value, even if some numbers repeat. For instance, if you're measuring how many hours students study per week, list: 5, 8, 10, 10, 12, 14, 15, 18, 20.
Step 2: Find the median of your entire dataset. Count how many values you have. If you have an odd number of values, the median is the middle value. If you have an even number of values, the median is the average of the two middle values. For the study hours example above with 9 values, the median is the 5th value, which is 12.
Step 3: Find Q1 by determining the median of the lower half. Take all the values below your main median and find their median. In our example, the lower half is 5, 8, 10, 10, 12. Wait—should we include the 12? When you have an odd number of total values, exclude the main median from both halves. So the lower half is 5, 8, 10, 10. The median of these four values is (8 + 10) ÷ 2 = 9. So Q1 = 9.
Step 4: Find Q3 by determining the median of the upper half. Take all the values above your main median and find their median. The upper half is 14, 15, 18, 20. The median of these four values is (15 + 18) ÷ 2 = 16.5. So Q3 = 16.5.
Step 5: Subtract Q1 from Q3 to get your IQR. In this case, 16.5 - 9 = 7.5 hours. The interquartile range for study time is 7.5 hours.
Practical takeaway: Order your data, find the median, identify the median of the lower half for Q1, identify the median of the upper half for Q3, then subtract Q1 from Q3 to get your IQR.
Let's examine several examples to solidify how this process works in real situations. Understanding different scenarios helps you handle whatever data you encounter.
Get Your Free Guide to Downloading Apps on LG TVs →
Example 1: An odd number of values Suppose you measure the number of customers entering a store each hour over 11 hours: 12, 18, 15, 22, 19, 25, 28, 30, 26, 32, 35. First, arrange them in order: 12, 15, 18, 19, 22, 25, 26, 28, 30, 32, 35. The median is the 6th value = 25. The lower half (excluding 25) is 12, 15, 18, 19, 22. Q1 = 18. The upper half is 26, 28, 30, 32, 35. Q3 = 30. IQR = 30 - 18 = 12 customers.
Example 2: An even number of values Suppose you have 8 test scores: 72, 85, 91, 68, 79, 88, 95, 76. Arranged: 68, 72, 76, 79, 85, 88, 91, 95. With an even number, the median is the average of the 4th and 5th values: (79 + 85) ÷ 2 = 82. The lower half is 68, 72, 76, 79. Q1 = (72 + 76) ÷ 2 = 74. The upper half is 85, 88, 91, 95. Q3 = (88 + 91) ÷ 2 = 89.5. IQR = 89.5 - 74 = 15.5 points.
Example
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.