IQR Calculator

Interquartile range, Q1, Q3 and outliers — with worked steps

Enter your numbers to calculate the interquartile range (IQR), the first and third quartiles, and any outliers — with a full step-by-step solution.

Enter Your Data Points

Textbooks differ — pick the method yours uses.

Results

Interquartile range (IQR)16.5
Q1 (25th)21
Q3 (75th)37.5

Five Number Summary

Minimum9
Q1 (25th)21
Median29.5
Q3 (75th)37.5
Maximum48
Interquartile range (IQR)16.5
Count (n)20
Outliers (1.5 × IQR rule)None

Additional Statistics

Mean (average)29.1
Mode21
Range39
Sum582
Std deviation (sample)10.8235
Std deviation (population)10.5494
Variance (sample)117.1474
Mean absolute deviation8.9
Coefficient of variation0.3719
Standard error of the mean2.4202
10th percentile16.5
90th percentile42.2
Lower inner fence (Q1 − 1.5·IQR)-3.75
Upper inner fence (Q3 + 1.5·IQR)62.25

Box & Whisker Plot

Histogram

Step-by-step solution

Export & Share

The share link reproduces your exact data and settings — paste it in an email, chat, or assignment and anyone who opens it sees the same results.

Saved Datasets

Saved to this device only (browser local storage). Use a share link to move data between devices.

What is the interquartile range?

The interquartile range (IQR) is the distance between the third quartile and the first quartile: IQR = Q3 − Q1. It describes the spread of the middle 50% of the data. Because it ignores the smallest and largest quarter of the values, the IQR is far less sensitive to outliers than the full range or the standard deviation, which makes it a reliable measure of spread for skewed data.

How to find the IQR

Sort the data, split it at the median into a lower half and an upper half, then take Q1 as the median of the lower half and Q3 as the median of the upper half. Subtract: Q3 − Q1. Textbooks disagree on whether the median itself is included when the count is odd, so this calculator lets you switch between Tukey (exclude), Moore & McCabe (include) and Excel-style interpolation to match your course.

Using the IQR to find outliers

The IQR defines the standard outlier "fences". A value is a potential outlier if it falls more than 1.5 × IQR below Q1 or above Q3 (the inner fences), and an extreme outlier if it is beyond 3 × IQR (the outer fences). The box plot above marks any such points automatically.

Frequently asked questions

How do you calculate the interquartile range?

Find the first quartile (Q1) and third quartile (Q3), then subtract: IQR = Q3 − Q1.

Why use the IQR instead of the range?

The full range depends on the two most extreme values, so a single outlier can distort it. The IQR uses only the middle 50% of the data, making it a more robust measure of spread.

How does the IQR identify outliers?

Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are flagged as potential outliers; values beyond 3 × IQR are considered extreme.

Related calculators

Guides & how-tos