March 28, 20264 min read

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.

mean median mode statistics central tendency average calchub
Ad 336x280

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.5

Median (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

MeasureValueNotes
Mean$494kDragged up by the $2.1M mansion
Median$295kBetter represents a typical buyer's market
ModeNoneAll values unique
This is why real estate reports almost always cite median home prices, not mean.

When to Use Each

SituationBest MeasureWhy
Salary data, home pricesMedianResistant to outliers
Test scores (no outliers)MeanUses all data points
Most popular shoe sizeModeOnly measure for categories
Symmetric distributionsMean = Median = ModeAll equivalent
Skewed income dataMedianMean overestimates "typical"
Survey: favorite colorModeCategories, 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
The median always sits between the mean and mode in a unimodal skewed distribution.

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, 80

Weighted 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).

Ad 728x90