Mean, Median & Mode Calculator — Central Tendency Explained
Calculate mean, median, and mode for any dataset. Learn when each measure is most useful, with worked examples, a comparison table, and common pitfalls.
These three numbers all claim to represent the "center" of a dataset — and they often give completely different answers. Knowing which one to trust in which situation is one of the most practically useful things in basic statistics. Try the CalcHub Mean, Median & Mode Calculator for any list of numbers.
The Three Measures
Mean (Arithmetic Average)
Sum all values, divide by the count.
Formula: x̄ = (Σxᵢ) / n Dataset: 4, 8, 6, 5, 3, 9, 2, 1, 7, 10 Sum = 55, n = 10 Mean = 5.5Median (Middle Value)
Sort the data, pick the middle. If even count, average the two middle values.
Same dataset sorted: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Two middle values: 5 and 6
Median = (5 + 6) / 2 = 5.5
Mode (Most Frequent)
The value that appears most often. A dataset can have no mode, one mode, or multiple modes.
Dataset: 2, 3, 3, 5, 7, 7, 7, 9 Mode = 7 (appears 3 times)Worked Example: Home Prices
Seven houses in a neighborhood sell for:
$280k, $295k, $310k, $290k, $305k, $285k, $2,100k
| Measure | Value | Notes |
|---|---|---|
| Mean | $494k | Dragged up by the $2.1M mansion |
| Median | $295k | Better represents a typical buyer's market |
| Mode | None | All values unique |
When to Use Each
| Situation | Best Measure | Why |
|---|---|---|
| Salary data, home prices | Median | Resistant to outliers |
| Test scores (no outliers) | Mean | Uses all data points |
| Most popular shoe size | Mode | Only measure for categories |
| Symmetric distributions | Mean = Median = Mode | All equivalent |
| Skewed income data | Median | Mean overestimates "typical" |
| Survey: favorite color | Mode | Categories, not numbers |
Relationship to Distribution Shape
In a perfectly symmetric distribution, mean = median = mode. When data is skewed:
- Right-skewed (long tail to the right): Mean > Median > Mode
- Left-skewed (long tail to the left): Mean < Median < Mode
Weighted Mean
When values don't all carry equal importance (e.g., grade weighting):
Formula: x̄_w = Σ(wᵢ × xᵢ) / Σwᵢ Example: Math exam 40%, Quiz 30%, Assignment 30% Scores: 75, 90, 80Weighted mean = (0.4×75 + 0.3×90 + 0.3×80) / 1.0 = (30 + 27 + 24) = 81
Does the mean always equal the median?
Only when the distribution is symmetric. The classic counterexample: if 9 people earn $30k and 1 person earns $1M, the mean salary is $127k — a number that doesn't describe anyone's actual situation. The median ($30k) is far more honest here.
What if there are two modes?
A dataset is called bimodal when it has two equally frequent values, and multimodal for more. Bimodal distributions often signal two distinct subgroups in your data — for example, a class that split into those who studied and those who didn't.
Can the mean be a value not in the dataset?
Absolutely. The mean of 1 and 2 is 1.5, which isn't in the dataset. This is fine mathematically but means it can't represent a "real" observation — an important distinction when the measure needs to be an actual possible value (like number of children).