Paste a list and get Q1, the median, Q3 and the IQR, the 1.5 x IQR outlier fences and a box plot, with the same data run through the Excel, TI-84, R and SPSS quartile rules side by side.
Interquartile Range Calculator - Quartiles and Outliers
Paste a list and get Q1, the median, Q3 and the IQR, the 1.5 x IQR outlier fences and a box plot, with the same data run through the Excel, TI-84, R and SPSS quartile rules side by side.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Interquartile range, quartiles and outliers from one pasted list
Eleven delivery times in minutes, 22 25 27 28 30 31 33 35 38 41 95, give Q1 = 27.5, Q3 = 36.5 and an interquartile range of 9 minutes. Anything above 50 minutes sits outside the upper fence, so the 95-minute delivery is flagged as an outlier, and as an extreme one. The result also draws the box plot, lists the fences and shows what the same list gives under the four quartile conventions that Excel, a TI-84, R and SPSS use.
One list, four numbers worth remembering
Those middle two tiles are the reason the IQR exists. One late delivery drags the standard deviation from 5.89 to 20.09. The IQR moves from 7.25 to 9, because a quartile only cares how many values lie on each side of it, not how far away they are.
The five-number summary behind the box plot of those deliveries:
| Minimum | Q1 | Median | Q3 | Maximum | Fences |
|---|---|---|---|---|---|
| 22 | 27.5 | 31 | 36.5 | 95 | 14 to 50 |
Three boxes and a method
- Data - paste the numbers, separated by spaces, commas or new lines. A spreadsheet column works. Decimals take a dot, and units have to be left out.
- Quartile method - linear interpolation to match Excel QUARTILE.INC, Google Sheets and R; QUARTILE.EXC to match Minitab or SPSS; halves without the median to match a TI-84 or an AP Statistics answer key; Tukey's hinges for a classic box plot.
- Decimal places - automatic follows your data; the choice only changes how numbers are printed.
- Label (optional) - a name for the data set in the result heading.
- Read the result - the IQR, the three quartiles, the box plot, the fences, any outliers, and the four-method comparison.
Why Excel, a TI-84 and R disagree about Q1
There is no single definition of a quartile. Hyndman and Fan catalogued nine in statistical software, and four of them cover almost every classroom and spreadsheet. Interpolation methods place Q1 a quarter of the way along the sorted list and blend the two nearest values; the halves methods split the list at the median and take the median of each half, differing only in whether the middle value of an odd-sized list joins the halves. With large data sets the answers converge. With eight values they do not:
| Method, for 3 5 7 8 9 11 13 15 | Q1 | Q3 | IQR |
|---|---|---|---|
| Linear interpolation (QUARTILE.INC, Sheets, R) | 6.5 | 11.5 | 5 |
| QUARTILE.EXC (Minitab, SPSS) | 5.5 | 12.5 | 7 |
| Halves without the median (TI-84) | 6 | 12 | 6 |
| Tukey's hinges (R fivenum) | 6 | 12 | 6 |
Three different IQRs, 5, 6 and 7, from one list of eight numbers, and every one of them is correct under its own rule. When a homework answer disagrees with a spreadsheet, the method is almost always the explanation, which is why the result prints all four side by side.
Facts about the IQR that textbooks bury
Who needs an interquartile range
Students checking a five-number summary against an answer key, where the TI-84 method is usually the one expected. Analysts summarizing skewed data such as response times, house prices or incomes, where a mean and standard deviation would mislead. Quality and lab staff screening a batch of measurements for values to re-check before anything is averaged.
IQR questions, briefly
Related tools
Wilcoxon Test Calculator
Comparing two skewed data sets with ranks rather than means - See calculator
Fisher's Exact Test Calculator
Two groups and a yes-or-no outcome in a 2x2 table - See calculator
Median Calculator
The middle value on its own, Q2 of the five-number summary - See calculator
Standard Deviation Calculator
The spread measure the IQR is usually compared with - See calculator
Average Calculator
Mean, median and mode for the same list - See calculator