Menu

Mean Median Mode Calculator

All three averages plus range and quartiles, with how each was found.

By Nethanel Bar, Co-founder & CEO

Last updated

Want to solve these without the calculator?

The Coddy math course teaches the method itself - you work each step on an interactive board and get told exactly where a move went wrong.

Three different answers to "where is the middle?"

The mean adds everything and shares it out equally. The median ignores the sizes and picks the value in the middle of the order. The mode ignores position entirely and picks whatever occurs most often. They are three genuinely different questions, and on a lopsided list they give three genuinely different answers - which is exactly when knowing the difference matters.

That is why one house price in a street of flats moves the mean and leaves the median alone: the mean feels every value's size, while the median only counts positions. Ask which "average" you were given whenever a single number is quoted about incomes, prices or waiting times - the choice is doing real work.

This page reports all three, plus the range, the quartiles and the interquartile range, and shows how each one was found from the sorted list. The means stay exact: the mean of 1, 2 and 4 is 7/3 here, not 2.33, because 2.33 is a different number and rounding is a decision the reader should get to make.

What to notice

  • Sort the list first. The median, the quartiles and the range all read straight off the order, and none of them can be trusted before you have.
  • An even count has no single middle, so the median is the mean of the two middle values - and may not be a value from the list at all.
  • A list can have several modes, or none. Two values tied for most frequent means two modes; all values appearing once means there is no mode, which is an answer rather than a failure.
  • The mean is the only one of the three that every value can pull on. One extreme value drags it and leaves the median where it was.
  • The range uses only two numbers, the largest and the smallest, so it tells you nothing about what happens between them.
  • The interquartile range is the range of the middle half. It ignores the tails on purpose, which is what makes it the sturdier measure of spread.

How to find all three by hand

  1. Write the values in order

    Smallest to largest. This costs a minute and makes three of the answers readable at a glance.

  2. The mean: add and divide

    Add every value, then divide by how many there are. Keep it as a fraction if it does not come out whole - 7/3 is exact and 2.33 is not.

  3. The median: find the middle position

    With an odd count it is the single middle value. With an even count, take the two middle values and average them.

  4. The mode: count repeats

    The value that appears most often. Tally as you go through the sorted list; ties are real and both count.

  5. The range and quartiles

    Largest minus smallest is the range. Split the sorted list at the median (leaving the median out if the count is odd) and take the median of each half: those are Q1 and Q3, and Q3 − Q1 is the interquartile range.

The three averages on the same lists

Notice the rows where they disagree - a skewed list is exactly where the choice of average changes the story.

ValuesMeanMedianModeRange
2, 4, 4, 4, 5, 5, 7, 954.547
1, 2, 3, 42.52.5none3
12, 15, 11, 15, 2014.615159
1, 2, 47/32none3
1, 1, 2, 2, 31.821 and 22
10, 10, 10, 10032.5101090
3, 3, 33330
5, 6, 7, 8, 977none4

Worked examples

All three at once: 2, 4, 4, 4, 5, 5, 7, 9

plain
2, 4, 4, 4, 5, 5, 7, 9

The total is 40 over 8 values, so the mean is 5. With an even count the median is the average of the 4th and 5th values, 4 and 5, giving 4.5. The mode is 4, which appears three times. Three different numbers, all correct answers to different questions.

When there is no mode: 1, 2, 3, 4

plain
1, 2, 3, 4

Every value appears exactly once, so there is no mode at all - not zero, and not the first value. The mean and median are both 2.5, which happens whenever the list is evenly spread. The median here is not a member of the list, and that is perfectly normal for an even count.

Two modes: 1, 1, 2, 2, 3

plain
1, 1, 2, 2, 3

Both 1 and 2 appear twice, so this list is bimodal and both are modes. Picking one and discarding the other is a mistake; the honest answer is both. The mean is 1.8 and the median is 2.

What an outlier does: 10, 10, 10, 100

plain
10, 10, 10, 100

The median is 10 and the mode is 10, but the mean is 32.5 - more than three times what most of the data says. This is the property that makes the median the honest choice for house prices and salaries, and the mean the misleading one.

An exact mean: 1, 2, 4

plain
1, 2, 4

The total is 7 over 3 values, so the mean is 7/3 - and 7/3 is what this page reports. Writing 2.33 rounds a third away, which matters the moment the number is used in anything else, such as a standard deviation.

Common mistakes

  • Reading the median off the unsorted list. The middle of the order is not the middle of what you typed; sort first, always.
  • Taking the middle position on an even count. With 8 values there is no 4.5th value - average the 4th and the 5th instead.
  • Calling "no mode" a mode of zero. If every value appears once, the list has no mode, and that is the answer to write.
  • Reporting one mode when two tie. Two values sharing the top count means two modes; a list can be bimodal or multimodal.
  • Rounding the mean before using it. 7/3 becomes 2.33 and every later calculation inherits the error - keep the fraction.
  • Assuming "average" means the mean. In news and reports it often means the median, and the two differ most on exactly the skewed data those reports discuss.

Mean, median and mode FAQ

What is the difference between mean, median and mode?
The mean is the total divided by the count. The median is the middle value once the list is in order. The mode is the value that appears most often. They answer three different questions about the middle, and on a skewed list they give three different numbers.
How do I find the median of an even number of values?
Take the two middle values and average them. For 1, 2, 3, 4 the middle two are 2 and 3, so the median is 2.5 - a number that need not appear in the list at all. Sorting the list first is what makes "middle" mean anything.
Can a list have more than one mode?
Yes. If two or more values tie for the highest count, all of them are modes, and the list is called bimodal or multimodal. This page reports every tied value rather than picking one, because picking one would be wrong.
What if there is no mode?
If every value appears exactly once, the list has no mode. That is a legitimate answer - not zero, and not the first or largest value. Some textbooks say the mode "does not exist" for such a list, which means the same thing.
Which average should I use?
The median when the data has extreme values or a long tail - incomes, house prices, waiting times. The mean when the values are roughly symmetric and every one should count. The mode when the data is categories rather than sizes, or when you genuinely want the most common case.
How are quartiles worked out here?
By the method school teaches: sort the list, split it at the median (excluding the median itself when the count is odd), and take the median of each half. Other conventions exist and give slightly different answers on small samples, so a textbook answer may differ - this page states the method it uses.
What is the interquartile range for?
It is the range of the middle half of the data, Q3 − Q1, and it ignores the extremes on purpose. That makes it a much sturdier measure of spread than the plain range, which is decided entirely by the two most unusual values in the list.
Why is the mean shown as a fraction?
Because it is exact. The mean of 1, 2 and 4 is 7/3; writing 2.33 loses a third of a hundredth immediately and more if the number is used again. The decimal is shown too when it terminates, but the exact value is the answer.

More math tools

Coddy programming languages illustration

Learn math with Coddy

GET STARTED