Mean, median and mode calculator
Paste a list of numbers to get the mean, median, mode and range, plus the quartiles, sum and count. The values are sorted for you, and each answer comes with its working.
- Sort the values: 4, 8, 8, 11, 15, 16, 23, 42
- Mean: 127 ÷ 8 = 15.875
- Median: with 8 values, the two middle values are numbers 4 and 5, so take their average: 13
- Mode: 8 appears most often (2 times)
- Range: 42 − 4 = 38
How to use it
- 1Paste or type your numbers, separated by commas, spaces or new lines.
- 2Read the mean, median, mode and range from the results, which update as you type.
- 3Check the steps to see how each one was found.
Mean, median, mode and range
| Measure | What it is | How to find it |
|---|---|---|
| Mean | The average | Add the values, divide by how many there are |
| Median | The middle value | Sort them and take the middle one, or the average of the middle two |
| Mode | The most common value | Find what appears most often; there may be none, or several |
| Range | The spread | Largest minus smallest |
Which average should you use?
The mean uses every value, so it is the usual choice when data is roughly symmetric. But one extreme value drags it around: add a billionaire to a room and the mean income soars while almost nobody got richer.
The median ignores how extreme the extremes are, which is why house prices and incomes are usually reported as medians. The mode is the only one that works for categories, like the most common shoe size.
A worked example
For 3, 7, 7, 2, 9, sort first: 2, 3, 7, 7, 9.
- Mean: (2 + 3 + 7 + 7 + 9) ÷ 5 = 28 ÷ 5 = 5.6
- Median: the middle of five values is the third, which is 7
- Mode: 7 appears twice, more than any other value
- Range: 9 − 2 = 7
Frequently asked questions
How do you find the median with an even number of values?
Can a data set have more than one mode?
How are the quartiles worked out?
What is the difference between mean and average?
Related tools and guides
Sample or population, with variance, every step and a histogram.
Box and whisker plots, dot plots and histograms from a list.
Paste numbers, choose the bins, get a chart and frequency table.
Five numbers, one picture: reading box and whisker plots.
Value to z-score, z-score to percentile, and back.
Linear, polynomial, exponential or any custom model, with error bars.
It opens instantly, with no account and nothing to install.