Quartile and IQR Calculator

Enter your data to split it into quarters and measure the middle half.

Numbers separated by commas, spaces or new lines

Try

Result

You entered{1, 2, 3, 4, 5, 6, 7, 8, 9}\left\{ 1,\ 2,\ 3,\ 4,\ 5,\ 6,\ 7,\ 8,\ 9 \right\}

Q1=2.5, Q2=5, Q3=7.5, IQR=5\displaystyle Q_1 = 2.5,\ Q_2 = 5,\ Q_3 = 7.5,\ \mathrm{IQR} = 5

Quartiles use the exclusive-median method: the median is left out of both halves.

Outlier fences

below −5 or above 15\displaystyle \text{below } -5 \text{ or above } 15

Outliers

none\displaystyle \text{none}
Show the work
  1. Sort the data

    Write the values in order from smallest to largest, so the middle and the ends are easy to find. The smallest is 11 and the largest is 99.

    1, 2, 3, 4, 5, 6, 7, 8, 91,\ 2,\ 3,\ 4,\ 5,\ 6,\ 7,\ 8,\ 9
  2. Median (the second quartile Q2)

    The median is the middle value of the ordered list. Here n=9n = 9 is odd, so it is the 5th value, which is 55.

  3. Lower quartile (Q1)

    The lower half is the values below the median position: {1, 2, 3, 4}\left\{ 1,\ 2,\ 3,\ 4 \right\}. Its median is the lower quartile Q1Q_1. The median itself is left out of both halves.

    Q1=2+32=52=2.5\begin{aligned} Q_1 &= \frac{2 + 3}{2} \\ &= \frac{5}{2} \\ &= 2.5 \end{aligned}
  4. Upper quartile (Q3)

    The upper half is the values above the median position: {6, 7, 8, 9}\left\{ 6,\ 7,\ 8,\ 9 \right\}. Its median is the upper quartile Q3Q_3. The median itself is left out of both halves.

    Q3=7+82=152=7.5\begin{aligned} Q_3 &= \frac{7 + 8}{2} \\ &= \frac{15}{2} \\ &= 7.5 \end{aligned}
  5. Interquartile range (IQR)

    The interquartile range is the width of the middle half of the data: the upper quartile minus the lower quartile.

    IQR=Q3−Q1=7.5−2.5=5\begin{aligned} \mathrm{IQR} &= Q_3 - Q_1 \\ &= 7.5 - 2.5 \\ &= 5 \end{aligned}
  6. Result

    So Q1=2.5Q_1 = 2.5, Q2=5Q_2 = 5, Q3=7.5Q_3 = 7.5 and the interquartile range is 55.

Worked examples