Interquartile Range (IQR) Calculator
Calculate IQR, quartiles, and outlier fences from a dataset. IQR = Q3 - Q1 measures the spread of the middle 50% of data. Identify potential outliers using the 1.5×IQR rule.
Formula & Reference
| Variable | Symbol | Formula | Units |
|---|---|---|---|
| Interquartile Range (IQR) Calculator | — | IQR = Q3 - Q1 | same as data units |
Step-by-Step Examples
Dataset: 55,60,65,70,75,80,85,90,95,100.
- n=10 sorted values
- Q1 = 65 (25th percentile)
- Q2 = 77.5 (median)
- Q3 = 90 (75th percentile)
- IQR = 90 - 65 = 25
- Fences: 65-37.5=27.5 to 90+37.5=127.5: no outliers
Income data: 30,35,40,45,50,55,60,200 (thousands).
- Q1 = 36.25, Q3 = 56.25, IQR = 20
- Lower fence = 36.25 - 30 = 6.25
- Upper fence = 56.25 + 30 = 86.25
- 200 > 86.25: outlier detected
Data: 10,12,15,18,20,25,30. Summarize for box plot.
- Min=10, Q1=12, Median=18, Q3=25, Max=30
- IQR=13, Fences: -7.5 to 44.5
- No outliers — all within fences
- Box from 12 to 25, whiskers to 10 and 30
Real-World Applications
Common Mistakes to Avoid
Values beyond 1.5×IQR are potential outliers worth examining, but they may be real and important data. Always investigate before removing.
With n < 10, quartile estimates are unreliable. IQR-based outlier detection works best with n ≥ 20.
Quartile calculation requires sorted data. Always sort before finding Q1 and Q3 positions.
Frequently Asked Questions
Related Math Calculators
Formula Explorer connections
Interpretation: This formula summarizes data, models uncertainty or supports inference about a population or random process. Assumption: The sampling design and distribution assumptions must match the data. Independence, sample size, outliers and measurement quality can materially affect interpretation.