Interquartile Range (IQR) Calculator
Type or paste numbers separated by commas, spaces or new lines. Decimals and negative numbers are fine. Quartiles use the median-of-halves method, with the median left out when the count is odd.
IQR = 6 (Q1 = 3, Q3 = 9)
- Q1: 3
- Median: 6
- Q3: 9
- Minimum: 1
- Maximum: 12
Step-by-step solution
- Sort the values: 1, 3, 4, 6, 7, 9, 12.
- Median of all values: 6. It splits the data into a lower half (1, 3, 4) and an upper half (7, 9, 12).
- Q1 is the median of the lower half: 3. Q3 is the median of the upper half: 9.
- IQR = Q3 − Q1 = 9 − 3 = 6.
Example shown: the default numbers above. Change them and press Calculate.
What you get when you use this calculator
Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.
How to use the Interquartile Range Calculator
- Type or paste your numbers into the box above.
- Press Calculate (or hit Enter).
- Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
- Use Copy answer to paste the result into your homework or notes.
Formula and method
| IQR | IQR = Q3 − Q1 |
|---|---|
| Q1 | Median of the lower half |
| Q3 | Median of the upper half |
Worked examples
Example 1: 1, 3, 4, 6, 7, 9, 12
IQR = 6 (Q1 = 3, Q3 = 9)
- Sort the values: 1, 3, 4, 6, 7, 9, 12.
- Median of all values: 6. It splits the data into a lower half (1, 3, 4) and an upper half (7, 9, 12).
- Q1 is the median of the lower half: 3. Q3 is the median of the upper half: 9.
- IQR = Q3 − Q1 = 9 − 3 = 6.
Example 2: 4, 8, 6, 5, 3, 7
IQR = 3 (Q1 = 4, Q3 = 7)
- Sort the values: 3, 4, 5, 6, 7, 8.
- Median of all values: 5.5. It splits the data into a lower half (3, 4, 5) and an upper half (6, 7, 8).
- Q1 is the median of the lower half: 4. Q3 is the median of the upper half: 7.
- IQR = Q3 − Q1 = 7 − 4 = 3.
Example 3: 10, 12, 14, 15, 18, 21, 24,…
IQR = 9.5 (Q1 = 13, Q3 = 22.5)
Show the steps
- Sort the values: 10, 12, 14, 15, 18, 21, 24, 40.
- Median of all values: 16.5. It splits the data into a lower half (10, 12, 14, 15) and an upper half (18, 21, 24, 40).
- Q1 is the median of the lower half: 13. Q3 is the median of the upper half: 22.5.
- IQR = Q3 − Q1 = 22.5 − 13 = 9.5.
Example 4: 2.1, 3.5, 3.8, 4.4, 5.0, 6.2
IQR = 1.5 (Q1 = 3.5, Q3 = 5)
Show the steps
- Sort the values: 2.1, 3.5, 3.8, 4.4, 5, 6.2.
- Median of all values: 4.1. It splits the data into a lower half (2.1, 3.5, 3.8) and an upper half (4.4, 5, 6.2).
- Q1 is the median of the lower half: 3.5. Q3 is the median of the upper half: 5.
- IQR = Q3 − Q1 = 5 − 3.5 = 1.5.
Practice problems
Try each one on paper first, then open the answer.
Problem 1: 5, 7, 8, 12, 13, 14, 18
IQR = 7 (Q1 = 7, Q3 = 14)
Problem 2: 20, 22, 25, 28, 30, 31
IQR = 8 (Q1 = 22, Q3 = 30)
Problem 3: 3, 6, 7, 8, 8, 10, 13, 15, …
IQR = 8 (Q1 = 7, Q3 = 15)
Frequently asked questions
What is the interquartile range?
It is the distance between the first quartile (Q1) and the third quartile (Q3), the range covered by the middle 50% of the data.
Why use the IQR instead of the range?
The IQR ignores the lowest and highest quarter, so a few extreme values do not change it. That makes it a robust measure of spread.
Why do different calculators give different quartiles?
There are several accepted methods for quartiles. This calculator uses the median-of-halves method taught in most textbooks, which matches a TI-84 for typical lists.
How is the IQR used to find outliers?
Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are treated as outliers. Use the outlier calculator to test a data set.
Related calculators
Outlier Calculator
Find outliers in your data with the 1.5 × IQR rule. See Q1, Q3, the lower and upper fences and which values fall outside.
Range Calculator
Free range calculator for data sets. Enter numbers to find the minimum, maximum and range (largest minus smallest).
Median Calculator
Free median calculator. Paste your numbers to sort them and find the middle value, with odd and even cases explained.
Mean Absolute Deviation Calculator
Calculate the mean absolute deviation (MAD) of a data set. See the mean, each absolute difference and the final average distance.
Calculators are for learning and general use. If a result matters (an exam, a report, a research paper), double-check it and read the methodology. Read the disclaimer.