Interquartile Range Calculator: Q1, Q3
This interquartile range calculator finds Q1, the median, Q3 and the IQR from any list of numbers. It also gives the 1.5 × IQR fences used to flag outliers. Paste data separated by commas, spaces or new lines, which makes it quick for statistics homework, box plots and checking survey results.
Interquartile Range Calculator
Quartiles, IQR and outliers.
How to use the Interquartile Range Calculator
- Paste or type your numbers.
- The tool sorts them.
- Read Q1, median and Q3.
- Check the outliers list.
How it works
Q1 is the median of the lower half and Q3 the median of the upper half. The IQR is the spread of the middle 50%.
Formula
Lower fence = Q1 − 1.5 × IQR
Upper fence = Q3 + 1.5 × IQR
Example
For 1, 3, 5, 7, 8, 9, 12, 13, 15, 40: Q1 = 5, Q3 = 13, IQR = 8. The upper fence is 25, so 40 is an outlier.
Frequently asked questions
What is the interquartile range?
The range of the middle half of the data, Q3 minus Q1.
How are outliers found?
Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.
Why do calculators give different quartiles?
There are several quartile methods; this one uses medians of halves.
See also: Statistics Calculator, Average Calculator.
Find Q1, Q3 and the interquartile range
How to use it
- Paste or type your numbers, separated by commas, spaces or new lines.
- Read the sorted data, Q1, the median and Q3.
- Read the IQR, which is Q3 minus Q1.
- Check the outlier fences to see if any values fall outside.
More questions
How do you calculate the interquartile range?
Sort the data, find Q1 (the middle of the lower half) and Q3 (the middle of the upper half), then subtract: IQR = Q3 − Q1.
How are outliers found with IQR?
Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are usually treated as outliers.
Why do calculators give slightly different quartiles?
There are several accepted methods for quartiles, so small differences between tools and textbooks are normal.
Related tools: Percentile Calculator, Mean Median Mode Range Calculator, Standard Deviation Calculator.
Ten home prices with one outlier
Type or paste numbers separated by commas or spaces. The tool sorts them and shows Q1, the median, Q3, the IQR, the 1.5 × IQR fences and any outliers. To see how many standard deviations a single value sits from the mean, use the Z-Score Calculator.
Worked example: ten home sale prices in thousands of dollars, 210, 225, 240, 255, 260, 275, 290, 310, 335 and 890, give Q1 = 240, median = 267.5, Q3 = 310 and an IQR of 70. The fences are 135 and 415, so 890 is flagged as an outlier.
More answers
What does a bigger IQR tell me?
A bigger IQR means the middle half of your data is more spread out. The home prices above have an IQR of 70, while ten test scores from 62 to 98 have an IQR of only 15.
What is the IQR of 62, 70, 75, 78, 82, 85, 88, 90, 95 and 98?
Q1 is 75 and Q3 is 90, so the IQR is 15. The fences are 52.5 and 112.5, and the tool reports no outliers.