To find the mean, add all the values and divide by how many there are. The median is the middle value after sorting. The mode is the value that appears most often. For 12, 15, 15, 18, 20, 22, 25, 31, 47 the mean is 22.8, the median 20 and the mode 15.

If you have a list of numbers and need to know how to find mean, median and mode, you need three short methods: add and divide, sort and pick the middle, and count what repeats.
This guide works one real data set all the way through, then covers the cases that cause wrong answers on homework and at work: even counts, frequency tables, outliers, ties and data with no mode. To check your own list, paste it into our mean median mode calculator.
How Do You Find the Mean, Median and Mode?
You find the mean by adding the values and dividing by the count, the median by sorting and taking the middle value, and the mode by finding the value that appears most often.
Median = middle value of the sorted list (odd count), or the average of the two middle values (even count)
Mode = the value with the highest frequency
These are the three measures of center, also called measures of location. The NIST/SEMATECH e-Handbook of Statistical Methods defines them the same way. Each one sums up a whole data set with a single number, but each uses a different idea of “typical.”
- The mean uses every value, so one huge number can pull it a long way.
- The median only cares about order, so it ignores how extreme the ends are.
- The mode is the only one that works for categories like colors or shirt sizes.
What Is an Example of Finding Mean, Median and Mode?
A good example is nine commute times in minutes: 22, 15, 31, 12, 18, 47, 15, 25 and 20, which give a mean of 22.8, a median of 20 and a mode of 15.
Sam logs nine commutes in minutes: 22, 15, 31, 12, 18, 47, 15, 25, 20.
- Sort the list: 12, 15, 15, 18, 20, 22, 25, 31, 47.
- Mean: the sum is 205. Divide by 9 values: 205 ÷ 9 = 22.8 minutes.
- Median: with 9 values, the middle is the 5th one. Count in: 12, 15, 15, 18, 20. The median is 20 minutes.
- Mode: 15 appears twice and everything else once, so the mode is 15 minutes.
- Bonus, range: 47 − 12 = 35 minutes.
The mean sits almost 3 minutes above the median. That one 47 minute day, maybe a crash on the highway, drags the mean up but barely moves the median.
A quick way to find the middle position: for n sorted values, the median is at position (n + 1) ÷ 2. For 9 values that is position 5.
How Do You Find the Median of an Even Set of Numbers?
To find the median of an even set, sort the numbers, take the two middle values and average them.
Drop the 47 from Sam’s list and you have eight values: 12, 15, 15, 18, 20, 22, 25, 31. The middle positions are 4 and 5, which hold 18 and 20. The median is (18 + 20) ÷ 2 = 19. The new mean is 158 ÷ 8 = 19.75.
| Number of values (n) | Median position(s) | What you do |
|---|---|---|
| 7 | 4th | Take the 4th value |
| 8 | 4th and 5th | Average them |
| 9 | 5th | Take the 5th value |
| 10 | 5th and 6th | Average them |
| 25 | 13th | Take the 13th value |
| 100 | 50th and 51st | Average them |
Two mistakes show up again and again. First, forgetting to sort. The median of 22, 15, 31 is not 15, it is 22. Second, picking one of the two middle values instead of averaging them. The median of an even set can be a value that is not in the list at all, like 19 here.
How Do You Find Mean, Median and Mode From a Frequency Table?
From a frequency table, multiply each value by its frequency and divide by the total frequency for the mean, use cumulative counts to locate the median, and pick the value with the largest frequency for the mode.
A teacher asks 25 students how many siblings they have.
| Siblings (x) | Students (f) | x × f | Running total of f |
|---|---|---|---|
| 0 | 4 | 0 | 4 |
| 1 | 7 | 7 | 11 |
| 2 | 9 | 18 | 20 |
| 3 | 3 | 9 | 23 |
| 4 | 2 | 8 | 25 |
| Total | 25 | 42 |
- Mean: 42 ÷ 25 = 1.68 siblings. Dividing by 5 rows instead of 25 students is a classic error.
- Median: 25 values, so the 13th. The running total passes 13 in the row for 2 (it goes from 11 to 20). The median is 2.
- Mode: 2 has the biggest frequency, 9, so the mode is 2.
The mean from a frequency table is really a weighted average, with frequencies as the weights. Our weighted average calculator handles it if you enter the values and counts.
Can a Data Set Have No Mode or More Than One Mode?
Yes. A data set has no mode when every value appears the same number of times, and it has two or more modes when several values tie for the highest count.
- No mode: 3, 6, 9, 12. Each value appears once, so there is no mode. Saying the mode is 0 is wrong.
- Bimodal: shoe sizes 7, 8, 8, 9, 10, 10, 11 have two modes, 8 and 10. The mean and median are both 9, a size that only one person wears.
- Categories: if favorite colors are blue, red, blue, green, blue, the mode is blue. You cannot find a mean or median of colors.
The NIST handbook points out that the mode may not be unique. For measured data such as heights, where exact repeats are rare, statisticians often group values into ranges and report the range with the most values instead.
When Should You Use the Mean vs the Median?
Use the mean when the data is roughly symmetric with no extreme values, and use the median when the data is skewed or has outliers.
Here is a street of seven homes, with sale prices in thousands of dollars: 240, 255, 260, 270, 285, 300 and one mansion at 1,900.
| Data | Mean | Median |
|---|---|---|
| All 7 homes | $501,400 | $270,000 |
| Without the mansion | $268,300 | $265,000 |
All 7: 3,510 ÷ 7 = 501.4. Without the mansion: 1,610 ÷ 6 = 268.3; the median is (260 + 270) ÷ 2 = 265.
One sale nearly doubles the mean, yet the median moves only $5,000. Pay data behaves the same way. The Bureau of Labor Statistics reports median weekly earnings, and the median suits pay because a small number of very high earners can pull a mean far above what a typical worker makes. The NIST handbook says the same thing in general terms: in a skewed set, the mean gets pulled toward the long tail.
- Mean: test scores, daily temperatures, measurements from a machine.
- Median: home prices, incomes, wait times, anything with a long tail.
- Mode: sizes to stock, most popular product, survey answers.
Comparing the mean and median is a fast skew check. If the mean is well above the median, a few large values are stretching the right tail. To measure how spread out the values are, the next step is the standard deviation calculator.
How Does an Outlier Change the Mean, Median and Mode?
An outlier changes the mean a lot, the median a little and the mode usually not at all.
Add a 120 minute snowstorm commute to Sam’s original nine values. The mean jumps from 22.8 to 32.5 minutes. The median moves only from 20 to 21, because the list now has 10 values and the middle pair is 20 and 22. The mode stays 15.
So before you report a mean, scan for typos and odd values. A 470 typed instead of 47 would wreck the mean while the median would barely notice. Sorting first, as you do for the median, makes outliers easy to spot at the ends of the list. Do not delete an outlier just because it is inconvenient, though. If the 47 minute commute really happened, it is part of Sam’s commute story. Report it, and say whether you used the mean or the median so readers know how much weight it got. When in doubt, give both numbers side by side. For a plain mean of a long list, our average calculator is quickest; for all three at once, use the mean, median and mode tool.
Quick Recap
- Mean = sum ÷ count; median = middle of the sorted list; mode = most frequent value.
- For an even count, the median is the average of the two middle values.
- In a frequency table, divide by the total frequency, not the number of rows.
- A set can have no mode, one mode or several modes.
- Use the median for skewed data like prices and incomes.

Frequently Asked Questions
What is the easiest way to remember mean, median and mode?
Mean is the average you get by adding and dividing. Median sounds like the median strip in the middle of a road, so it is the middle value. Mode starts like “most,” so it is the most common value.
Do you have to sort the numbers to find the mean?
No. The mean only needs the sum and the count, so order does not matter. You must sort to find the median, and sorting also makes the mode easier to spot because repeats sit next to each other.
Can the mean, median and mode be the same number?
Yes. In a perfectly symmetric data set with one peak, like 2, 3, 3, 3, 4, all three are 3. In a normal distribution, the mean, median and mode are equal.
Can the median be a decimal?
Yes. With an even count, the median is the average of the two middle values, so 3, 4, 5, 6 has a median of 4.5. It can be a number that does not appear in the list.
What is the range in math?
The range is the largest value minus the smallest value. For 12, 15, 15, 18, 20, 22, 25, 31, 47 the range is 47 − 12 = 35. It shows spread, not center, and one outlier can stretch it.
Which is better, mean or median?
Neither is always better. The mean uses every value and works well for symmetric data. The median resists outliers and gives a truer typical value for skewed data such as incomes and home prices.
How do you find the mode if numbers repeat the same amount?
If every value repeats the same number of times, the set has no mode. If two or more values tie for the most repeats, list all of them; the set is bimodal or multimodal.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods: 1.3.5.1 Measures of Location, definitions of mean, median and mode and how skew pulls the mean
- Common Core State Standards: Grade 6 Statistics and Probability, measures of center and choosing them by the shape of the data
- U.S. Bureau of Labor Statistics: Usual Weekly Earnings Summary, official earnings data reported as medians
