Explore all tools
FREE ONLINE TOOLNo visitor account required

Mean Median Mode Range Calculator

Mean, median, mode and range of any list — with the sorted data, the midrange and the working for every measure shown.

—

Mean

Median—
Mode—
Range—
Midrange—
Sum—
Count—
Sorted data—

Note: With an even count, the median is the average of the two middle values and may not itself appear in the data.

Report a problem with this tool

The Four First Statistics, With the Working

Mean, median, mode and range are the first four summaries every student meets, and this calculator shows its working for each: the data sorted in front of you, the middle value (or the average of the two middle values) for the median, the frequency count behind the mode, and max − min for the range. The midrange — halfway between the extremes — is included because it is the cautionary tale of the family: one outlier drags it completely, which is precisely why the median exists.

Worked Example

For 3, 7, 7, 2, 9, 7, 5: sorted, the data is 2, 3, 5, 7, 7, 7, 9. The sum is 40 over 7 values, so the mean is 5.71. The middle (4th) value is the median, 7; 7 also appears three times, more than anything else, so the mode is 7. The range is 9 − 2 = 7 and the midrange is (2 + 9) / 2 = 5.5. Mean below median here tells you the low values (2, 3) are pulling the average down.

Even Counts, Ties and No Mode

With an even count there is no single middle value, so the median averages the two central ones — for 1, 2, 3, 4 it is 2.5, a value not in the data, which is correct behaviour for a centre. Two values tied for most frequent make the data bimodal and both are reported. And when nothing repeats there is simply no mode; that is a property of the data, not a failure of the calculator.

Frequently Asked Questions

How do I find the median with an even number of values?

Average the two middle values once the data is sorted. For 1, 2, 3, 4 the median is 2.5 — it does not need to be one of the data values.

Can a dataset have two modes?

Yes — that is called bimodal, and both values are reported. If nothing repeats at all, there is no mode, which is a property of the data, not an error.

What is the midrange and why is it risky?

Halfway between the minimum and maximum. One outlier moves it completely, which is why it is shown here mainly as a contrast with the robust median.

Why is my mean lower than my median?

Low outliers or a left tail are pulling the mean down. In the worked example the values 2 and 3 drag the mean to 5.71 while the median stays at 7.