Calculateus

Interquartile Range (IQR) Calculator

Calculate the first quartile, third quartile, interquartile range, and outlier bounds for a dataset.

Result

Interquartile Range (IQR)
13.25
Q1 (25th percentile)
8.75
Q3 (75th percentile)
22
Outlier Bounds
-11.13 to 41.88
Outliers Found
42, 55

About the IQR Calculator

The Interquartile Range (IQR) Calculator finds the middle 50% spread of a dataset by computing the first and third quartiles, then applies the standard 1.5 x IQR rule to flag likely outliers. It's a robust alternative to range or standard deviation for describing spread, since it isn't distorted by a handful of extreme values the way those other measures can be.

How It Works

You enter a list of numbers, which the calculator sorts and then interpolates to find the value at the 25th percentile (Q1) and the 75th percentile (Q3). The IQR is Q3 minus Q1, and the calculator also computes lower and upper outlier bounds at 1.5 times the IQR beyond Q1 and Q3, listing any values in your dataset that fall outside those bounds.

Percentile(p) uses linear interpolation on the sorted data at index (p/100) x (n - 1). IQR = Q3 - Q1. Lower Bound = Q1 - 1.5 x IQR. Upper Bound = Q3 + 1.5 x IQR.

Formula & Methodology

After sorting the data, the calculator finds a fractional index for each requested percentile, for example 0.25 x (n - 1) for the 25th percentile. When that index falls between two data points, it interpolates linearly between them rather than picking the nearest value, giving a smoother estimate than some simpler percentile methods. Once Q1 and Q3 are known, IQR is their difference, and any data point below Q1 minus 1.5 IQR or above Q3 plus 1.5 IQR is listed as an outlier.

Examples

A Dataset with Two High Outliers

For the values 4, 7, 8, 11, 15, 16, 19, 23, 42, 55 (sorted), Q1 is 8.75 and Q3 is 22, giving an IQR of 13.25. The upper outlier bound comes out to 41.875, which both 42 and 55 exceed, so the calculator flags both as outliers.

A Small Dataset with a Single Extreme Value

For the values 2, 4, 6, 8, 10, 12, 14, 100, Q1 is 5.5 and Q3 is 12.5, giving an IQR of 7. The upper outlier bound is 23, so only the value 100 is flagged, while the rest of the data is considered typical.

Advantages

  • Measures spread using the resistant middle 50% of the data, so it isn't skewed by one or two extreme values the way range or standard deviation can be.
  • Automatically applies the 1.5 x IQR rule to flag candidate outliers, saving the manual sort-and-compare work.
  • Uses linear interpolation for percentiles, giving smoother, more precise quartile estimates than simple nearest-rank methods, especially on smaller datasets.

Common Mistakes

  • Assuming every value flagged by the 1.5 x IQR rule is automatically an error or should be deleted, when it may be a legitimate but unusual observation.
  • Comparing IQR or quartile values across two tools that use different percentile interpolation methods and expecting an exact match.
  • Applying the calculator to fewer than 4 data points, where quartile boundaries become unstable or fail to compute meaningfully.

Edge Cases to Watch For

  • At least 4 numbers are required for the quartile calculation to be meaningful; fewer than that returns an error.
  • This calculator uses linear interpolation between ranked data points, so its Q1 and Q3 values may differ slightly from other tools that use a different percentile convention.
  • The 1.5 x IQR outlier rule is a widely used convention popularized by John Tukey for box plots, not an absolute statistical threshold, so flagged values deserve a second look rather than automatic removal.

Common Use Cases

  • Analysts building box plots who need Q1, Q3, and outlier bounds calculated consistently.
  • Researchers screening a dataset for suspicious extreme values before running further statistical tests.
  • Students and teachers working through descriptive statistics exercises that call for quartiles and a robust measure of spread.
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

How is the 1.5×IQR outlier rule defined?

Any value below Q1 minus 1.5 times the IQR, or above Q3 plus 1.5 times the IQR, is flagged as a statistical outlier - this is the standard rule popularized by John Tukey and used in most box plots, though it's a convention, not an absolute rule.

Conclusion

Because it relies only on the middle half of sorted data, the interquartile range gives a stable picture of spread even when a dataset contains a few extreme values, and its accompanying outlier bounds offer a standard, transparent way to flag those values for further review.