How to Find the IQR (Interquartile Range)

IQR = Q3 − Q1. Here is how to find the quartiles by hand for odd and even counts.

Even count example

Data: 2, 4, 5, 7, 8, 10, 11, 14. Lower half 2, 4, 5, 7 → Q1 = (4 + 5) ÷ 2 = 4.5. Upper half 8, 10, 11, 14 → Q3 = (10 + 11) ÷ 2 = 10.5. IQR = 6.

Odd count example

Data: 1, 3, 4, 6, 7, 8, 9. Median 6 is left out. Lower half 1, 3, 4 → Q1 = 3; upper half 7, 8, 9 → Q3 = 8. IQR = 5.

Using the IQR

Half of the data lies between Q1 and Q3. Multiply the IQR by 1.5 to get the outlier fences (outlier calculator), and draw it as the box of a box plot.

Try it with your numbers

IQR6
Q14.5
Q310.5
Median7.5

Step by step

  1. Sort the data: 2, 4, 5, 7, 8, 10, 11, 14
  2. The median is the average of the two middle values (positions 4 and 5): 7.5
  3. Lower half: 2, 4, 5, 7 → Q1 = its median = 4.5
  4. Upper half: 8, 10, 11, 14 → Q3 = 10.5
  5. IQR = Q3 − Q1 = 10.5 − 4.5 = 6

Frequently asked questions

How do you find the IQR?

Find Q1 and Q3 (medians of the lower and upper halves) and subtract: Q3 − Q1.

Do you include the median when finding quartiles?

With this common method, no — when the count is odd the median is left out of both halves.