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.
- Mean. Add the numbers (135) and divide by how many there are (9). The mean is 135 ÷ 9 = 15.
- 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.
- Mode. 13 appears 4 times, more than any other value, so the mode is 13.
- 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.