Mean, Median, Mode and Range Calculator

Enter a list of numbers to find its average, middle value, most common value and spread.

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\}

mean=5, median=4.5, mode=4, range=7\displaystyle \text{mean} = 5,\ \text{median} = 4.5,\ \text{mode} = 4,\ \text{range} = 7

Sorted data

2, 4, 4, 4, 5, 5, 7, 9\displaystyle 2,\ 4,\ 4,\ 4,\ 5,\ 5,\ 7,\ 9

Count

8\displaystyle 8

Sum

40\displaystyle 40
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. Mean (arithmetic average)

    The mean shares the total out equally: add every value, then divide by how many there are. Here the values add up to 4040 and n=8n = 8.

    xˉ=∑xn=408=5\begin{aligned} \bar{x} &= \frac{\sum x}{n} \\ &= \frac{40}{8} \\ &= 5 \end{aligned}
  3. Median (middle value)

    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.

    m=4+52=92=4.5\begin{aligned} m &= \frac{4 + 5}{2} \\ &= \frac{9}{2} \\ &= 4.5 \end{aligned}
  4. Mode (most frequent value)

    The mode is the value that occurs most often. Here 44 occurs 3 times, more than any other value, so it is the mode.

  5. Range (largest minus smallest)

    The range measures the full spread of the data: the largest value minus the smallest. Here the largest is 99 and the smallest is 22.

    R=9−2=7\begin{aligned} R &= 9 - 2 \\ &= 7 \end{aligned}
  6. Result

    So the mean is 55, the median is 4.54.5, the mode is 44 and the range is 77.

Worked examples