Interquartile Range (IQR) Calculator

Find Q1, Q3, and the interquartile range of your data set instantly, with a full step-by-step solution.

Enter numbers only, separated by commas, spaces, or line breaks.
Interquartile Range
Q1
Median
Q3
Count (n)

Step-by-Step Solution

The interquartile range (IQR) measures the spread of the middle 50% of your data. Unlike the range (max minus min), it isn't affected by extreme outliers, which makes it a more robust way to describe variability — especially alongside the median.

How to use the IQR calculator

  1. Enter your data values, separated by commas, spaces, or line breaks.
  2. Click Calculate to see Q1, Q3, the IQR, and the full step-by-step solution.

What is the interquartile range?

The IQR is the difference between the third quartile (Q3) and the first quartile (Q1) of a data set. Q1 is the value below which 25% of the data falls, and Q3 is the value below which 75% of the data falls. The IQR therefore captures the middle 50% of your data, excluding the lowest and highest quarters.

Interquartile range formula

IQR = Q3 − Q1
Where Q1 is the first quartile (25th percentile) and Q3 is the third quartile (75th percentile) of the sorted data.

How to find the IQR by hand

  1. Sort the data from smallest to largest.
  2. Find the median (Q2), which splits the data into a lower half and an upper half.
  3. Find Q1, the median of the lower half.
  4. Find Q3, the median of the upper half.
  5. Subtract Q1 from Q3 to get the IQR.
There are several accepted methods for calculating quartiles when a data set has an even number of values, or when the median falls exactly on a data point. This calculator uses the common "exclusive" method, which excludes the overall median from both halves before finding Q1 and Q3.

Using the IQR to detect outliers

The IQR is commonly used to flag outliers with the "1.5 × IQR rule": any value below Q1 − 1.5×IQR or above Q3 + 1.5×IQR is considered a potential outlier. This is the same rule used to draw the whiskers on a box plot.

Khan Academy's lesson on interquartile range walks through more worked examples of finding quartiles.

TB

About This Calculator

Written and maintained by the TheCalcBright Team. Every formula on this site is checked against standard statistics references. Have feedback? Contact us.

Cite This Calculator

TheCalcBright Team. (2026). Interquartile Range Calculator. TheCalcBright. https://thecalcbright.com/interquartile-range-calculator/

Frequently Asked Questions

Why use IQR instead of range?

The range (max minus min) is heavily influenced by a single extreme value. The IQR only looks at the middle 50% of the data, so it gives a more stable picture of spread when your data has outliers.

How is the IQR used to find outliers?

The common rule is that any value below Q1 − 1.5×IQR, or above Q3 + 1.5×IQR, is flagged as a potential outlier. This same rule defines the whiskers on a box plot.

Do different methods give different Q1 and Q3 values?

Yes. There are several accepted conventions for calculating quartiles (inclusive, exclusive, and interpolation-based methods), and they can give slightly different results, especially for small data sets. This calculator uses the exclusive method, which is common in introductory statistics courses.

What does a small or large IQR tell you?

A small IQR means the middle 50% of your data is tightly clustered. A large IQR means the middle half of your data is more spread out. Comparing IQRs is a common way to compare the spread of two data sets.

Scroll to Top