Mean vs Median vs Mode
Understand the difference between mean, median, and mode. Learn how to calculate each measure of central tendency, when to use them, and how outliers affect the result.
Mean vs Median vs Mode
Mean, median, and mode are three ways to describe the center of a dataset.
They answer related but different questions:
- Mean: What is the arithmetic average?
- Median: What is the middle value?
- Mode: What value appears most often?
For a simple dataset:
2, 4, 4, 6, 9
The mean is:
(2 + 4 + 4 + 6 + 9) ÷ 5 = 5
The median is:
4
The mode is:
4
These values can be the same, but they do not have to be. Each one tells you something different about the data.
Quick Reference
| Measure | Meaning | Formula or Rule | Best For |
|---|---|---|---|
| Mean | Arithmetic average | Sum of values ÷ Number of values | Balanced numeric data |
| Median | Middle value | Sort values and find the center | Skewed data or outliers |
| Mode | Most common value | Count which value appears most often | Repeated values or categories |
If the data has extreme outliers, the median is often more representative than the mean.
If the data is categorical, the mode may be the only one of the three that makes sense.
What Is the Mean?
The mean is the arithmetic average.
To calculate the mean:
- Add all values together.
- Count how many values there are.
- Divide the sum by the count.
Use:
Mean = Sum of values ÷ Number of values
Example: Find the Mean
Calculate the mean of:
6, 8, 10, 12, 14
Add the values:
6 + 8 + 10 + 12 + 14 = 50
Count the values:
5
Divide:
50 ÷ 5 = 10
So the mean is:
10
The mean uses every value in the dataset, which makes it useful, but also sensitive to very large or very small numbers.
What Is the Median?
The median is the middle value after the data is sorted.
To calculate the median:
- Put the values in order from smallest to largest.
- Find the middle value.
- If there are two middle values, average them.
Example: Odd Number of Values
Find the median of:
9, 2, 7, 4, 6
Sort the values:
2, 4, 6, 7, 9
The middle value is:
6
So the median is 6.
Example: Even Number of Values
Find the median of:
3, 5, 8, 10
There are two middle values:
5 and 8
Average them:
(5 + 8) ÷ 2 = 6.5
So the median is:
6.5
The median depends on position, not the size of every value. That is why it handles outliers well.
What Is the Mode?
The mode is the value that appears most often.
To calculate the mode:
- Count how many times each value appears.
- Find the value with the highest count.
Example: Find the Mode
Find the mode of:
4, 6, 6, 8, 9, 9, 9
Counts:
4 appears 1 time
6 appears 2 times
8 appears 1 time
9 appears 3 times
The most common value is:
9
So the mode is 9.
A dataset can have one mode, more than one mode, or no mode.
Mean vs Median
The mean and median both describe the center of numeric data, but they behave differently.
The mean uses every value.
The median uses the middle position.
Consider:
20, 22, 24, 26, 28
Mean:
(20 + 22 + 24 + 26 + 28) ÷ 5 = 24
Median:
24
Here, the mean and median are the same because the data is balanced.
Now consider:
20, 22, 24, 26, 200
Mean:
(20 + 22 + 24 + 26 + 200) ÷ 5 = 58.4
Median:
24
The mean jumps to 58.4 because of the outlier 200.
The median stays at 24 because it only depends on the middle position.
Mean vs Mode
The mean is the arithmetic average.
The mode is the most frequent value.
Consider:
2, 2, 2, 8, 11
Mean:
(2 + 2 + 2 + 8 + 11) ÷ 5 = 5
Mode:
2
The mean is 5, but no value of 5 appears in the dataset.
The mode is 2 because it appears most often.
The mean is usually more useful for numeric calculations. The mode is useful when frequency matters, especially with repeated values or categories.
Median vs Mode
The median is the middle value.
The mode is the most frequent value.
Consider:
1, 2, 2, 2, 100
Median:
2
Mode:
2
Here, they are the same.
Now consider:
1, 2, 3, 4, 4, 4, 100
Median:
4
Mode:
4
They are still the same.
But in this dataset:
1, 1, 2, 3, 4, 5, 100
Median:
3
Mode:
1
The median describes the center position. The mode describes repetition.
How Outliers Affect Mean, Median, and Mode
An outlier is a value that is far away from the rest of the data.
Outliers can affect each measure differently.
Consider these incomes:
40,000
42,000
45,000
48,000
250,000
Mean:
(40,000 + 42,000 + 45,000 + 48,000 + 250,000) ÷ 5 = 85,000
Median:
45,000
Mode:
No mode
The mean is much higher than most values because of the outlier 250,000.
The median is usually a better summary here because it represents the middle income.
This is why median income is often more informative than mean income when the data is skewed.
When to Use the Mean
Use the mean when:
- the data is numeric
- values are reasonably balanced
- every value should contribute to the result
- you need a value for further calculations
The mean is common for:
- test scores
- temperatures
- measurements
- production averages
- simple performance metrics
Example: Average Test Score
Suppose test scores are:
78, 82, 85, 88, 92
Mean:
(78 + 82 + 85 + 88 + 92) ÷ 5 = 85
The average score is 85.
Because the scores are not extremely skewed, the mean is a useful summary.
When to Use the Median
Use the median when:
- the data is numeric
- the data is skewed
- there are outliers
- you want the middle value
The median is common for:
- income
- home prices
- rent prices
- wait times
- response times
Example: Home Prices
Suppose home prices are:
280,000
300,000
320,000
350,000
1,200,000
Mean:
(280,000 + 300,000 + 320,000 + 350,000 + 1,200,000) ÷ 5 = 490,000
Median:
320,000
The mean is pulled upward by the very expensive home.
The median better represents the middle of the market.
When to Use the Mode
Use the mode when:
- you care about the most common value
- the data contains repeated values
- the data is categorical
- you want to identify the most popular option
The mode is common for:
- shoe sizes
- clothing sizes
- survey choices
- product colors
- most common score
- most common category
Example: Most Common Shoe Size
Suppose shoe sizes sold are:
8, 9, 9, 10, 10, 10, 11, 12
The value 10 appears most often.
So the mode is:
10
That may be more useful for inventory planning than the mean.
Datasets With No Mode
A dataset has no mode if no value repeats.
Example:
3, 5, 7, 9, 11
Every value appears once.
So there is:
No mode
In some contexts, people may say every value is equally frequent. But for most basic statistics work, this dataset is described as having no mode.
Datasets With More Than One Mode
A dataset can have more than one mode.
Example:
2, 2, 4, 4, 6, 8
The values 2 and 4 both appear twice.
So the modes are:
2 and 4
A dataset with two modes is called bimodal.
A dataset with more than two modes can be called multimodal.
Mean, Median, and Mode Example Together
Find the mean, median, and mode of:
5, 7, 7, 9, 12
Mean
Add the values:
5 + 7 + 7 + 9 + 12 = 40
Divide by the number of values:
40 ÷ 5 = 8
Mean:
8
Median
The values are already sorted:
5, 7, 7, 9, 12
The middle value is:
7
Median:
7
Mode
The value 7 appears twice.
Every other value appears once.
Mode:
7
So:
| Measure | Result |
|---|---|
| Mean | 8 |
| Median | 7 |
| Mode | 7 |
Choosing the Best Measure
The best measure depends on what you want to understand.
Use this guide:
| Situation | Best Measure |
|---|---|
| Balanced numeric data | Mean |
| Skewed numeric data | Median |
| Data with strong outliers | Median |
| Most common value | Mode |
| Categorical data | Mode |
| Data used in further formulas | Mean |
| Typical home price or income | Median |
| Most popular size, color, or choice | Mode |
There is no single measure that is always best.
Often, the most honest summary includes more than one of them.
Why Mean, Median, and Mode Can Differ
Mean, median, and mode differ because they summarize different features of the data.
The mean responds to the size of every value.
The median responds to the order of the values.
The mode responds to frequency.
Consider:
1, 2, 2, 3, 100
Mean:
(1 + 2 + 2 + 3 + 100) ÷ 5 = 21.6
Median:
2
Mode:
2
The mean is far from the center of most values because of the outlier.
That does not mean the mean was calculated incorrectly. It means the dataset is skewed, and the mean is showing that skew.
Common Mistakes
Forgetting to Sort Before Finding the Median
The median is based on the ordered list.
For example:
9, 1, 5
The middle value as written is 1, but that is not the median.
Sort first:
1, 5, 9
The median is 5.
Dividing by the Wrong Count for the Mean
For the mean, divide by the number of values.
If the values are:
4, 6, 10
The sum is:
4 + 6 + 10 = 20
There are 3 values.
Mean:
20 ÷ 3 ≈ 6.67
Do not divide by the range or by the largest value.
Assuming the Mode Always Exists
Some datasets have no repeated values.
Example:
1, 3, 5, 7
There is no mode because no value appears more often than the others.
Ignoring Outliers
The mean can be pulled strongly by outliers.
If a dataset contains extreme values, compare the mean and median before deciding which one tells the clearer story.
Calling Every Average the Mean
In everyday language, “average” often means the mean.
In statistics, average can be used more broadly to describe a measure of central tendency.
Mean, median, and mode are all ways to describe a typical or central value.
Frequently Asked Questions
What is the difference between mean, median, and mode?
The mean is the arithmetic average.
The median is the middle value after sorting.
The mode is the most common value.
How do you calculate the mean?
Add all values and divide by the number of values:
Mean = Sum of values ÷ Number of values
For example:
(4 + 6 + 8) ÷ 3 = 6
How do you calculate the median?
Sort the values from smallest to largest.
If there is one middle value, that is the median.
If there are two middle values, average them.
How do you calculate the mode?
Count how often each value appears.
The value that appears most often is the mode.
If no value repeats, the dataset may have no mode.
Which is better, mean or median?
Neither is always better.
The mean is useful for balanced numeric data.
The median is often better when the data is skewed or contains outliers.
Can mean, median, and mode be the same?
Yes.
For example:
2, 4, 4, 4, 6
Mean:
(2 + 4 + 4 + 4 + 6) ÷ 5 = 4
Median:
4
Mode:
4
All three are the same.
Can there be more than one mode?
Yes.
Example:
1, 1, 2, 2, 3
The modes are 1 and 2 because both appear twice.
Why is the median used for income?
Income data is often skewed because a small number of very high incomes can pull the mean upward.
The median shows the middle income, so it is often a clearer summary of what is typical.
What does it mean if the mean is greater than the median?
It often means the data is skewed to the right, with some high values pulling the mean upward.
For example:
10, 12, 13, 15, 100
The outlier 100 increases the mean, but the median stays closer to the main group of values.
Related Tool and Source
For checking calculations from a dataset, use the Mean Median Mode Calculator. For a broader statistics refresher on measures of center and spread, Khan Academy’s summarizing quantitative data unit is a good external reference.
Final Thoughts
Mean, median, and mode are all measures of central tendency, but they are not interchangeable.
Use the mean when you want the arithmetic average and the data is reasonably balanced.
Use the median when you want the middle value, especially when the data has outliers or is skewed.
Use the mode when you want the most common value, especially for repeated values or categories.
The best summary often comes from comparing all three. When they are close together, the data may be fairly balanced. When they are far apart, the shape of the data deserves a closer look.