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{2, 4, 4, 4, 5, 5, 7, 9}\left\{ 2,\ 4,\ 4,\ 4,\ 5,\ 5,\ 7,\ 9 \right\}

Q1=4, Q2=4.5, Q3=6, IQR=2\displaystyle Q_1 = 4,\ Q_2 = 4.5,\ Q_3 = 6,\ \mathrm{IQR} = 2

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

Outlier fences

below 1 or above 9\displaystyle \text{below } 1 \text{ or above } 9

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 22 and the largest is 99.

    2, 4, 4, 4, 5, 5, 7, 92,\ 4,\ 4,\ 4,\ 5,\ 5,\ 7,\ 9
  2. Median (the second quartile Q2)

    The median is the middle value of the ordered list. Here n=8n = 8 is even, so it is the mean of the 4th and 5th values, 44 and 55.

    Q2=4+52=92=4.5\begin{aligned} Q_2 &= \frac{4 + 5}{2} \\ &= \frac{9}{2} \\ &= 4.5 \end{aligned}
  3. Lower quartile (Q1)

    The lower half is the values below the median position: {2, 4, 4, 4}\left\{ 2,\ 4,\ 4,\ 4 \right\}. Its median is the lower quartile Q1Q_1.

    Q1=4+42=82=4\begin{aligned} Q_1 &= \frac{4 + 4}{2} \\ &= \frac{8}{2} \\ &= 4 \end{aligned}
  4. Upper quartile (Q3)

    The upper half is the values above the median position: {5, 5, 7, 9}\left\{ 5,\ 5,\ 7,\ 9 \right\}. Its median is the upper quartile Q3Q_3.

    Q3=5+72=122=6\begin{aligned} Q_3 &= \frac{5 + 7}{2} \\ &= \frac{12}{2} \\ &= 6 \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=6−4=2\begin{aligned} \mathrm{IQR} &= Q_3 - Q_1 \\ &= 6 - 4 \\ &= 2 \end{aligned}
  6. Result

    So Q1=4Q_1 = 4, Q2=4.5Q_2 = 4.5, Q3=6Q_3 = 6 and the interquartile range is 22.

Worked examples