Interquartile Range Calculator (IQR)
Q1, median, Q3, the interquartile range and 1.5 × IQR outlier fences from your data.
IQR = Q3 − Q1. For 3, 5, 7, 8, 12, 13, 14, 18, 21, 41: the lower half 3, 5, 7, 8, 12 has median Q1 = 7 and the upper half 13, 14, 18, 21, 41 has Q3 = 18, so IQR = 11. The upper fence is 18 + 1.5 × 11 = 34.5, so 41 is an outlier.
Free, runs in your browser. Nothing you enter is uploaded.
How to use it
- Paste your numbers.
- Choose the quartile method your course or software uses.
- Read Q1, Q3, the IQR, the fences and any outliers.
What you enter
- Data set
- Quartile method
What you get
- Q1, median, Q3
- IQR
- Outlier fences
- Outliers
Formula
IQR = Q3 − Q1 | Fences: Q1 − 1.5 IQR and Q3 + 1.5 IQR
Worked example
Input: 3, 7, 8, 5, 12, 14, 21, 13, 18, 41
Result: Q1 7, Q3 18, IQR 11; outlier 41
41 lies beyond the upper fence of 34.5.
Questions
How do you find the interquartile range?
Sort the data, find the median of the lower half (Q1) and of the upper half (Q3), and subtract: IQR = Q3 − Q1.
Why do calculators give different quartiles?
There are several definitions. TI calculators and most textbooks use the median of each half; Excel's QUARTILE.INC interpolates. Pick the one your class or software uses.
How do you find outliers with the IQR?
Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are outliers, the same rule box plots use for their whiskers.
Why use IQR instead of range?
The IQR covers the middle 50% of the data, so one extreme value doesn't distort it.
Related reading
- Box Plot IQR: How to Read Interquartile Range in Boxplots
- How to Find Q1 and Q3: Quartiles Explained with Examples
- Range and Interquartile Range: How to Find IQR
- What Is a Quartile? Definition, Formula and Examples
- Box Plot Outliers: How to Identify and Interpret Them
- How to Find Outliers: IQR Method and Z-Scores Explained
More Statistics
- Standard Deviation Calculator
- Mean, Median & Mode Calculator
- Variance Calculator
- Z-Score Calculator
- P-Value Calculator
- Confidence Interval Calculator
- T-Test Calculator
- Chi-Square Test Calculator
- Correlation Coefficient Calculator
- Linear Regression Calculator
- Normal Distribution Calculator
- Probability Calculator
All free tools · By Dr. Zubair Khalid, DVM, MS, PhD.