Quick Answer
- Mean: add all the values, then divide by how many values there are. This is the everyday average.
- Median: the middle value after you sort the numbers from smallest to largest.
- Mode: the value that appears most often.
- Range: the largest value minus the smallest value. It is not an average, but it is usually taught alongside the three measures above.
A short rule of thumb: use the mean for balanced data, the median when a few extreme values could distort the picture, and the mode when you care about the most common or most popular choice.
These measures are often called measures of central tendency because they help summarize where the values in a data set tend to cluster. The range is different: it measures the gap between the highest and lowest values rather than identifying a typical value.
What Is the Mean?
The mean is what most people mean when they say average. You add up every value and divide by the number of values.
Mean = sum of all values ÷ number of values
Example 1: Finding the mean
Take this data set: 4, 7, 7, 9, 13.
- Add the values: 4 + 7 + 7 + 9 + 13 = 40
- Count the values: there are 5
- Divide: 40 ÷ 5 = 8
The mean is 8.
The mean uses every number in the set, which makes it a fair summary when the data is fairly even. The downside is that one unusually large or small value can pull the mean away from where most of the data sits. You will see exactly how in the salary example below.
When is the mean useful?
The mean is especially useful when you want to account for every observation in a data set. It is commonly used to summarize test results, daily temperatures, production measurements, expenses, and other numerical information.
For example, suppose a student receives the following test scores:
78, 82, 85, 87, 88.
The total is 420, and there are five scores.
Mean = 420 ÷ 5 = 84
The student’s mean score is 84. Every test contributes to the result, so a higher or lower score affects the final average.
The mean works best as a summary when extreme values are not overwhelming the data. However, it can still be useful with uneven data if your goal is to calculate the exact arithmetic average, such as average spending per customer across all transactions.
Can the mean be a number that does not appear in the data?
Yes. The mean does not have to match any individual observation.
For example, consider 2, 4, and 9.
Mean = (2 + 4 + 9) ÷ 3 = 5
The mean is 5, even though none of the original values is 5. That is normal because the mean is calculated from the total and the number of observations.
What Is the Median?
The median is the middle value. To find it, always sort the numbers first.
When there is an odd number of values
Sort the data and pick the one in the middle. For 4, 7, 7, 9, 13 there are five values, so the middle one is the third: 7.
When there is an even number of values
There is no single middle number, so you take the two middle numbers and find their mean.
Take 12, 15, 18, 22, 25, 31. There are six values, so the middle two are 18 and 22.
(18 + 22) ÷ 2 = 20
The median is 20. Notice that 20 does not appear in the data. With an even number of values, the median can fall between two of them.
The median is not affected by how large or small the extreme values are, only by their position. That is why it is the preferred measure for things like income and house prices.
Why does sorting matter when finding the median?
The median depends on the position of the values, not the order in which they were originally recorded. If the numbers are unsorted, the number in the middle of the list may not be the actual median.
For example, consider:
18, 5, 12, 9, 21.
After sorting, the list becomes:
5, 9, 12, 18, 21.
The middle value is 12, so the median is 12.
When should you use the median?
The median is often the better choice when the data contains extreme values or is heavily skewed. It is widely used when describing household income, home sale prices, rents, and waiting times.
Imagine five homes sell for $180,000, $195,000, $205,000, $220,000, and $900,000. The $900,000 property is much more expensive than the others and pushes the mean upward. The median, $205,000, gives a clearer picture of the middle sale price in this small example.
The median does not explain everything about a data set, though. Two sets can have the same median while having very different ranges and distributions. When that difference matters, examine the spread of the values as well.
What Is the Mode?
The mode is the value that appears most often.
In 4, 7, 7, 9, 13, the number 7 appears twice and every other number appears once, so the mode is 7.
A data set can behave in three different ways:
- One mode: one value is clearly the most frequent.
- More than one mode: in 2, 3, 3, 5, 7, 7, 9 both 3 and 7 appear twice, so there are two modes (this is called bimodal).
- No mode: in 12, 15, 18, 22, 25, 31 every value appears once, so there is no mode. This does not mean the mode is zero.
The mode is the only one of the three that also works for categories rather than numbers. If a clothing shop sells these sizes in a day: S, M, M, M, L, L, XL, the mode is M. You cannot add up sizes to find a mean, but you can still see which one sold most.
When is the mode useful?
The mode is useful when you need to identify the most frequent value or category. Businesses can use it to understand which product size sells most often, which color is most popular, or which item receives the most orders.
For example, a coffee shop records the following drink orders during a short period:
Latte, Americano, Latte, Cappuccino, Latte, Americano.
Latte appears three times, Americano twice, and Cappuccino once. The mode is Latte.
This information can help the shop understand which drink was most frequently ordered during that period. However, the mode alone does not show total revenue or profit. A less popular drink might still generate more revenue if its price is higher.
For numerical data, the mode can also help identify common measurements, such as the most frequently recorded shoe size or the most common number of items in a customer order.
What Is the Range?
The range tells you how spread out the data is.
Range = largest value − smallest value
For 4, 7, 7, 9, 13 the range is 13 − 4 = 9.
The range is quick to calculate, but it only uses two numbers in the set, so one extreme value can make it look very large. For a fuller picture of spread, statisticians use the standard deviation, which takes every value into account.
Example: Comparing two ranges
Consider these two data sets:
- Set A: 8, 9, 10, 11, 12
- Set B: 2, 6, 10, 14, 18
For Set A:
Range = 12 − 8 = 4
For Set B:
Range = 18 − 2 = 16
Both sets have a mean and median of 10, but Set B has a much larger range. This shows why a measure of central tendency is not enough to describe every data set. The typical value and the spread provide different kinds of information.
All Four Measures Side by Side
Here is the data set 4, 7, 7, 9, 13 summarised:
| Measure | Result | How it was found |
|---|---|---|
| Mean | 8 | 40 ÷ 5 |
| Median | 7 | Middle of the sorted list |
| Mode | 7 | Appears twice |
| Range | 9 | 13 − 4 |
The four results describe different aspects of the same data set. The mean gives the arithmetic average, the median identifies the middle value, the mode shows the most frequent value, and the range measures the distance between the minimum and maximum.
The values do not need to match. In this example, the mean is 8 while the median and mode are both 7. This difference is not an error; it reflects how the values are distributed.
Quick comparison of the three measures of central tendency
| Feature | Mean | Median | Mode |
|---|---|---|---|
| How it is calculated | Sum divided by count | Middle of sorted values | Most frequent value |
| Uses every numerical value? | Yes | Uses position of all values after sorting | Uses frequency |
| Sensitive to extreme values? | Yes | Much less sensitive | Depends on how the outlier affects frequencies |
| Works with categories? | No, not for ordinary nominal categories | No, not for unordered categories | Yes |
| Can the result be absent from the data? | Yes | Yes, for an even-sized set | No, a mode must be an observed value or category |
| Best suited for | Arithmetic averages | Typical middle value | Most common value or category |
Why Outliers Change the Answer
An outlier is a value that is much larger or smaller than the rest. The mean reacts strongly to outliers. The median hardly reacts at all.
Imagine a small company with six employees. These salaries are made up to illustrate the idea:
$42,000, $45,000, $48,000, $50,000, $52,000 and $250,000.
- Mean: the total is $487,000, and $487,000 ÷ 6 is about $81,167.
- Median: the middle two values are $48,000 and $50,000, so the median is $49,000.
- Mode: none, because every salary is different.
- Range: $250,000 − $42,000 = $208,000.
Five of the six employees earn $52,000 or less, yet the mean is above $81,000. If the company advertised an average salary of $81,167 it would be technically correct but misleading. The median of $49,000 is much closer to what a typical employee earns.
Now remove the $250,000 salary and see what happens to the five remaining values:
- The mean drops to $237,000 ÷ 5 = $47,400, a change of about $33,767.
- The median becomes $48,000, a change of only $1,000.
That difference is the whole reason the median exists.
The example also illustrates why it is important to ask what a statistic is being used to describe. The mean is a valid arithmetic average, but the median may better represent a typical salary when one observation is far above the others. Neither measure is automatically wrong; the better choice depends on the question being asked.
Which One Should You Use?
| Situation | Best measure | Why |
|---|---|---|
| Class test scores with no extreme results | Mean | Uses every score and gives a fair overall picture |
| Salaries, house prices, waiting times | Median | Less affected by a few very high or very low values |
| Most popular product, shirt size or favorite color | Mode | Works with categories and shows what is most common |
| How spread out the values are | Range | Quick check of the gap between highest and lowest |
When it matters, report more than one. A mean and a median that are far apart are a sign that the data is skewed or has outliers, and that is useful information in itself.
Choosing a measure for school results
The mean is often useful for summarizing a student’s performance across several tests because every score contributes to the result. However, if one test score is unusually low or high, the median can help show the middle performance.
Choosing a measure for business data
The mode can help a retailer identify the most frequently sold product size, while the mean can show average order value. The median order value may be more representative if a few customers place exceptionally large orders.
Choosing a measure for income and housing
The median is often preferred when summarizing income or home prices because these data sets can contain a small number of very large values. Reporting the mean as well can still be helpful, provided readers understand what each figure represents.
How to Calculate Mean, Median, Mode, and Range by Hand
You can calculate all four measures with a few basic steps. Use this data set as an example:
6, 3, 8, 3, 10.
Step 1: Sort the numbers.
3, 3, 6, 8, 10.
Step 2: Find the mean.
Add all values and divide by the count:
Mean = (3 + 3 + 6 + 8 + 10) ÷ 5
Mean = 30 ÷ 5 = 6
Step 3: Find the median.
There are five sorted values, so the third value is in the middle.
Median = 6
Step 4: Find the mode.
The value 3 appears twice, while each other value appears once.
Mode = 3
Step 5: Find the range.
Subtract the smallest value from the largest:
Range = 10 − 3 = 7
The final results are a mean of 6, a median of 6, a mode of 3, and a range of 7.
Common Mistakes to Avoid
- Not sorting before finding the median. The median is the middle of the sorted list, not the middle of the numbers as you first wrote them.
- Forgetting to average the two middle values. With an even number of values, the median is the mean of the middle pair.
- Treating no mode as zero. If no value repeats, the data set simply has no mode.
- Averaging averages. Suppose Group A has 10 students with a mean score of 80, and Group B has 30 students with a mean score of 60. The overall mean is (10 × 80 + 30 × 60) ÷ 40 = 2,600 ÷ 40 = 65, not 70. Groups of different sizes must be weighted.
- Ignoring outliers. Before you trust a mean, look at the highest and lowest values and ask whether any of them are unusual.
One more mistake: confusing the mode with the largest value
The mode is the most frequent value, not necessarily the highest number. In 2, 2, 2, 5, 9, the mode is 2, even though 9 is the largest value. The largest value is used when finding the range, not the mode.
Check Your Work With the Calculator
Once you understand the steps, you can check your own answers with the free Mean, Median, Mode and Range Calculator. Enter your numbers separated by commas and compare the result with your hand calculation. If you also want to measure how spread out your data is, try the Standard Deviation Calculator.
Using a calculator is especially helpful when a data set contains many values, because manually adding and sorting a long list can lead to mistakes. It is still worth understanding the steps so you can recognize an unexpected result and check that the numbers were entered correctly.
Frequently Asked Questions
Can the mean, median and mode all be the same?
Yes. In a perfectly balanced data set such as 3, 5, 5, 5, 7, the mean is 25 ÷ 5 = 5, the median is 5 and the mode is 5.
Is the mean ever larger than the median?
Yes, and it is common. When a few very large values pull the mean upward, the mean ends up above the median. Income data usually behaves this way.
Which is better for income, mean or median?
The median is usually the better description of a typical income, because a small number of very high earners can raise the mean without changing what most people earn.
Can a data set have more than one mode?
Yes. If two values tie for the highest frequency, both are modes. If three or more tie, the data set is described as multimodal.
Is the median always one of the numbers in the data?
Not always. With an odd number of values it is one of them. With an even number of values it is the mean of the two middle values, which may not appear in the data.
What is the difference between range and standard deviation?
The range only compares the largest and smallest values. The standard deviation uses every value to measure how far the numbers typically sit from the mean, so it gives a more detailed picture of spread.
Can the mean be zero if the data contains nonzero values?
Yes. For example, in the data set −2, 0, 2, the sum is zero, so the mean is zero. The individual values are not all zero, but their positive and negative values balance out.
What happens if every number appears the same number of times?
If every value appears equally often and no value occurs more frequently than the others, there may be no single unique mode. Some statistical conventions describe all equally frequent values as modes, while others report no unique mode. The calculator’s stated convention should be followed.
Which measure is most affected by an outlier?
The mean is generally the most affected because it uses the actual value of every observation in its calculation. The median depends on the order of the values, so an extreme observation usually has much less influence on it.
Final Takeaway
The mean shows the arithmetic average, the median shows the middle, and the mode shows the most common value. None of them is always right. Choose the one that matches your data and your question, and when the numbers include extreme values, look at the mean and the median together before drawing a conclusion.
For a more complete picture, consider the range or standard deviation as well. A measure of central tendency tells you about a typical value, while a measure of spread helps explain how much the observations differ from one another.