Mean, Median, Mode, and Range

Watch the video explainer

Learning goals

  • Compute the mean, median, mode, and range of a list, sorting first for the median
  • Explain why the mean is the balance point where deviations cancel
  • Choose median over mean when an outlier drags the data
  • Read the range as spread, not as a center
  • Name the mode as the summary that works for data with no numbers or order

The mean: a fair share

The mean, also called the arithmetic average, is the amount each value would get if the total were shared equally.

Say five friends are carrying 44, 88, 66, 22, and 55 dollars. Together they hold 4+8+6+2+5=254 + 8 + 6 + 2 + 5 = 25 dollars. If they pour it all into one pile and redistribute it equally, each friend walks away with

255=5 dollars.\frac{25}{5} = 5 \text{ dollars}.

So the mean is 55 dollars. Replacing every amount by 55 leaves the total unchanged: five fives still add to 2525. For any nonempty list of numbers, add the values and divide by their count:

mean=sum of the valuesnumber of values.\text{mean} = \frac{\text{sum of the values}}{\text{number of values}}.

You can also work backward from the mean. Multiplying it by the count recovers the total:

sum=mean×count.\text{sum} = \text{mean} \times \text{count}.

For example, four quiz scores have a mean of 88, so their total must be 8×4=328 \times 4 = 32. If three scores are 55, 77, and 99, they account for 2121 of those points. The missing score is 32−21=1132 - 21 = 11. Check: (5+7+9+11)÷4=8(5 + 7 + 9 + 11) \div 4 = 8.

Why the mean sits at the balance point

The mean also acts as a balance point. The numbers 2,3,4,72, 3, 4, 7 have mean 44. The value 22 sits 22 below it, 33 sits 11 below it, 44 sits right on it, and 77 sits 33 above it. A value’s deviation is the value minus the mean. It is negative below the mean, zero at the mean, and positive above it. Here the deviations add to

(−2)+(−1)+0+(+3)=0.(-2) + (-1) + 0 + (+3) = 0.

The deviations below the mean total −3-3, exactly canceling the +3+3 above it.

The mean as the balance point of 2, 3, 4, 7A ruler from 0 to 8 with weights at 2, 3, 4, and 7 and a fulcrum at the mean 4; the deviations plus 3 and minus 3 cancel.-2-10+3234701235678mean = 4
The data 2, 3, 4, 7 balanced on a ruler. The fulcrum sits at the mean, 4. The value at 7 is 3 units above the mean, which exactly balances the values at 2 and 3, together 3 units below it, so the deviations cancel.

Picture an equal weight at each value on a weightless ruler. The mean is where a support holds the ruler level: the total distance on one side balances the total distance on the other.

The deviations from the mean always add to zero#

Take another list, 1,5,91, 5, 9, with mean 55. Subtract 55 from each value and add:

(1−5)+(5−5)+(9−5)=(1+5+9)−3×5=15−15=0.\begin{aligned} & (1 - 5) + (5 - 5) + (9 - 5) \\ &= (1 + 5 + 9) - 3 \times 5 \\ &= 15 - 15 = 0. \end{aligned}

Rearranging the additions shows what happened: we added the original values, then subtracted the mean three times. Those two amounts are equal because the total is the mean times the count.

For any nonempty list of nn values, write the values as x1,x2,…,xnx_1, x_2, \ldots, x_n. The small numbers label their positions: x1x_1 is the first value and xnx_n is the last. Let T=x1+x2+⋯+xnT = x_1 + x_2 + \cdots + x_n be their total and mm their mean. Since m=T/nm = T/n, the total is T=nmT = nm.

Subtract mm from each value, then add the deviations. Regroup the original values together and the nn copies of mm together:

(x1−m)+(x2−m)+⋯+(xn−m)=(x1+x2+⋯+xn)−nm=T−nm=nm−nm=0.\begin{aligned} & (x_1 - m) + (x_2 - m) + \cdots + (x_n - m) \\ &= (x_1 + x_2 + \cdots + x_n) - nm \\ &= T - nm \\ &= nm - nm = 0. \end{aligned}

Check your understanding

A data set has mean 2020. Three of its four deviations from the mean are +5+5, +2+2, and −3-3. What must the fourth deviation be?

Answer choices

Worked example 1 Find the mean of 66, 99, 99, 44, and 77

Add the five values:

6+9+9+4+7=35.6 + 9 + 9 + 4 + 7 = 35.

There are 55 values, so divide the sum by 55:

mean=355=7.\text{mean} = \frac{35}{5} = 7.

The mean is 77. In the same order as the data, the deviations are (−1)+(+2)+(+2)+(−3)+0=0(-1) + (+2) + (+2) + (-3) + 0 = 0, which checks the balance.

Check your understanding

Over four days a shop sold 1212, 1515, 99, and 88 sandwiches. What was the mean number sold per day?

Answer choices

The median: the middle value

The median is the middle of the data after sorting from least to greatest. At least half the values are at or below it, and at least half are at or above it.

When there is an odd number of values, one value sits in the center, and that value is the median. Sort 3,8,5,9,43, 8, 5, 9, 4 into 3,4,5,8,93, 4, 5, 8, 9; with five values the third one is the middle, so the median is 55. Two values fall below it and two fall above.

When there is an even number of values, two positions share the middle. The median is the mean of those two values. Sort 7,2,10,47, 2, 10, 4 into 2,4,7,102, 4, 7, 10; the two middle values are 44 and 77, so the median is

4+72=5.5.\frac{4 + 7}{2} = 5.5.

Always sort first. The median is the middle of the values in order, which need not be the middle of the list as it was handed to you.

Finding the median for an odd and an even countTop row of five sorted values with the single middle value highlighted; bottom row of four sorted values with the two middle values highlighted and averaged.Odd count: one middle value34589median = 5Even count: average the middle two24710median = 5.5
The median splits the sorted data in half. With five values (top) the single middle value, 5, is the median. With four values (bottom) the two middle values 4 and 7 are averaged, giving 5.5.

Worked example 2 Find the median of 1414, 33, 99, 1414, and 66

Sort the five values from least to greatest:

3,  6,  9,  14,  14.3, \; 6, \; 9, \; 14, \; 14.

There are 55 values, so the third value is in the middle:

median=9.\text{median} = 9.

Two values (33 and 66) lie below it and two (1414 and 1414) lie above. Replacing one 1414 by 140140 would leave the middle position unchanged, so the median would still be 99.

Check your understanding

Find the median of 88, 22, 1111, and 55.

Answer choices

The mode: the most common value

The mode is the value that appears most often. Tally how many times each value occurs and look for the highest tally.

In the list 4,7,4,2,9,44, 7, 4, 2, 9, 4 the value 44 appears three times while every other value appears once, so the mode is 44. A list can have more than one mode. In 1,1,5,8,81, 1, 5, 8, 8, the values 11 and 88 each appear twice, more often than 55, so both are modes.

In this course, when several distinct values all have the same tally, we say there is no mode: none stands out. This covers 3,6,93, 6, 9 and 1,1,2,21, 1, 2, 2. A list with only one distinct value is different: in 3,3,3,33, 3, 3, 3, the mode is 33.

The mode is the only one of these four summaries that works on data with no numbers and no order. The mean and range need numbers to add and subtract. The median needs an order to sort into. The mode just needs you to count, so it works even on colors or names. Suppose six classmates name their favorite color: blue, red, blue, green, red, blue. You cannot add “blue” and “red” together, and you cannot sort colors from least to greatest, but you can still count. Blue is named three times, red twice, and green once, so blue is the mode.

Check your understanding

Five classmates name their favorite snack: chips, pretzels, chips, popcorn, chips. What is the mode?

Answer choices

The range: how spread out the data is

The first three summaries describe a typical value. The range measures spread: the distance from the smallest value (the minimum) to the largest (the maximum).

range=maximum−minimum.\text{range} = \text{maximum} - \text{minimum}.

For the test scores 72,88,95,60,8172, 88, 95, 60, 81, the largest is 9595 and the smallest is 6060, so the range is 95−60=3595 - 60 = 35. A small range means the smallest and largest values are close together; a large range means they are far apart. The range uses only those two extreme values, so it cannot show how the values in between are arranged.

Two classes can have the same mean and very different spreads. Suppose one class scores 78,79,80,81,8278, 79, 80, 81, 82: the mean is 8080, and the range is only 82−78=482 - 78 = 4, so every score sits close to 8080. A second class scores 50,75,80,95,10050, 75, 80, 95, 100: the mean is also 8080, but the range is 100−50=50100 - 50 = 50, so the scores are spread far apart. The range is a first, rough measure of that spread.

Worked example 3 Find the mean, median, mode, and range of 5,8,3,8,65, 8, 3, 8, 6

Start with the mean. Add the five values and divide by 55:

mean=5+8+3+8+65=305=6.\text{mean} = \frac{5 + 8 + 3 + 8 + 6}{5} = \frac{30}{5} = 6.

For the median, sort the data into 3,5,6,8,83, 5, 6, 8, 8. With five values the middle one is the third, so

median=6.\text{median} = 6.

For the mode, count repeats. The value 88 appears twice and everything else once, so the mode is 88.

For the range, subtract the smallest value from the largest:

range=8−3=5.\text{range} = 8 - 3 = 5.

So this data set has mean 66, median 66, mode 88, and range 55. The mean and median happen to agree here; the next section shows a data set where they disagree instead.

Check your understanding

For the data 10,4,7,4,10,410, 4, 7, 4, 10, 4, which statement is true?

Answer choices

Mean versus median: which center to trust

The mean uses every value’s size, while the median depends on the middle positions in sorted data. An outlier is a value unusually far from the others. Making an already-high value even higher pulls the mean up, but leaves the median unchanged if the middle values stay the same.

Picture five households with yearly incomes, in thousands of dollars, of 3030, 3535, 4040, 4545, and 10001000. The mean income is

30+35+40+45+10005=11505=230,\frac{30 + 35 + 40 + 45 + 1000}{5} = \frac{1150}{5} = 230,

which is larger than four of the five incomes. The calculation is correct, but 230230 thousand poorly describes a typical household here. The data is already sorted, so the median is

median=40,\text{median} = 40,

which sits right among the typical households. Replace the outlier with a typical income, say 5050 thousand, and the mean becomes 30+35+40+45+505=40\frac{30 + 35 + 40 + 45 + 50}{5} = 40, matching the median exactly. The single value of 10001000 pulled the mean up to 230230, while the median is 4040 in both lists.

The median can still move: adding a new value or moving a value past the middle can change it. But when an extreme value moves farther out, it does not keep pulling the median along the way it pulls the mean.

When the data is fairly balanced around its center, the mean and median are often close. When a few extreme values make the data lopsided, or skewed, the median often describes a typical value better. Use the mean when the total matters, such as sharing a bill or finding an amount per person.

Check your understanding

A small company has salaries, in thousands of dollars, of 4040, 4242, 4545, 4848, and 200200. Which measure best describes a typical salary here, and why?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

Suppose a cargo ship is caught in a storm and is riding far too low. To save it, the crew throws part of the cargo over the side, and the ship reaches port. Who should bear the loss of the cargo now at the bottom of the sea?

Such a loss was shared among those with property in the voyage, including the shipowner. The shares depended on the value of their property, so the owner of the sacrificed cargo did not bear the loss alone. This principle, called general average, survives in shipping. Roman jurists discussed a rule for cargo thrown overboard that was preserved in the sixth-century collection of laws called Justinian’s Digest. Daphne Penna’s chapter on general average traces the long history of that rule.

The word itself is linked to shipping. English average came through French avarie and Italian avaria, words associated with shipping damage and charges. Its earlier origin is uncertain. Over time the meaning shifted from losses and shared costs to a calculated middle value; the Online Etymology Dictionary records the mathematical sense from 1755.

General average was not an equal split like an arithmetic mean.

Your progress

See all your progress →