Overview

The interquartile range, IQR, is the spread of the middle 50% of the data: the third quartile minus the first. Unlike the range, extreme values barely affect it.

Enter your values in any order.

Worked examples

InputsResult
Your numbers12, 16, 14, 21, 19Q1: 14Median: 16Q3: 19IQR: 5
Show 2 more examples
Your numbers5, 7, 8, 12, 1000Q1: 7Median: 8Q3: 12IQR: 5
Your numbers2, 4, 6, 8, 10Q1: 4Median: 6Q3: 8IQR: 4

How it works

Find Q1 and Q3, the 25th and 75th percentiles, and subtract. Quartiles use linear interpolation, the method in Excel's QUARTILE.INC, so other tools may give slightly different values for small data sets.

The formula

IQR = Q3 − Q1

Practical tips

  • For 12, 14, 16, 19 and 21, the IQR is 19 − 14 = 5.
  • Changing the largest value to 1,000 leaves the IQR at 5.
  • Tukey's fences, Q1 − 1.5 IQR and Q3 + 1.5 IQR, flag possible outliers.

Frequently asked questions

IQR or standard deviation?

IQR suits skewed data and outliers. Standard deviation suits roughly normal data.

Is the IQR the box in a box plot?

Yes, the box's length is the IQR.

Can the IQR be zero?

Yes, if the middle half of the values are all the same.