Mean, median, mode and range describe different features of the same data. The median may better represent a typical value when unusually high or low observations distort the mean.
By Osama · Last reviewed November 6, 2026
Quick answer. Mean is the sum divided by the count, median is the middle value when sorted, mode is the most frequent value and range is the largest minus the smallest. For 10, 2, 38, 23, 38, 23 and 21 the mean is 22.1429, the median is 23, the modes are 23 and 38, and the range is 36.
What mean, median, mode and range tell you
Mean (the average): the sum of the values divided by how many there are.
Median: the middle value once the data is sorted. With an even count it is the average of the two middle values.
Mode: the value that appears most often. A list can have one mode, several modes or none.
Range: the largest value minus the smallest. It measures how spread out the data is.
Each one summarises a different feature, so using them together gives a better picture than any single number.
Worked example with the default numbers
Take 10, 2, 38, 23, 38, 23 and 21. Sorted, they read 2, 10, 21, 23, 23, 38, 38.
Measure
How it is found
Result
Count (N)
number of values
7
Sum
2 + 10 + 21 + 23 + 23 + 38 + 38
155
Mean
155 ÷ 7
22.1429
Median
the middle (4th) of 7 sorted values
23
Mode
23 and 38 each appear twice
23 and 38
Range
38 − 2
36
Each dot is one value, stacked when it repeats. The mean and median are close here because the data is fairly balanced.
Why the median resists outliers
The mean uses every value’s size, so one extreme number can drag it a long way. The median only cares about position. Take five salaries: $40,000, $42,000, $45,000, $48,000 and $250,000. The mean is $85,000, higher than four of the five people earn. The median is $45,000.
For skewed data such as incomes, house prices or waiting times, the median is usually the better “typical” value.
More examples
Even number of values: 4, 8, 15, 16. The two middle values are 8 and 15, so the median is (8 + 15) ÷ 2 = 11.5.
No mode: 1, 2, 3, 4, 5. No value repeats, so there is no mode.
Two modes (bimodal): in the default data, 23 and 38 tie, so both are modes.
Quick check: in 2, 3, 3, 4 and 18 the mean is 6, the median is 3, the mode is 3 and the range is 16. The 18 pulls the mean far above the rest.
Which one should you use?
Situation
Better choice
Fairly symmetrical numbers, no extreme values
Mean
Skewed data or outliers (income, prices)
Median
Categories such as favourite colour or shoe size
Mode
How spread out the data is
Range, and for more detail the standard deviation
When the mean is much higher than the median the data is skewed to the right (a few very large values). When the mean is lower than the median it is skewed to the left.
Where these measures are used
Test scores: the mean gives the class average, the median shows what the middle student scored and the range shows the gap between best and worst.
Pricing and shopping: the mode shows the most popular size or price point, which helps decide what to stock.
Weather and sport: the mean of daily temperatures or match scores smooths out day-to-day swings.
A weighted mean: if some values count more than others (such as course grades weighted by credits), a plain mean is not enough; use the Grade or GPA Calculator instead.
In a perfectly symmetrical data set with a single peak, the mean, median and mode are all the same. The further apart they are, the more skewed the data.
Common mistakes
Forgetting to sort the data before finding the median by hand.
Dividing by the wrong count when some values repeat. Count every value, repeats included.
Reporting the mean for skewed data without checking the median.
Treating “no mode” as zero. It means no value repeats.
Typing a stray comma or letter in the list. One wrong digit changes the mean.
How to read your result
Compare the mean and median first. If they are close, the data is fairly balanced and either is a fair centre. If they differ a lot, look at the range and the sorted list for outliers. For a measure of spread that uses every value, the Standard Deviation Calculator is the next step.
The calculator summarises the numbers you enter. It cannot tell you whether the data was collected fairly or whether a value is a mistake.
Use the median when the data is skewed or has outliers, such as incomes or home prices. A single extreme value drags the mean but barely changes the median.
Can a data set have more than one mode?
Yes. If two or more values tie for the highest count, all of them are modes. If no value repeats there is no mode.
What is the median of an even number of values?
Sort the data and take the average of the two middle values. For 4, 8, 15, 16 that is (8 + 15) ÷ 2 = 11.5.
What does the range tell me?
It is the distance between the smallest and largest value. It is simple, but one extreme value changes it a lot, so use the standard deviation for a fuller picture of spread.
Can I enter decimals or negative numbers?
Yes. Separate the numbers with commas or spaces. Decimals and negatives work in the same way.
Is the mean the same as the average?
In everyday speech, yes: the arithmetic mean is what most people call the average. Median and mode are other kinds of average.