Mean, Median and Mode Calculator

Enter a list of numbers to get the mean, median, mode and range at once, with the working for each one shown underneath.

Separate numbers with commas, spaces or new lines. You can paste a column from a spreadsheet.

9 numbers read

Mean, median and mode

Mean
15
Median
14
Mode
13
appears 4 times
Range
8
Count (n)
9
Sum
135
Minimum
13
Maximum
21

Results are rounded to 4 decimal places.

Step-by-step working

  1. Sort the numbers from smallest to largest. There are n = 9 of them.13, 13, 13, 13, 14, 14, 16, 18, 21
  2. Mean: add the numbers and divide by how many there are.(13 + 13 + 13 + 13 + 14 + 14 + 16 + 18 + 21) ÷ 9 = 135 ÷ 9 = 15
  3. Median: with an odd count, the median is the middle value, number (n + 1) ÷ 2 = 5 in the sorted list.Median = 14
  4. Mode: count how often each value appears. Values that repeat: 13 (4×), 14 (2×). The most common value is 13, so that is the mode.
  5. Range: subtract the smallest value from the largest.21 − 13 = 8

How to find the mean, median and mode

Take the data set 13, 18, 13, 14, 13, 16, 14, 21, 13, which is the example loaded in the calculator above.

  1. Mean. Add the numbers (135) and divide by how many there are (9). The mean is 135 ÷ 9 = 15.
  2. Median. Sort the list: 13, 13, 13, 13, 14, 14, 16, 18, 21. With 9 numbers, the middle one is number (9 + 1) ÷ 2 = 5, so the median is 14.
  3. Mode. 13 appears 4 times, more than any other value, so the mode is 13.
  4. Range. Largest minus smallest: 21 − 13 = 8.

Formulas

Mean

x̄ = (x₁ + x₂ + … + xₙ) ÷ n = Σx ÷ n

Median (sorted list)

odd n: the value at position (n + 1) ÷ 2 · even n: the average of positions n ÷ 2 and n ÷ 2 + 1

Range

largest value − smallest value

The mean of a sample is written x̄ and the mean of a whole population μ, but the arithmetic is the same: the sum divided by the count. Sample and population only start to differ when you measure spread, in the variance and standard deviation.

Which average should you use?

  • Mean uses every value, so it is the usual choice for test scores, measurements and anything roughly symmetric.
  • Median ignores how extreme the highest and lowest values are, so it suits skewed data such as incomes, prices and wait times.
  • Mode is the only one that works for categories (the most common shoe size or favorite color), and it shows where values cluster.

To see how the values are spread around the center, draw them with the histogram maker. To average class grades, try the grade average calculator.

Frequently Asked Questions

More statistics calculators