Mean, Median, Mode Calculator

Paste a list of numbers and instantly get mean, median, mode, range, and standard deviation.

Science All three + SD Range + min/max
Rate this calculator · 4.0 (1)

Mean, Median, Mode

All three measures of central tendency

Instructions — Mean, Median, Mode Calculator

1

Paste your numbers

Enter values separated by commas, spaces, or new lines. Mix and match — the parser handles all formats.

2

Review the three measures

The mean is sensitive to outliers. The median is the middle value. The mode is the most frequent. Use all three to spot skew and bumps in your data.

3

Check spread

Range, standard deviation, and min/max round out the picture. A small SD means tight clustering; a large SD means scattered data.

Mean vs median: When mean and median diverge sharply, your data is skewed. Income data is the classic example — a few high earners pull the mean up well above the median.
No mode? If every value appears exactly once, the data set is amodal. If two values tie for most frequent, it's bimodal.

Formulas

Arithmetic mean
$$ \bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i $$
Sum of all values divided by the count. Sensitive to outliers — one extreme value can shift the mean a lot.
Median
$$ \text{Med} = \begin{cases} x_{(n+1)/2} & n\ \text{odd} \\ \frac{x_{n/2}+x_{n/2+1}}{2} & n\ \text{even} \end{cases} $$
The middle value after sorting. For even n, average the two middle values. Robust against outliers.
Mode
$$ \text{Mode} = \arg\max_{x \in X} f(x) $$
The value (or values) with the highest frequency. A data set can have 0 (amodal), 1 (unimodal), or multiple modes.
Standard deviation
$$ \sigma = \sqrt{\frac{1}{n}\sum (x_i - \bar{x})^2} $$
Population SD. Sample SD divides by (n-1) for unbiased estimation. The calculator reports both.

Reference

When to use each measure
MeasureBest forWeakness
MeanSymmetric data, parametric statsSkewed by outliers
MedianSkewed data, real-estate pricesIgnores distribution shape
ModeCategorical or discrete dataMay not exist or be unique
RangeQuick spread checkOnly uses min and max
SDFull spread measureSensitive to outliers

Mean vs median in skewed data

Right-skewed (income)
StatValue
Mean income$67,400
Median income$48,200
Difference+40%
Skew directionRight
Symmetric (test scores)
StatValue
Mean score75.2
Median score75.0
Difference0.2 pts
Skew directionNone

Article — Mean, Median, Mode Calculator

Mean, Median, Mode: The Three Measures of Central Tendency

Mean, median, and mode are the three classical measures of central tendency. The mean is the arithmetic average (sum ÷ count). The median is the middle value after sorting. The mode is the value that appears most often. They agree on symmetric data and diverge on skewed distributions.

Together they summarise a data set in a single number — sometimes the same number, sometimes three different numbers that each tell a different story. The mean drives most parametric statistics. The median dominates real-estate listings and salary reports. The mode is essential when data is categorical. This guide covers the math, the trade-offs, and the field-tested mistakes.

What is central tendency?

Central tendency is the technical term for the "centre" of a distribution. Given a list of numbers, what single value best represents the typical observation? There is no universal answer — only three candidate definitions, each with different properties.

The mean uses every value with equal weight. The median uses only rank order. The mode uses only frequency. Which one matters depends on what you want to know and how clean your data is.

Did you know

The term "average" colloquially means the arithmetic mean, but historically it meant the median. The shift began in the 18th century when astronomers started averaging observations to reduce error. By the late 1800s, "average" and "mean" had merged in common usage.

Mean, median, mode formulas

Each measure has a precise definition. The mean is symbolic; the median is positional; the mode is frequency-based.

Mean median mode cheat sheet
Mean x̄ = (∑ xi) / n
Median (odd n) middle value of sorted list
Median (even n) average of two middle values
Mode most frequent value(s)

Mean vs median vs mode

The classic textbook example: the data set [2, 4, 4, 4, 5, 5, 7, 9].

  • Mean = (2+4+4+4+5+5+7+9) / 8 = 40 / 8 = 5.0
  • Median = (4 + 5) / 2 = 4.5 (average of 4th and 5th values when sorted)
  • Mode = 4 (appears three times)
  • Range = 9 - 2 = 7
  • Standard deviation2.0

For symmetric data, all three are similar. For skewed data, they spread apart. The order of magnitude of separation between them is itself a measure of skewness.

When to use mean, median, or mode

The choice depends on data type and distribution shape.

MEAN
all values
parametric tests, symmetric data
MED
middle
rank only
income, prices, skewed data

Mean is the default for normally-distributed continuous data, where mean and median coincide and the mean carries more information. Median is the default for income, home prices, response times, and any other variable with a long right tail. Mode is the default for categorical data — favourite colour, party affiliation, shoe size.

Skewed distributions and central tendency

In a perfectly symmetric distribution, mean = median = mode. As skew increases, these values pull apart in predictable ways.

  • Right-skewed (income, home prices): mean > median > mode. A few high values pull the mean up.
  • Symmetric (heights, test scores): mean ≈ median ≈ mode.
  • Left-skewed (exam pass rates, lifespan): mean < median < mode. A few low values pull the mean down.
  • Bimodal: two modes, no single central tendency. Often signals a mixed population.
Tip

A quick skew check: compute both mean and median. If they're within 5% of each other, the data is approximately symmetric. If they differ by more than 20%, the data is meaningfully skewed and you should use the median for typical summaries.

Beyond mean, median, and mode

For richer summaries, statisticians use additional measures.

Trimmed mean. Discard the top and bottom k% before averaging. Olympic judges use a trimmed mean (drop high and low score) to reduce judge bias.

Geometric mean. The nth root of the product of n values. Used for growth rates and returns. The geometric mean of 1.05 and 0.95 is 0.9987, not 1.0 — the right "average" for two consecutive percentage changes.

Harmonic mean. The reciprocal of the average of reciprocals. Used for rates (average speed across equal distances at different speeds).

Percentiles and quartiles. The median is the 50th percentile. The 25th and 75th percentiles bound the interquartile range, a popular robust spread measure.

Common mean-median-mode mistakes

Three patterns that lead to wrong conclusions.

Misleading averages

The "average household income" frequently quoted as $80,000+ in the US is the mean, not the median. The median household income is closer to $80,610 (US Census Bureau, 2023 ACS). The mean is pulled up by very high earners. Always check which average is being reported.

  • Using mean on skewed data — misleads about the typical value.
  • Reporting mode for continuous data — unstable; group into bins first.
  • Forgetting Bessel's correction — sample SD divides by (n-1), not n.
  • Treating mode as unique — many data sets are amodal or multimodal.
  • Mixing up mean of means — average of group means is only correct if groups are equal-sized.
  • Ignoring outliers without justification — sometimes the outlier is the most important observation.

Worked examples

Three realistic data sets where the choice of measure matters.

Test scores [78, 82, 85, 89, 91]. Mean = 85, median = 85, mode = none. Symmetric, so any measure works. Mean is preferred because it can feed into further analysis (variance, hypothesis testing).

Household incomes [$40k, $45k, $48k, $52k, $1.2M]. Mean = $277k, median = $48k. The four typical households earn $40–52k. The mean is grossly misleading; the median represents the population fairly.

T-shirt sizes [S, M, M, L, M, L, S, M, XL]. No mean or median (categorical). Mode = M, the most frequent size. Restock M first.

One subtlety that catches people out: median doesn't require numeric data, only ordered data. Movie ratings (G, PG, PG-13, R, NC-17) can have a median rating because the categories have a clear order. Mean cannot be computed on ordinal data without first assigning numerical values, which introduces arbitrary distance assumptions.

Another mistake worth flagging: averaging averages. If you have three groups with mean test scores of 70, 80, and 90, the overall mean is only 80 if the groups are the same size. With group sizes 100, 50, and 10, the true mean is (100×70 + 50×80 + 10×90) / 160 = 74.4, not 80. Always use a weighted mean when group sizes differ.

A final consideration is the difference between population and sample statistics. The population mean μ is a parameter — a fixed but typically unknown number for the entire population of interest. The sample mean x̄ is a statistic computed from your observed data, an estimate of μ. The calculator above reports sample statistics by default. For inferential purposes (confidence intervals, hypothesis tests), the sample SD with Bessel's correction is the right input.

FAQ

Mean is the average (sum divided by count). Median is the middle value when sorted. Mode is the most frequent value. For [1, 2, 3, 4, 100]: mean = 22, median = 3, mode = none.
Use the median when your data is skewed or contains outliers. Income, home prices, and time-to-completion data are typically reported as medians for this reason. The median represents the typical value better than the mean when the distribution is uneven.
Yes. If every value appears exactly once, the data set is amodal (no mode). For example, [1, 2, 3, 4, 5] has no mode. If two values tie for most frequent, it's bimodal.
Range is max - min — the difference between the largest and smallest values. It's the simplest measure of spread but only uses two values, so it's sensitive to outliers.
Population SD divides by n; sample SD divides by (n-1). The (n-1) correction (Bessel's correction) gives an unbiased estimate when you have a sample, not the full population. Most real data sets are samples, so use sample SD unless you're working with the entire population.
Very. One extreme value can shift the mean substantially. For [1, 2, 3, 4, 5], mean = 3. Change the 5 to 50 and the mean jumps to 12 — a 300% change from one value. The median stays at 3.
Usually not. Continuous measurements (height, weight, time) rarely have exact duplicates, so the mode is unstable. Group the data into bins first, then find the modal bin. The calculator above treats raw values as discrete.
Compare mean and median. If mean > median, the distribution is right-skewed (long tail to the right). If mean < median, it's left-skewed. If they're equal, the distribution is symmetric.