Mean Median Mode Calculator

Calculate measures of central tendency (mean, median, mode) and statistical range for any set of numbers with instant formulas.

Sample Data Sets:
Mean (Average)28.3333
Median (Middle)25
Mode20
Range (Max - Min)40

Looking for full sample and population variance? Standard deviation calculator →

Central Tendency Formulas & Definitions

What is the difference between Mean, Median, and Mode?

Mean is the sum of all values divided by count (x̄ = Σx / n). Median is the middle number when sorted in order. Mode is the most frequent number. Range is the difference between the highest and lowest numbers (Max - Min).

Mean: x̄ = (∑ xᵢ) / n | Median: Value at (n + 1)/2 | Range: Max - Min
x̄: Arithmetic mean (average)
∑ xᵢ: Sum of all individual data values
n: Total sample count of observations
Median: Exact midpoint value of numerically ordered set
Mode: Value(s) with the highest frequency of occurrence

Three averages that disagree for a reason

The mean is the total divided by the count. The median is the middle value once sorted — the average of the two middle values when the count is even. Themode is the most frequent value, and a dataset can have none, one, or several. They answer different questions, and the gap between them is itself informative.

The mean is sensitive to outliers; the median is not. Take five salaries of 30k, 32k, 35k, 36k and 500k: the mean is over 126k and describes nobody, while the median is 35k and describes the group well. This is why income and house prices are almost always reported as medians — a handful of extreme values would otherwise drag the mean somewhere unrepresentative.

Comparing them diagnoses the shape of the data. Mean and median roughly equal suggests symmetry. Mean well above median means a right skew, with a long tail of high values. Mean below median means a left skew. The mode is the only one that works on categorical data — you can find the most common colour, but not its average. Where the mean is misleading and you still want to use one, check the skew first.

⚠️

Common Calculation Mistakes & Pitfalls to Avoid

Be aware of these frequent calculation traps, unit errors, and conceptual misunderstandings before relying on mathematical outputs.

1
Using the Mean for Heavily Skewed Data (Income & House Prices)

The arithmetic mean is highly sensitive to extreme outliers. In right-skewed distributions like salaries or home prices, a few extreme high values pull the mean upward, making the median a much more accurate reflection of central tendency.

2
Forgetting to Sort Data Before Locating the Median

The median requires sorting numbers in numerical ascending order first. For an odd count, select the exact center value; for an even count, take the mean of the two middle values.

3
Assuming Every Dataset Must Have Exactly One Mode

Datasets where every value appears once have no mode at all. Datasets with multiple peaks with equal highest frequency are bimodal or multimodal, signaling mixed populations.

4
Relying Solely on Range to Describe Variability

The range (Max − Min) depends entirely on the two most extreme observations. A single data error or outlier distorts it completely. Always combine with interquartile range (IQR) or standard deviation.

Authoritative References & Standards

  • National Institute of Standards and Technology (NIST) (2023):NIST/SEMATECH e-Handbook of Statistical Methods: Measures of Location & Dispersion
    Official Reference

    Federal standard reference defining sample mean, median position sorting, mode frequencies, and statistical robustness against outlier contamination.

Frequently Asked Questions

What is the difference between Mean, Median, and Mode?

Mean is the arithmetic average (sum of all values divided by count). Median is the middle observation when numbers are sorted in order. Mode is the most frequently occurring value in the dataset.

What if a data set has multiple modes or no mode?

If all values occur with an identical frequency of 1, the dataset has no mode. If two or more distinct values tie for the highest frequency, the set is multimodal (e.g. bimodal for two modes).

Why is the median preferred over the mean for income statistics?

Because the median is resistant to outliers. A handful of multi-millionaires significantly pulls the average (mean) upwards, while the median accurately identifies the exact midpoint where 50% earn less and 50% earn more.

What is the range in statistics?

The range is the difference between the maximum and minimum values in a dataset (Range = Max − Min). It provides a quick measure of overall spread but is sensitive to extreme outliers.