Interquartile Range (IQR) Calculator

Quick answerThe interquartile range (IQR) is Q3 minus Q1, the spread of the middle half of the data. Sort the values, find the median, then take the median of the lower half (Q1) and the upper half (Q3). For 1, 3, 4, 6, 7, 9, 12 the IQR is 9 − 3 = 6.

Type or paste numbers separated by commas, spaces or new lines. Decimals and negative numbers are fine. Quartiles use the median-of-halves method, with the median left out when the count is odd.

IQR = 6 (Q1 = 3, Q3 = 9)

  • Q1: 3
  • Median: 6
  • Q3: 9
  • Minimum: 1
  • Maximum: 12
Box plot: the box is the IQRBox plot: the box is the IQRQ1 3Median 6Q3 924681012

Step-by-step solution

  1. Sort the values: 1, 3, 4, 6, 7, 9, 12.
  2. Median of all values: 6. It splits the data into a lower half (1, 3, 4) and an upper half (7, 9, 12).
  3. Q1 is the median of the lower half: 3. Q3 is the median of the upper half: 9.
  4. IQR = Q3 − Q1 = 9 − 3 = 6.

Example shown: the default numbers above. Change them and press Calculate.

What you get when you use this calculator

Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.

What you get from the Interquartile Range Calculator. A list of at least 4 numbers → Sort, split at the median, find Q1 and Q3 → IQR, quartiles and a box plotWhat you get from the Interquartile Range CalculatorYOU ENTERA list of at least 4numbersTHE CALCULATORSort, split at themedian, find Q1 andQ3YOU GETIQR, quartiles and abox plot

How to use the Interquartile Range Calculator

  1. Type or paste your numbers into the box above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

IQRIQR = Q3 − Q1
Q1Median of the lower half
Q3Median of the upper half

Worked examples

Example 1: 1, 3, 4, 6, 7, 9, 12

IQR = 6 (Q1 = 3, Q3 = 9)

  1. Sort the values: 1, 3, 4, 6, 7, 9, 12.
  2. Median of all values: 6. It splits the data into a lower half (1, 3, 4) and an upper half (7, 9, 12).
  3. Q1 is the median of the lower half: 3. Q3 is the median of the upper half: 9.
  4. IQR = Q3 − Q1 = 9 − 3 = 6.

Example 2: 4, 8, 6, 5, 3, 7

IQR = 3 (Q1 = 4, Q3 = 7)

  1. Sort the values: 3, 4, 5, 6, 7, 8.
  2. Median of all values: 5.5. It splits the data into a lower half (3, 4, 5) and an upper half (6, 7, 8).
  3. Q1 is the median of the lower half: 4. Q3 is the median of the upper half: 7.
  4. IQR = Q3 − Q1 = 7 − 4 = 3.

Example 3: 10, 12, 14, 15, 18, 21, 24,…

IQR = 9.5 (Q1 = 13, Q3 = 22.5)

Show the steps
  1. Sort the values: 10, 12, 14, 15, 18, 21, 24, 40.
  2. Median of all values: 16.5. It splits the data into a lower half (10, 12, 14, 15) and an upper half (18, 21, 24, 40).
  3. Q1 is the median of the lower half: 13. Q3 is the median of the upper half: 22.5.
  4. IQR = Q3 − Q1 = 22.5 − 13 = 9.5.

Example 4: 2.1, 3.5, 3.8, 4.4, 5.0, 6.2

IQR = 1.5 (Q1 = 3.5, Q3 = 5)

Show the steps
  1. Sort the values: 2.1, 3.5, 3.8, 4.4, 5, 6.2.
  2. Median of all values: 4.1. It splits the data into a lower half (2.1, 3.5, 3.8) and an upper half (4.4, 5, 6.2).
  3. Q1 is the median of the lower half: 3.5. Q3 is the median of the upper half: 5.
  4. IQR = Q3 − Q1 = 5 − 3.5 = 1.5.

Practice problems

Try each one on paper first, then open the answer.

Problem 1: 5, 7, 8, 12, 13, 14, 18

IQR = 7 (Q1 = 7, Q3 = 14)

Problem 2: 20, 22, 25, 28, 30, 31

IQR = 8 (Q1 = 22, Q3 = 30)

Problem 3: 3, 6, 7, 8, 8, 10, 13, 15, …

IQR = 8 (Q1 = 7, Q3 = 15)

Frequently asked questions

What is the interquartile range?

It is the distance between the first quartile (Q1) and the third quartile (Q3), the range covered by the middle 50% of the data.

Why use the IQR instead of the range?

The IQR ignores the lowest and highest quarter, so a few extreme values do not change it. That makes it a robust measure of spread.

Why do different calculators give different quartiles?

There are several accepted methods for quartiles. This calculator uses the median-of-halves method taught in most textbooks, which matches a TI-84 for typical lists.

How is the IQR used to find outliers?

Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are treated as outliers. Use the outlier calculator to test a data set.

Related calculators

Calculators are for learning and general use. If a result matters (an exam, a report, a research paper), double-check it and read the methodology. Read the disclaimer.