Interquartile Range (IQR) Calculator
StatisticsCalculate Q1, Q3, and the interquartile range (IQR) for any dataset instantly. Enter your numbers to find the spread of the middle 50% of your data and outlier fences.
Separate numbers with commas, spaces, semicolons, or new lines
Interquartile Range
Q1 (25th)
0
Q3 (75th)
0
Outlier fences (1.5 ร IQR rule)
Values below 0 or above 0 are commonly flagged as outliers, based on 0 data points.
What is a IQR?
The Interquartile Range Calculator measures the spread of the middle 50% of your dataset by computing Q1 (the 25th percentile), Q3 (the 75th percentile), and the IQR itself (Q3 โ Q1). Enter your list of numbers, and the calculator instantly returns all three values, along with the median and the standard 1.5 ร IQR outlier fences.
IQR is one of the most robust measures of spread in statistics because it isn't distorted by extreme values the way range or standard deviation can be. By focusing only on the middle half of sorted data, IQR gives you a stable picture of "typical" variability โ exactly the statistic that defines the box in a box plot.
For a complementary view of variability, pair this calculator with the Standard Deviation Calculator, or use the Percentile Rank Calculator to see where one specific value stands within the same dataset.
How to use this IQR calculator
Enter your dataset โ paste or type your list of numbers into the dataset field, separated by commas, spaces, semicolons, or new lines.
Read the IQR โ the large highlighted number shows the interquartile range, the spread of the middle 50% of your sorted data.
Check Q1 and Q3 โ shown alongside the IQR, these define exactly where the middle 50% of your data begins and ends.
Review the outlier fences โ the panel below shows the lower and upper bounds beyond which values are conventionally flagged as potential outliers.
Adjust your dataset โ add, remove, or edit values to see instantly how the quartiles, IQR, and outlier fences respond.
Check the step-by-step breakdown โ expand the calculation steps to see exactly how the median, Q1, and Q3 were derived from your sorted data.
Formula & Methodology
Interquartile range formula: IQR = Q3 โ Q1 Outlier fences (1.5 ร IQR rule): - Lower fence = Q1 โ 1.5 ร IQR - Upper fence = Q3 + 1.5 ร IQR Quartile method used: Tukey's exclusive median method โ sort the data, find the median, then compute Q1 and Q3 as the medians of the lower and upper halves respectively (excluding the overall median itself when the dataset size is odd). Worked example: Dataset: 7, 15, 36, 39, 40, 41, 42, 43, 47, 49 (n = 10, already sorted, even count). Step 1 โ Median: average of the 5th and 6th values = (40 + 41) / 2 = 40.5 Step 2 โ Lower half (first 5 values): 7, 15, 36, 39, 40 โ Q1 = median = 36 Step 3 โ Upper half (last 5 values): 41, 42, 43, 47, 49 โ Q3 = median = 43 Step 4 โ IQR = Q3 โ Q1 = 43 โ 36 = 7 Step 5 โ Outlier fences: Lower = 36 โ 1.5ร7 = 25.5, Upper = 43 + 1.5ร7 = 53.5 Any value below 25.5 or above 53.5 in this dataset (like 7 and 15) would be flagged as a potential outlier under the 1.5 ร IQR rule. Note: Different statistical software (Excel, R, Python's various libraries) may use different quartile interpolation methods, producing Q1/Q3 values that differ slightly from this calculator's Tukey-method result. The difference is usually small and doesn't change the overall interpretation of spread.
Frequently Asked Questions