Compare

Mean vs Median vs Mode

Mean, median, and mode are three different ways to summarise "the middle" of a dataset. Picking the wrong one can make your analysis wildly misleading.

Mean (arithmetic average)

xˉ=1ni=1nxi\bar{x} = \frac{1}{n}\sum_{i=1}^n x_i

The mean uses every data point, which is its strength and its weakness. Strength: minimises squared loss, plays nicely with calculus, underlies regression / variance / Gaussian distributions. Weakness: a single extreme outlier can drag it far from the bulk of the data.

Use the mean when data is roughly symmetric and outliers are rare or already removed.

Median (middle value)

The median is the middle observation after sorting. For income, response time, file size, and other heavy-tailed distributions, the median is far more representative than the mean — Bill Gates walking into a pub raises the mean income but barely moves the median.

Use the median for skewed data, when reporting a "typical" value, or when robustness matters.

Mode (most frequent value)

The mode is the value that occurs most often. Mostly useful for categorical data (favourite colour, browser type) where mean and median don't even apply. For continuous numerical data, the mode often doesn't exist in any meaningful sense — every observation is unique.

Which to use

ScenarioBest measure
Symmetric, outlier-free numericalMean
Skewed numerical (income, latency)Median
CategoricalMode
Reporting "typical" to general audienceMedian
Underlying further calculus / statsMean

If you are just starting statistics, internalise this: mean for math, median for stories.

Try them yourself

Paste any dataset into our Mean Median Mode Calculator and see all three at once.

At a glance

FeatureMeanMedian (vs Mode)
Affected by outliersHeavilyBarely
Works for categorical dataNoNo (use mode)
Underlies variance / regressionYesNo
Best for skewed distributionsNoYes
Verdict

Use the mean for symmetric, clean numerical data; the median for skewed distributions or when reporting "typical"; the mode for categorical data.

Related

  • /solver/statistics/mean-median-mode
  • /solver/statistics/standard-deviation