Enter a list of numbers to find the mean, median, mode and range, with every step explained: sorting, adding, finding the middle and counting repeats.
Step by step
Separate numbers with commas, spaces or new lines. Negative numbers and decimals are fine. Use a dot for decimals, because commas separate the numbers.
A mean, median, mode and range calculator finds the four most common summary values of a list of numbers and explains each one step by step. The mean is the average, the median is the middle value, the mode is the most frequent value and the range is the gap between the largest and smallest values. The calculator sorts your numbers, shows the sum and division for the mean, points to the middle position for the median, counts how often values repeat for the mode, and subtracts for the range.
For example, for the numbers 3, 7, 5, 13, 20, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29, the mean is 22, the median is 23, the mode is 23 and the range is 53.
The mean, often just called the average, is found by adding all the numbers together and dividing by how many numbers there are.
Mean = sum of values ÷ number of values
For the test scores 72, 85, 90, 85 and 68, the sum is 400 and there are 5 scores, so the mean is 400 ÷ 5 = 80. The mean uses every value, which makes it a good summary when the data is fairly balanced, but it can be pulled a long way by one unusually high or low number.
The median is the middle value when the numbers are arranged in order.
Sorted, the test scores are 68, 72, 85, 85, 90. There are five, so the median is the 3rd value: 85. For the ten numbers 2, 2, 3, 4, 5, 5, 6, 8, 8, 9, the median is the average of the 5th and 6th values: (5 + 5) ÷ 2 = 5.
The mode is the value that appears most often. In the test scores, 85 appears twice and every other score once, so the mode is 85. A list can have:
The mode is the only one of the four that also works for non-numerical data, such as the most popular shoe size or favourite colour.
The range measures how spread out the numbers are. Subtract the smallest value from the largest.
Range = largest value − smallest value
For the test scores, the range is 90 − 68 = 22. When the smallest value is negative, be careful with the signs: the range of −3, −3, 2.5 and 7 is 7 − (−3) = 10.
Take the 15 numbers 3, 7, 5, 13, 20, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29.
When the data is roughly symmetrical, the mean and median are close, and the mean is usually preferred because it uses every value. When the data contains outliers or is skewed, the median gives a better picture of a typical value.
Imagine six salaries, in thousands: 30, 32, 35, 38, 40 and 250. The mean is about 70.8, but five of the six people earn 40 or less. The median, 36.5, is much more representative. That’s why house prices and incomes are usually reported as medians.
| Measure | Best for | Weakness |
|---|---|---|
| Mean | Balanced data; using every value | Distorted by outliers |
| Median | Skewed data, incomes, prices | Ignores the size of extreme values |
| Mode | Most common choice; categories | May not exist or may not be unique |
| Range | Quick sense of spread | Depends only on the two extremes |
If you know the mean you want, you can work backwards. Suppose your first four test scores average 78 and you want an average of 80 over five tests. The five scores must add up to 5 × 80 = 400, and the first four add up to 4 × 78 = 312, so you need 400 − 312 = 88 on the fifth test. The same method works for any target average: multiply the target by the total count and subtract the sum you already have.
The range is easy to calculate, but it only looks at the two most extreme values. One very high or low number can make it misleading. The interquartile range, which looks at the spread of the middle half of the data, and the standard deviation, which measures the typical distance from the mean, give a more reliable picture. For a full set of these, including quartiles, variance and outliers, use a statistics calculator or a standard deviation calculator after you’ve found the basics here.
Sometimes data comes in a frequency table rather than a list, such as “3 students scored 70, 5 scored 80, 2 scored 90”. To use this calculator, type each value as many times as it occurs: 70, 70, 70, 80, 80, 80, 80, 80, 90, 90. The mean is then (3 × 70 + 5 × 80 + 2 × 90) ÷ 10 = 79, the median is 80, the mode is 80 and the range is 20.
Two other tools work well alongside this one: the average calculator, to find the average or weighted average of any numbers, and the z-score calculator, to calculate z-scores and percentiles.
The mean is the average (sum ÷ count), the median is the middle value of the sorted list, and the mode is the value that appears most often.
Sort the numbers and average the two in the middle. For 2, 4, 6, 8, the median is (4 + 6) ÷ 2 = 5.
Yes. If two values tie for the most appearances, the data is bimodal; with more ties it's multimodal. If no value repeats, there's no mode.
No. The range is the largest value minus the smallest, so it's always zero or positive.
Use the mean for balanced data, the median when there are outliers or the data is skewed, and the mode for the most common value or category.
In everyday use, yes: average usually means the arithmetic mean. In statistics, average can also refer to the median or mode.
The mean, median and mode all equal that number, and the range is 0.
An outlier can shift the mean a lot, but the median hardly moves. That's why the median is preferred for skewed data like incomes.
Yes. Use a dot for decimals, such as 2.5, and a minus sign for negatives, such as −3.
It gives a quick idea of how spread out the data is. A small range means the values are close together.
Up to 50,000. The step-by-step working shows every value for short lists and a summary for long ones.