Learn how to calculate mean, median, mode, and range. Complete guide with formulas, step-by-step examples, and when to use each type of average.
When someone says "the average," they almost always mean the mean โ but there are actually three commonly used types of average: mean, median, and mode. Each measures a different aspect of a data set, and choosing the wrong one can lead to very misleading conclusions. This guide explains all three, when to use each, and how to calculate them accurately.
An average is a single number that represents the "center" or "typical value" of a data set. The challenge is that "typical" can mean different things depending on the data. A street's average house price might be $350,000, but if one mansion sells for $2 million, the mean is distorted. The median might be $275,000 โ a much more "typical" number for buyers on that street.
The mean is the most common type of average. It is calculated by adding all values together and dividing by the count of values.
Mean = Sum of all values รท Number of values
A student's test scores: 78, 85, 92, 67, 88, 74, 91
The median is the middle value when a data set is arranged in order from smallest to largest. Exactly half the values are below the median, and half are above it.
For odd number of values: Median = the middle value
For even number of values: Median = mean of the two middle values
House prices on a street: $180K, $210K, $225K, $240K, $890K
Already sorted. 5 values โ middle value is the 3rd: $225,000
(Compare to mean: ($180K+$210K+$225K+$240K+$890K) รท 5 = $349,000 โ heavily distorted by the mansion)
Scores: 12, 15, 18, 22, 27, 31
6 values โ two middle values are 18 and 22.
Median = (18 + 22) รท 2 = 20
The mode is the value that appears most frequently in a data set. A data set can have no mode (all values unique), one mode (unimodal), or multiple modes (bimodal, trimodal, etc.).
Mode = the value(s) that appear most often
Number of items purchased per transaction: 1, 2, 2, 3, 2, 4, 1, 2, 5, 3
The number 2 appears 4 times โ more than any other value.
Mode = 2
Shoe sizes sold: 7, 8, 8, 9, 9, 10, 8, 9, 11
Sizes 8 and 9 both appear 3 times.
Mode = 8 and 9 (bimodal)
While not an average, the range is often calculated alongside mean, median, and mode because it describes data spread:
Range = Maximum value โ Minimum value
Example: Test scores of 45, 67, 72, 88, 91. Range = 91 โ 45 = 46
The range tells you how spread out the data is. A small range means values cluster closely together; a large range means wide variation.
A weighted average assigns different importance (weights) to different values. This is used when not all values contribute equally to the total.
Weighted Mean = (ฮฃ Value ร Weight) รท ฮฃ Weight
You earned these grades in courses with different credit hours:
Weighted GPA = (12 + 12 + 8) รท (3 + 4 + 2) = 32 รท 9 = 3.56
(Simple mean of 4.0 + 3.0 + 4.0 = 3.67 โ different because it ignores credit hours)
In the US, the mean (average) household income is significantly higher than the median household income because a small percentage of extremely high earners pull the mean upward. The median income better represents what a "typical" American household earns. This is why economists almost always report median income, not mean income.
In software performance monitoring, the mean response time can be misleading if a few very slow requests (timeouts, errors) pull it upward. Engineers typically look at the 95th percentile or median response time, which better reflects what most users experience.
A neighborhood with mostly $200Kโ$300K homes and one $2M luxury property has a mean price that makes it look more expensive than it is. The median gives a more honest picture of what most buyers can expect to pay.
| Situation | Best Average |
|---|---|
| Test scores, temperatures, speeds | Mean |
| Salaries, house prices, incomes | Median |
| Popular product, most common response | Mode |
| GPA, weighted scores | Weighted Mean |
| Data with extreme outliers | Median |
| Categorical data (colors, brands) | Mode |
Use our free Average Calculator — results appear as you type. No sign-up needed!
🚀 Open Average Calculator Free