The interquartile range (IQR) is the middle 50% of your data. You find it by subtracting the first quartile (25th percentile) from the third quartile (75th percentile). The IQR tells you how spread out the central half of your numbers are, and it is a favorite tool among statisticians because it resists the pull of outliers. If you have one wildly high or low number in your data set, the IQR stays stable while other measures like the range or standard deviation can become distorted.
What Exactly Is the Interquartile Range?
The IQR measures statistical dispersion, which is a fancy way of saying it shows how spread out your data is. Think of it as a box that holds the middle 50% of your values. The bottom edge of the box is the first quartile (Q1), the top edge is the third quartile (Q3), and the line inside the box is the median.
Here is the simple formula: IQR = Q3 − Q1. That is the entire calculation. The hard part is not the math—it is finding Q1 and Q3 correctly, especially when your data set has an even number of values.
Why does this matter? The IQR is the backbone of the box plot, a standard chart used in research and business analytics. It also powers the most common method for flagging outliers, which we will cover shortly.
How To Interpret Iqr In Statistics With Examples: A Step-by-Step Walkthrough
Let us walk through a real example with actual numbers. Suppose you have test scores from ten students: 55, 61, 68, 72, 75, 79, 82, 88, 91, 150.
Step 1: Order the data. It is already in ascending order, which is essential. If it were not, you would sort it first.
Step 2: Find the median. With ten values, the median is the average of the 5th and 6th numbers: (75 + 79) / 2 = 77. This splits the data into two halves.
Step 3: Find Q1. Q1 is the median of the lower half: 55, 61, 68, 72, 75. The middle value is 68, so Q1 = 68.
Step 4: Find Q3. Q3 is the median of the upper half: 79, 82, 88, 91, 150. The middle value is 88, so Q3 = 88.
Step 5: Subtract. IQR = 88 − 68 = 20.
That IQR of 20 tells you the middle 50% of students scored within a 20-point band. Notice the score of 150 did not pull the IQR upward. The range, by contrast, is 150 − 55 = 95, a number heavily inflated by that single outlier. This is precisely why the IQR is preferred when your data contains extreme values.
What Does a Large or Small IQR Mean?
A small IQR means your central data points are tightly clustered. In our example, an IQR of 20 suggests most students performed within a narrow band. A large IQR means the middle half of your data is spread widely, indicating greater variability in whatever you are measuring.
Consider two factories producing bolts. Factory A has an IQR of 0.5 millimeters. Factory B has an IQR of 3 millimeters. Factory A is more consistent—the middle 50% of its bolts are nearly identical in diameter. Factory B has far more variation. This kind of comparison is used constantly in quality control, finance, and medical research.
One clarification matters here: the IQR says nothing about the overall shape of your data. Two data sets can have identical IQRs but completely different distributions. One could be symmetric, the other heavily skewed. Always pair the IQR with a box plot or histogram to see the full picture.
Using the IQR to Find Outliers
The most common practical use of the IQR is outlier detection. The standard rule is the 1.5 × IQR rule. Any value below Q1 − (1.5 × IQR) or above Q3 + (1.5 × IQR) is considered an outlier.
Using our test score example: Q1 = 68, Q3 = 88, IQR = 20. The lower fence is 68 − (1.5 × 20) = 38. The upper fence is 88 + (1.5 × 20) = 118. The score of 150 exceeds 118, so it is flagged as an outlier.
Some analysts use a stricter 3 × IQR rule to identify extreme outliers. In our example, the extreme upper fence would be 88 + (3 × 20) = 148. The score of 150 exceeds that too, marking it as an extreme outlier under this stricter criterion.
Being flagged as an outlier does not mean the value is wrong. It means the value is unusual relative to the rest of your data. In medical settings, an outlier might indicate a data entry error, a rare complication, or a genuinely atypical patient response. You must investigate before removing anything.
IQR vs. Standard Deviation: Which Should You Use?
Standard deviation is the other major measure of spread, but it behaves differently. Standard deviation uses every single value in the data set, including outliers. The IQR only uses the middle 50%.
Here is the practical guidance: use the IQR when your data is skewed or contains outliers. Use standard deviation when your data is roughly symmetric and free of extreme values. In finance, stock returns often have fat tails, so analysts frequently prefer the IQR. In controlled laboratory experiments with clean data, standard deviation is standard practice.
Both measures are valid. They answer slightly different questions. Standard deviation tells you the average distance from the mean. The IQR tells you the span of the central half. When you report either one, state which you used so your audience can interpret it correctly.
Common Mistakes When Calculating the IQR
The most frequent error involves even-numbered data sets. Different textbooks and software packages handle the median split differently. Some include the median in both halves; others exclude it. The results can differ slightly.
For example, with data set 1, 2, 3, 4, the median is 2.5. Some methods compute Q1 as the median of 1 and 2, giving 1.5. Others include 2.5 in the calculation, producing a different Q1. Excel, SPSS, and R all have their own conventions. Always check which method your software uses before comparing results across platforms.
Another mistake is using the IQR on data that has not been sorted. The quartile calculation assumes ascending order. If you skip this step, your results will be meaningless.
A third error is treating the IQR as a measure of central tendency. It is not. It measures spread. The median measures center. Do not confuse the two when reporting your findings.
Real-World Applications of the IQR
In medicine, researchers use the IQR to report the spread of lab values across patient groups. When a study says the median hospital stay was 4 days with an IQR of 2 to 6 days, that means half of the patients stayed between 2 and 6 days. This is more informative than the average, especially when a few patients stay for weeks.
In education, the IQR helps identify grade distributions that are unusually wide or narrow. A teacher whose class has a small IQR on an exam might conclude the test did not differentiate student performance well.
In business, salary surveys often report the IQR to show the typical pay range for a role. This avoids the distortion caused by a few executives earning many times the median worker. The IQR gives job seekers a realistic sense of what most people in that role earn.
In environmental science, the IQR is used to summarize pollutant measurements where occasional spikes occur. A single day of extremely high air pollution would distort the mean but barely affect the IQR, giving a more stable picture of typical conditions.
How the IQR Appears in Box Plots
A box plot is the visual representation of the IQR. The box spans from Q1 to Q3. A line inside the box marks the median. Whiskers extend to the smallest and largest values that are not outliers. Outliers appear as individual dots beyond the whiskers.
Reading a box plot is straightforward once you know this. A long box means high variability in the middle half of your data. A short box means tight clustering. If the median line sits near the bottom of the box, your data is skewed upward. If it sits near the top, your data is skewed downward.
Box plots are excellent for comparing multiple groups side by side. You can instantly see which group has the widest spread, which has the lowest median, and which contains outliers. This is why box plots are standard in scientific publications and data journalism.
Frequently Asked Questions
What does an IQR of zero mean?
An IQR of zero means the middle 50% of your data values are identical. This happens when at least half of your data points share the same value.
Can the IQR be larger than the range?
No. The IQR can never exceed the range because the middle 50% is always a subset of the entire data span. The range includes the extremes; the IQR does not.
Is the IQR affected by outliers?
The IQR is resistant to outliers because it only uses the 25th and 75th percentiles. A single extreme value cannot move those percentiles unless it changes the rank order of the data.
Should I report the IQR or the standard deviation?
Report the IQR when your data is skewed or contains outliers. Report the standard deviation when your data is symmetric and free of extreme values. When in doubt, report both.

