Skip to main content

Notice Send us your feedback to help us improve this service.

Mean, Median, Mode Calculator

Calculate the mean, median, mode, and range of a data set.

What this calculator does

This tool finds the mean, median and mode of a list of numbers, plus the range. Each one is a different way to describe a typical value. Use it for test marks, hockey stats, survey answers or prices you have collected.

Seeing all three side by side tells you more than any one of them alone. When they disagree, your data is telling you something worth a closer look.

How we work it out

Separate your numbers with commas, spaces or semicolons. We sort them from smallest to largest.

The mean is the total divided by how many numbers there are. The median is the middle number in the sorted list. With an even count, it is halfway between the two middle numbers. The mode is the number that shows up most often. If several numbers tie, we list them all. If every number appears the same number of times, the mode reads No mode. The range is the largest number minus the smallest.

Dollar and percent signs are ignored. If an entry is not a number, such as a word or a unit, the tool names it so you can fix it.

Which average to use

The mean uses every number, so it is a good choice when your data is fairly even. Marks on a test that most of the class passed are a good example. But the mean reacts strongly to one very large or very small value. A single perfect score in a class of low marks, or one mansion on a street of bungalows, can pull it well away from what is typical.

The median only cares about the middle position. Change the biggest number to anything you like and the median stays put. That makes it a good choice for things like incomes or home prices, where a few very high values are common.

The mode is the only one of the three that works for categories. If you ask your neighbours for their favourite hockey team, there is no mean team, but there is a most popular one. This tool needs numbers, so give each category a number code first. For real numbers, the mode helps most when values repeat a lot, such as shoe sizes or household sizes.

When the three disagree

If the mean is well above the median, a few high values are stretching the data upward. If it is well below, a few low values are dragging it down. Look at those values before you report anything. One of them may be a typing error, such as 500 instead of 50.

A tie for the mode between two values far apart can be a sign that two groups are mixed together, such as marks from two different classes. It is often worth splitting them and looking at each group alone.

Mistakes to avoid

  • Put a space after each comma when your numbers have thousands separators. Typed as 1,500, 2,000 the list holds two numbers. Typed as 1,500,2,000 with no spaces, every comma splits, and you get four.
  • Use a point for decimals. In French, 2,5 means two and a half, but here the comma splits it into 2 and 5.
  • Keep zeros that are real. A game with no goals or a day with no sales is data, and leaving it out makes the mean too high.
  • Do not average averages. If two classes have different sizes, use the weighted average calculator instead.

What this does not include

  • Decimal commas, as in 2,5, are read as two separate numbers. Use a point for decimals
  • Every number counts equally. Marks with different weights need a weighted average
  • Categories such as team names. Give each one a number code first
  • How spread out the numbers are, beyond the range
  • Lists longer than 1,000 numbers

Common questions

Which one should I use?

The median is better when a few very large or very small values would drag the mean away from the middle. Income is a good example, because a small number of high earners lift the mean. The mean works well when values are fairly even, such as most test marks. The mode suits the most common size or choice.

Can a list have more than one mode?

Yes. If two or more numbers tie for appearing most often, the calculator lists every one of them. A list like 2, 2, 3, 3, 9 has two modes. If every number appears the same number of times, the calculator shows No mode instead. That matches how Statistics Canada describes a list like that.

Is the mean the same as the average?

In everyday speech, yes. When people say the average, they almost always mean the mean: add everything up and divide by the count. In statistics, the median and the mode are also kinds of average, because each one describes a central value. Say which one you used when you share a result.

Does it matter whether my numbers are a sample?

Not for these results. The mean, median, mode and range are worked out the same way for a sample or a whole population. The difference shows up when you measure spread. For that, see the standard deviation calculator, which explains the two formulas.

How do I find the median by hand?

Sort the numbers from smallest to largest. With an odd count, the median is the one in the middle. With an even count, take the two middle numbers, add them and divide by 2. For 3, 5, 8 and 10, the middle pair is 5 and 8, so the median is 6.5.

Sources

Last reviewed October 18, 2026. How we check our numbers.

This is an estimate to help you plan. It is not financial, medical, or legal advice. Talk to a professional before you make a big decision.

Add this calculator to your website

Free to use on your site, blog or intranet. Paste this code where you want the calculator to appear. It works on its own, sets no cookies and shows no ads.