How to use this mean, median and mode calculator
Paste your numbers, separated by commas, spaces or new lines. You get the mean (sum ÷ count), the median (middle value when sorted), the mode (most frequent value) and the range (largest minus smallest), each with its working, and a sorted list. Runs in your browser.
The three averages, one example
For 12, 7, 9, 15, 9 and 22:
- Mean: the sum 74 divided by the count 6 = 12.3333.
- Median: sort the numbers (7, 9, 9, 12, 15, 22); the mean of the two middle ones is 10.5.
- Mode: 9 appears 2 times, more often than any other value.
- Range: largest minus smallest = 22 − 7 = 15.
Mean 12.3333, median 10.5, mode 9, range 15.
Median with an odd or even count
Sort the numbers. With an odd count the median is the middle one: for 3, 5, 7, 9, 11 it is 7. With an even count it is the mean of the two middle ones, which is why 12, 7, 9, 15, 9 and 22 give a median of 10.5, halfway between 9 and 12.
More than one mode, or none
A data set can have several modes: 4, 4, 6, 6, 9 has modes 4, 6. If no value repeats there is no mode, and the calculator says so. The mode is the only one of the three that also works for non-numeric categories, such as the most common shoe size.
Which one should you use?
Use the mean when values are fairly even and you need totals. Use the median when a few extreme values would distort the mean: for 1, 2, 2, 3 and 100 the mean is 21.6 but the median is 2. Use the mode for the most common value. Related: the average calculator and the standard deviation calculator.
Related calculators and converters
Mean, median and mode calculator FAQ
How do you find the mean, median and mode?
Mean: add the numbers and divide by the count. Median: sort them and take the middle (or the mean of the middle two). Mode: the value that appears most often.
What is the median of 12, 7, 9, 15, 9 and 22?
Sorted they are 7, 9, 9, 12, 15, 22. The two middle numbers are 9 and 12, so the median is 10.5.
Can there be two modes?
Yes. When two values tie for most frequent, both are modes (bimodal). If all values appear once there is no mode.
What is the range?
The largest number minus the smallest: 22 − 7 = 15.
Which is better, mean or median?
The median is less affected by extreme values. For incomes or house prices it is usually the better summary.
Does order matter?
No. The calculator sorts the numbers for you.