Mean, median, mode and range calculator
The mean, median, mode and range of any list of numbers, with the working.
You can paste a column from a spreadsheet. Everything is worked out in your browser.
How to work them out
Mean: add the numbers up and divide by how many there are. Using 2, 4, 4, 4, 5, 5, 7, 9: there are 8 numbers adding up to 40, so the mean is 40 ÷ 8 = 5.
Median: put them in order and take the middle one. With an even number of values there are two in the middle, so take halfway between them: the 4th and 5th of 2, 4, 4, 4, 5, 5, 7, 9 are 4 and 5, so the median is 4.5.
Mode: the value that appears most often: 4 appears three times. A list can have more than one mode, or none if no value repeats.
Range: the largest minus the smallest: 9 − 2 = 7.
The quartiles here are the medians of the lower and upper halves of the list, leaving out the median itself when there's an odd number of values. Other methods can give slightly different quartiles.
Frequently asked questions
How do you find the mean?
Add up all the numbers and divide by how many there are. For 2, 4, 4, 4, 5, 5, 7, 9: 40 ÷ 8 = 5.
How do you find the median?
Put the numbers in order and take the middle one. If there's an even number of them, the median is halfway between the middle two.
What if there's no mode?
If every value appears once, there's no mode. If two or more values tie for appearing most often, they're all modes.
What's the difference between mean, median and mode?
They're three kinds of average. The mean uses every value, so one very large or small value can pull it a long way; the median is the middle value, so it isn't affected by extremes; the mode is the most common value.
How do you find the range?
Subtract the smallest value from the largest: 9 − 2 = 7.