Mean, Median, and Mode

Statistics guide

Mean, Median, and Mode

How to find the three averages and the range, which one to trust when the data has an outlier, and how to handle frequency tables, weighted means and missing values.

Updated

9 min read

Quick answer

The mean is the sum of the values divided by how many there are, the median is the middle value once they are in order, and the mode is the value that appears most often. For 6, 2, 9, 4, 4, the mean is 25 ÷ 5 = 5, the median of 2, 4, 4, 6, 9 is 4, and the mode is 4. The range, the highest minus the lowest, is 9 − 2 = 7.

What Are the Mean, Median, and Mode?

All three are ways to describe the “typical” value of a set of numbers. Statisticians call them measures of central tendency, because each one points to the center of the data in a different way. When people say “average” in everyday speech, they usually mean the mean.

MeasureHow to find itMemory trickFor 2, 4, 4, 6, 9
MeanAdd all values, divide by the countThe “mean” one makes you do the most work25 ÷ 5 = 5
MedianSort, then take the middle valueLike the median strip in the middle of a road4
ModeFind the most frequent valueMode sounds like “most”4
RangeHighest minus lowestHow far the values range9 − 2 = 7

The range is not an average. It measures spread, not the center, but it is almost always taught alongside the other three.

How to Find the Mean

Mean = sum of the values ÷ number of values. In symbols, x̄ = Σx ÷ n, where Σ means “add them all up”.

Example: find the mean of 2, 3, 4, 7, 7, 9. The sum is 2 + 3 + 4 + 7 + 7 + 9 = 32, and there are 6 values, so the mean is 32 ÷ 6 = 5.33. The mean does not have to be one of the values, and it does not have to be a whole number.

A quick way to check a mean: it must sit between the smallest and largest value. If you get 12 for the data above, you have divided by the wrong count. Adding long lists in your head is easier with the left-to-right trick from the mental math tricks guide.

How to Find the Median

  1. Sort the values from smallest to largest. This step is the one people skip, and skipping it gives the wrong answer.
  2. Odd count: the median is the single middle value, at position (n + 1) ÷ 2.
  3. Even count: there are two middle values, so the median is their mean.

Odd example: 6, 2, 9, 4, 4 sorts to 2, 4, 4, 6, 9. With 5 values, the middle is position (5 + 1) ÷ 2 = 3, so the median is 4.

Even example: 2, 3, 4, 7, 7, 9 has 6 values, so the middle two are the 3rd and 4th: 4 and 7. The median is (4 + 7) ÷ 2 = 5.5.

How to Find the Mode

Count how many times each value appears. The one that appears most is the mode. Sorting first makes repeats easy to spot.

  • One mode: in 2, 4, 4, 6, 9, the mode is 4.
  • Two modes (bimodal): in 12, 15, 15, 18, 20, 22, 22, both 15 and 22 appear twice, so there are two modes.
  • No mode: in 1, 2, 3, 4, 5, every value appears once, so there is no mode. The answer is “no mode”, not 0.

The mode is the only average that works for categories, such as the most popular shirt size or favorite color, where you cannot add or sort the values.

How to Find the Range

Range = highest value − lowest value. For 2, 4, 4, 6, 9, the range is 9 − 2 = 7. A small range means the values are bunched together; a large range means they are spread out.

The range uses only the two extreme values, so a single unusual number can make it huge. For a measure of spread that uses every value, use the standard deviation; the standard deviation calculator works it out with the mean and every step shown.

Worked Example: All Four at Once

Find the mean, median, mode and range of 5, 13, 9, 7, 1, 9, 2, 9, 11.

  1. Sort: 1, 2, 5, 7, 9, 9, 9, 11, 13. There are 9 values.
  2. Mean: the sum is 66, so the mean is 66 ÷ 9 = 7.33.
  3. Median: the middle is position (9 + 1) ÷ 2 = 5, which is 9.
  4. Mode: 9 appears three times, more than any other value, so the mode is 9.
  5. Range: 13 − 1 = 12.

Which Average Should You Use?

Each average answers a slightly different question, and the right one depends on the shape of your data. The biggest factor is outliers: values far away from the rest.

Example: five employees earn $30k, $32k, $35k, $38k and $40k. The mean and median are both $35k, a fair picture. Now add a manager who earns $1,000k. The mean jumps to about $195.8k, more than anyone except the manager earns. The median only moves to $36.5k. One outlier dragged the mean far away, while the median stayed close to what a typical person earns. That is why news reports usually quote median income and median house prices.

UseWhenWatch out for
MeanData without big outliers, like test scores or heightsOne extreme value pulls it a long way
MedianSkewed data or outliers, like incomes and house pricesIgnores how far the extreme values are
ModeCategories, or finding the most common valueThere may be no mode, or several

In perfectly symmetrical data, like a bell curve, the mean, median and mode are all equal. When the mean is much bigger than the median, the data has a long tail of high values.

Mean, Median, and Mode From a Frequency Table

Survey results often come as a frequency table: each value with how many times it appeared. Here, 23 people rated a product from 1 to 5.

Rating (x)Frequency (f)x × f
144
2816
3721
4312
515
Total2358
  • Mean: multiply each value by its frequency, add, and divide by the total frequency: 58 ÷ 23 ≈ 2.52.
  • Median: with 23 values, the middle is the 12th. The first 4 are 1s and the next 8 are 2s, covering positions 5 to 12, so the median is 2.
  • Mode: the value with the highest frequency, 8 people, is 2.

Weighted Mean

A weighted mean counts some values more than others. Course grades work this way: if homework is 90 at 20%, quizzes are 80 at 20% and exams are 85 at 60%, the weighted mean is 90 × 0.2 + 80 × 0.2 + 85 × 0.6 = 18 + 16 + 51 = 85.

The grade calculator does this for any syllabus, and your GPA is a weighted mean too, with credits as the weights; the GPA calculator shows how.

Finding a Missing Value From the Mean

Because mean × count = sum, you can work backward. Example: your first four test scores average 85, and you want an average of 88 after five tests. You need a total of 88 × 5 = 440. You have 85 × 4 = 340 so far, so you need 440 − 340 = 100 on the fifth test.

The same method answers “how much has to change?” questions in sales, sports and budgets. To turn the result into a percentage change, use the percentage calculator.

Mean, Median, and Mode in Excel and Google Sheets

For data in cells A1 to A10: =AVERAGE(A1:A10) gives the mean, =MEDIAN(A1:A10) gives the median, and =MODE.SNGL(A1:A10) gives the mode. If there may be more than one mode, =MODE.MULT(A1:A10) returns all of them. The range is =MAX(A1:A10) − MIN(A1:A10).

Common Mistakes

MistakeWhat goes wrongDo this instead
Not sorting before the medianTaking the middle of 6, 2, 9, 4, 4 as 9Sort first: 2, 4, 4, 6, 9, so the median is 4
Even count medianPicking one of the two middle valuesAverage them: (4 + 7) ÷ 2 = 5.5
Calling “no mode” zeroWriting mode = 0 for 1, 2, 3, 4, 5Write “no mode”
Dividing by the wrong countLeaving out a repeated value when countingCount every value, including repeats
Using the mean with outliersReporting $195.8k as a “typical” salaryUse the median for skewed data

Practice Problems With Answers

Find the mean, median, mode and range for each set, then check.

  1. 3, 8, 5, 8, 6. Answer: mean 6, median 6, mode 8, range 5.
  2. 10, 4, 7, 2, 9, 6. Answer: mean 6.33, median 6.5, no mode, range 8.
  3. 15, 20, 15, 25, 30, 15. Answer: mean 20, median 17.5, mode 15, range 15.
  4. 1, 2, 2, 3, 3. Answer: mean 2.2, median 2, modes 2 and 3, range 2.
  5. You scored 88, 92 and 85 on three tests. What do you need on the fourth for an average of 90? Answer: 95, because 90 × 4 = 360 and 360 − 265 = 95.
  6. Which average best describes house prices of $210k, $225k, $230k, $240k and $1.9 million? Answer: the median, $230k, because the $1.9 million house is an outlier.

Frequently Asked Questions

What is the difference between mean, median, and mode?

The mean is the sum divided by the count, the median is the middle value in sorted order, and the mode is the most frequent value. For 2, 4, 4, 6, 9, the mean is 5, the median is 4 and the mode is 4.

How do you find the median of an even set of numbers?

Sort the numbers and take the mean of the two middle values. For 2, 3, 4, 7, 7, 9, the middle values are 4 and 7, so the median is 5.5.

Can there be more than one mode?

Yes. If two values tie for the most appearances, the data is bimodal and has two modes, like 15 and 22 in 12, 15, 15, 18, 20, 22, 22. If every value appears the same number of times, there is no mode.

Is the average the same as the mean?

In everyday use, yes: “average” usually means the mean. In statistics, the median and mode are also types of average, so it helps to say which one you mean.

Which is better, the mean or the median?

Neither is always better. The mean uses every value and works well for balanced data. The median resists outliers, so it is better for skewed data such as incomes and house prices.

Is the range a measure of central tendency?

No. The range measures spread: how far apart the highest and lowest values are. It is taught with the mean, median and mode because together they describe a data set’s center and spread.

How do you find the mean of negative numbers?

The same way: add them, keeping the signs, and divide by the count. For −4, 2, 8, the sum is 6 and the mean is 6 ÷ 3 = 2.

Key Takeaways

  • Mean = sum ÷ count; median = middle value after sorting; mode = most frequent value.
  • For an even count, the median is the mean of the two middle values.
  • Data can have one mode, several modes, or no mode.
  • Outliers pull the mean but barely move the median, so use the median for skewed data.
  • The range measures spread; the standard deviation is a fuller measure that uses every value.

Further reading: Lumen Learning: Mean, Median, and Mode and Hunter College (CUNY): Understanding Mean, Median, and Mode.

About the author