Try it with your numbers
Show every step
Mean, median and mode each answer “what is typical?” in a different way, and the range answers “how spread out is it?”. The sections below cover the standard method, then the places where students lose points: even-sized lists, negatives, frequency tables, ties for the mode, and choosing between the mean and the median.
How do you find the mean, median, mode and range?
Take the data . Sort it first, because the median and the range both depend on order and sorting also makes repeats easy to spot.
- Sort: .
- Mean: add everything and divide by the count.
- Median: with values, take the 4th.
- Mode: the value that repeats most.
- Range: largest minus smallest.
The 4th value of the sorted list is , so the median is . The value appears three times, so the mode is . The range is . Notice that the three centers disagree (, , ). That disagreement is information: the data has a longer tail on the high side.
The range is always one number, never “5 to 15”. It also uses only the two extreme values, so two data sets can share a range of and look nothing alike. When you need a measure of spread that uses every value, move to standard deviation.
Quick check
Answer: median = 9, range = 11
Why the mean is the balance point of a data set
Picture each value as an equal weight on a number line. The mean is the point where the line balances. Algebra says the same thing: since , the distances from the mean cancel exactly.
Check with . The mean is , and the deviations are , which add to . This is why one huge value drags the mean so hard: the other values must collectively sit on the other side to balance it.
Each measure of center also minimizes a different kind of miss. The mean minimizes the total squared distance to the data, the median minimizes the total absolute distance, and the mode minimizes the number of values you miss entirely. For , the total absolute distance from the median is , while from the mean it is . The median wins on that scoreboard, and the mean wins on the squared one.
Try this: Pick any five numbers, find their mean, subtract the mean from each number, and add the five differences. You should get exactly . If you do not, recheck the mean.
There is a useful shortcut when the values are evenly spaced, such as . The mean equals the median and equals . Multiply that mean by the count and you have the sum, which is exactly the idea behind the arithmetic series formula.
How to find the median with negatives or an even count
With sorted values, the median sits at position . When is even, that position lands halfway between two values, so you average them.
For the median is the 4th value. For the position is , halfway between the 3rd and 4th values. Counting positions is faster and safer than crossing numbers off from both ends.
Take the temperatures . Sort them: . The mean first:
The middle pair is and , so the median is . The mode is . The range is .
Two traps live here. Sorting negatives backward is the first: is smaller than , so it comes first. Subtracting a negative is the second: the range is , which is , not . With decimals or fractions, convert everything to the same form before sorting. , and sort correctly as . Also remember that an even-count median usually is not one of your data values, and that is fine.
Mean, median and mode from a frequency table

A frequency table compresses repeated values. Suppose a survey of households records pets per household: pets in homes, pet in , pets in , and pets in . Multiply each value by its frequency, add, and divide by the total frequency:
The mode is the value with the biggest frequency, which is pet. For the median, there are values, so average the 10th and 11th. The running counts are (for ) and (for ), so both the 10th and 11th values are , and the median is . The range is . The most common slip is dividing by the number of table rows () instead of the total frequency ().
A frequency table is really a weighted average, where each value is weighted by how often it occurs. That same idea explains the most expensive mistake with group data.
Class A has students with mean , and class B has students with mean . The combined mean is , not , because class B counts three times as much.
For grouped data in class intervals, the exact median and mode cannot be recovered. You can only name the median class and the modal class, and estimate the mean using interval midpoints.
Can a data set have two modes or no mode?
Yes to both. In , the values and tie, so the set is bimodal and you report both. In every value appears once. Most textbooks say there is no mode, though some say every value is a mode, so follow your course’s convention. A single repeated value, as in , has the mode .
The mode is the only one of the three that works for categories. You cannot average favorite colors or find the middle shirt size, but you can say which appears most. It is also the measure that exposes two groups hiding in one data set. If a shop’s customers are mostly children’s sizes and mostly adult sizes, the mean lands on a size almost nobody buys, while the two modes describe the real market.
With continuous measurements such as exact heights, repeats are rare, so the mode is usually meaningless unless the data is grouped into intervals. In probability, the mode of observed outcomes is your best guess for the most likely result, a connection worth following up in basic probability.
Quick check
Answer: 5 and 9
How to find a missing value when the mean is given
The mean fixes the total: . That turns “what score do I need?” into one subtraction. Your test scores are , and you want a mean of over five tests.
You need an on the fifth test. Always sanity-check the answer against what is possible. If the required score came out above the maximum, the target is unreachable.
Missing-value problems with the median work differently, because position matters. If has median , assume falls between and . Then the median is , so . Verify the assumption: does sit between and , so the answer is consistent. If it had not, you would try the other ordering.
Adding a new value to a data set works the same way. Eight numbers with mean have total . To raise the mean to with a ninth number, the new total must be , so the ninth number is .
Mean vs median: which one fits your data?

The mean uses the size of every value, so it responds to outliers. The median uses only position, so it does not. A firm pays salaries (in thousands of dollars) of . The mean is , a figure that describes no actual employee. The median is , which describes the typical one.
| Measure | Uses | Outlier effect | Best for |
|---|---|---|---|
| Mean | Every value | Large | Symmetric numeric data, totals |
| Median | Position only | Small | Skewed data such as income |
| Mode | Frequency only | None | Categories, finding peaks |
In right-skewed data (a long tail of high values) the usual order is mode, then median, then mean, from smallest to largest. In left-skewed data it reverses. The order is typical, not guaranteed, but it gives a fast diagnostic: if the mean and median are far apart, the data is skewed, and the median is the safer summary.
The median is not always superior. For small, symmetric data with no outliers it throws away information the mean uses, and only the mean supports further calculations such as standard deviation. When unsure, compute both and report both.
Quick check
Answer: mean = 12, median = 3; the median
How do you check a mean, median and mode answer?
Four quick tests catch most errors before you hand in the work:
- The mean must lie between the smallest and largest values. If it does not, the addition slipped.
- Multiply your mean by . You should get back the original sum.
- For an odd count, the median must be an actual data value, and the same number of values must sit on each side of it.
- The range must equal max minus min, so it can never be negative.
A fifth check is a mental shortcut for big numbers. Shifting every value by the same amount shifts the mean, median and mode by that amount and leaves the range unchanged. For , subtract to get . The mean of those is , so the original mean is . Multiplying every value by multiplies the mean, median and mode by and the range by , which makes unit conversions painless.
Where mean, median and mode show up in other math
The mean quietly drives several algebra topics. The line of best fit always passes through the point , so once you know its slope you can write the equation in point-slope form and rearrange it to slope-intercept form. For , the mean of the two roots is , which is also the -coordinate of the vertex. You can test that on quadratic formula practice problems.
There is also a mean for growth rates, the geometric mean . Taking logarithms turns it into an ordinary mean, since the log of a product becomes a sum, as the logarithm rules show. For and , the mean of and is , and is the geometric mean.
In statistics, the mean of a sample is itself a random quantity. Choosing scores from can be done in ways (the counting is covered under combinations), and each sample has its own mean. How tightly those means cluster is what hypothesis tests measure. The same pattern appears in probability, where the expected value of a fair die, , is just the mean of through .
Practice problems
0 of 5 solved
- Find the mean of .
Answer:
Add the values: . Divide by the count: . - Find the median and mode of .
Answer: median = 9.5, mode = 7
Sort: . Six values, so average the 3rd and 4th: . The value appears twice and nothing else repeats, so the mode is . - Find the mean and range of .
Answer: mean = 3.4, range = 4.5
Sum: . Mean: . Range: largest minus smallest, . - Five numbers have mean . Four of them are . Find the fifth number.
Answer:
The total must be . The four known numbers add to . The fifth is . - The scores occur times. Find the mean, median and mode.
Answer: mean = 2.8, median = 3, mode = 2
There are scores. Total: , so the mean is . The median is the average of the 10th and 11th scores; the running counts are , so both are . The highest frequency is , at score , so the mode is .
Common questions
What is the difference between mean, median and mode?
The mean is the total divided by the count, the median is the middle value of the sorted list, and the mode is the value that appears most often. They answer the same question, what is typical, in three different ways, and they only agree when the data is fairly symmetric.
How do you find the median when there are two middle numbers?
Sort the list, take the two middle values and average them. For the middle pair is and , so the median is , even though is not in the list.
Can a data set have more than one mode, or none?
Yes to both. Two or more values can tie for the highest frequency, which gives a bimodal or multimodal set. If every value appears the same number of times, most textbooks say there is no mode.
Is the average the mean or the median?
In everyday speech and most school problems, average means the mean. Statisticians use average loosely for any measure of center, so in news reports about income or house prices check whether the figure is a mean or a median.
When is the median better than the mean?
Use the median when the data is skewed or has outliers, such as incomes, house prices or waiting times. A few extreme values pull the mean toward them but barely move the median.
Is the range a measure of center or spread?
The range, highest minus lowest, measures spread. It says nothing about the center, and it depends on only two values, so one outlier can inflate it.