Mean Median Mode Calculator
Get the mean, median, and mode of any dataset in one go.
Paste a list of numbers and get all three measures of center at once: the mean (average), the median (middle value), and the mode (most frequent value). A must-have for statistics homework and quick data summaries.
How it's calculated
The mean is the sum divided by the count; the median is the middle value of the sorted list (average of the two middle values for even counts); the mode is the most frequent value, with ties broken by the smallest.
The three measures answer three different questions about the same list. The mean asks what every value would be if the total were shared out equally, which is why it uses every number — and why one very large or very small value can drag it up or down. The median asks only about position: in the sorted list it is the value in the middle, with half the values below and half above, so it barely moves when an outlier arrives at either end. The mode asks about frequency — which value turns up most often — and it also works for counted data, not just measurements.
Two details of this tool are worth knowing. First, the median of an even-length list is not one of the values at all: it is the average of the two values straddling the centre. Second, the mode needs a tie-breaking rule — if two values appear equally often, this calculator reports the smallest of them, and if every value appears once it reports the smallest value in the list. That is a reporting convention, worth remembering before you quote the result.
Worked example
Take the list 4, 6, 8, 8, 10, 8, 12: the values sum to 56 and there are 7 of them, so the mean is 56 ÷ 7 = 8. For the median, sort the list first: 4, 6, 8, 8, 8, 10, 12. With seven values the middle one is the fourth, which is 8. For the mode, count frequencies: 8 appears three times, every other value once, so the mode is 8. Here all three measures agree at 8, which tells you the data is fairly evenly spread around its centre. Replace the 12 with 120, though, and the mean would climb sharply while the median and mode stayed at 8 — a sign that one unusual value, not the group as a whole, is doing the pulling.
When to use it
Use all three together to summarise class test scores: the mean shows overall attainment, the median the typical student, and the mode the score that came up again and again. For money data such as house prices or salaries, quote the median as the headline — a few very expensive homes or high earners inflate the mean and make a typical case look richer than it is. The mode suits stock decisions: a shop ordering shoe sizes cares about the most frequent size, not an average that may not exist.
Common mistakes
- Taking the middle value of the list as typed instead of sorting first — the median is defined on the sorted list, and unsorted data gives a meaningless centre.
- Quoting only the mean for skewed data, letting one outlier become the story of the whole dataset.
- Assuming there is always exactly one mode; real data can tie, and this tool resolves ties by reporting the smallest tied value.
- Miscounting the values in the mean, especially in a long pasted list.
Frequently asked questions
What is the difference between mean, median, and mode?
The mean is the arithmetic average, the median is the middle value when sorted, and the mode is the value that appears most often. For 1, 2, 2, 3, 4 the mean is 2.4, the median is 2, and the mode is 2.
What if there are two middle numbers?
With an even count, the median is the average of the two middle values — e.g. the median of 1, 2, 3, 4 is 2.5.
What if no number repeats?
Then there is no true mode. The calculator shows the smallest value in that case, since every value is equally frequent.
How does one outlier affect the three measures?
An outlier moves the mean a lot, because the mean uses every value. It barely moves the median, which depends only on position in the sorted list, and leaves the mode unchanged unless the outlier itself becomes the most frequent value.
What separators can I use when entering numbers?
Numbers can be separated with commas, spaces or semicolons, or a mixture of all three — each token is read as one value, so a list copied from a spreadsheet row usually works as pasted.
An even-length list with an outlier
A second worked example: six days of practice minutes
A musician logs practice time for six days: 12, 15, 14, 13, 16 and 90 minutes — the 90 being one long weekend session. The values sum to 160, and with six of them the mean is 160 ÷ 6 ≈ 26.67 minutes. Sorted, the list reads 12, 13, 14, 15, 16, 90; with an even count there is no single middle value, so the median is the average of the two straddling the centre, (14 + 15) ÷ 2 = 14.5 minutes. For the mode, every value appears exactly once, so there is no genuinely frequent value — and this calculator's tie-breaking rule reports the smallest value in the list, 12. Three summaries of the same week now say 26.67, 14.5 and 12, and each is the honest answer to a different question.
Reading the three numbers when they disagree
Disagreement is information. The mean of 26.67 minutes describes no actual day — it is the total shared out evenly, inflated by the single 90-minute session, and it is the right figure if the question is about total practice volume. The median of 14.5 minutes describes the typical day, untouched by the weekend marathon, and it is the right figure for planning what tomorrow will probably look like. The mode of 12 needs the most care: here it is an artefact of the tie-breaking rule, not a value that occurred often, and quoting "the mode is 12" without that context would mislead. Whenever this calculator reports a mode, it is worth a glance at the list to see whether the value genuinely repeats.
Watch what happens when a seventh, ordinary day is added — 15 minutes. The new total is 175 over 7 days, so the mean falls to exactly 25.0 minutes, still pulled well above every normal day by the weekend session. The sorted list 12, 13, 14, 15, 15, 16, 90 now has a true middle value, the fourth entry, so the median becomes 15. And the mode changes character completely: 15 now appears twice, more than any other value, so the reported mode of 15 is a genuine frequency for the first time. One ordinary day repaired the median and the mode, but the mean will stay inflated until many more ordinary days dilute the outlier — a fair picture of how each measure behaves in the wild.
Choosing the right summary for the job
The same three-way choice appears wherever lists are summarised. House prices on one street call for the median, because a single mansion would drag the mean away from what a typical house costs. A shop stocking shoes cares about the mode, the size that sells most often, and neither of the other measures tells it anything useful. Fuel used per day across a month calls for the mean, because the monthly total — the thing actually paid for — is the mean multiplied by the count. The calculator computes all three every time; deciding which one answers your question is the part no tool can do for you, and it depends entirely on whether your question is about the total, the typical case, or the most frequent one.