X-Calculator
Math 6 min read Updated November 23, 2026

Mean, Median and Mode Explained: Definitions, Examples, When to Use

What mean, median and mode measure, how to calculate each step by step, which one to use with skewed data, and a gentle introduction to standard deviation.

Advertisement
Advertisement

The mean is the average (add all values and divide by how many there are), the median is the middle value when the data is sorted, and the mode is the value that appears most often. For the numbers 2, 3, 3, 5 and 7, the mean is 4, the median is 3 and the mode is 3.

All three are “measures of central tendency” — single numbers that summarize where a data set is centered — but they answer slightly different questions and can tell very different stories about the same data. This guide shows how to calculate each, when to use which, and how standard deviation adds the missing piece: spread. To skip the arithmetic, paste your numbers into the average calculator.

How to calculate the mean

mean = (sum of all values) ÷ (number of values)

Example: seven test scores — 82, 91, 75, 91, 68, 88, 95.

  1. Add them: 82 + 91 + 75 + 91 + 68 + 88 + 95 = 590.
  2. Count them: 7.
  3. Divide: 590 ÷ 7 = 84.29.

The mean uses every value, which makes it the most informative measure for symmetric data — and the most sensitive to extreme values.

Weighted mean

When values count unequally, multiply each by its weight, add, and divide by the total weight. A GPA with an A (4.0) in a 3-credit class, a B (3.0) in a 4-credit class and an A− (3.7) in a 3-credit class: (4.0×3 + 3.0×4 + 3.7×3) ÷ (3 + 4 + 3) = 35.1 ÷ 10 = 3.51. The simple mean of the three grades, 3.57, would overstate it.

How to find the median

  1. Sort the values from smallest to largest.
  2. If there is an odd number of values, the median is the middle one.
  3. If there is an even number, the median is the mean of the two middle values.

Odd count: the test scores sorted are 68, 75, 82, 88, 91, 91, 95. The fourth of seven values is the median: 88.

Even count: 2, 4, 4, 4, 5, 5, 7, 9. The two middle values are 4 and 5, so the median is (4 + 5) ÷ 2 = 4.5.

A quick way to locate the middle: the median is at position (n + 1) ÷ 2. For 7 values that is position 4; for 8 values, position 4.5 — halfway between the 4th and 5th.

Advertisement
Advertisement

How to find the mode

Count how often each value appears; the most frequent is the mode.

  • Test scores: 91 appears twice, everything else once → mode = 91.
  • 2, 4, 4, 4, 5, 5, 7, 9 → 4 appears three times → mode = 4.
  • 1, 2, 2, 3, 3, 4 → two values tie → the data is bimodal (modes 2 and 3).
  • 1, 2, 3, 4 → every value appears once → there is no mode.

The mode is the only one of the three that works for categories. If a store sells 40 medium, 25 large and 15 small T-shirts, the mode is “medium” — you cannot average shirt sizes.

All three from a frequency table

Real data often arrives already counted. Say 100 customers rate a product: 40 give 5 stars, 30 give 4, 15 give 3, 5 give 2 and 10 give 1.

  • Mean: multiply each rating by its count and divide by the total: (5×40 + 4×30 + 3×15 + 2×5 + 1×10) ÷ 100 = 385 ÷ 100 = 3.85 stars.
  • Median: with 100 ratings, it is the average of the 50th and 51st when sorted. Counting up from the bottom, 1-star covers positions 1–10, 2-star 11–15, 3-star 16–30 and 4-star 31–60, so both are 4 → median = 4 stars.
  • Mode: the largest count is 40, so the mode is 5 stars.

The ten 1-star reviews pull the mean below the median, which is the typical “skewed left” pattern of online ratings.

Mean vs. median vs. mode at a glance

Measure What it tells you Affected by outliers? Best for
Mean The balance point of all values Yes, strongly Symmetric numeric data: test scores, heights, measurement errors
Median The middle value; half above, half below Barely Skewed data: incomes, home prices, wait times
Mode The most common value No Categories and discrete counts: sizes, colors, most common rating
Advertisement
Advertisement

When the mean misleads: outliers and skew

Suppose a small company has ten employees. Nine earn $48,000, $52,000, $55,000, $58,000, $60,000, $62,000, $65,000, $70,000 and $75,000; the owner earns $450,000.

  • Mean salary: $995,000 ÷ 10 = $99,500
  • Median salary: average of the 5th and 6th values, ($60,000 + $62,000) ÷ 2 = $61,000

Nine of the ten employees earn less than the “average.” Remove the owner and the mean drops to $60,556 while the median barely moves, to $60,000. That is why government agencies report median household income and real estate sites report median home prices: a few very large values pull the mean far from the typical case.

A simple rule of thumb for the shape of your data:

  • Mean ≈ median: the data is roughly symmetric.
  • Mean > median: skewed right (a long tail of high values, like incomes).
  • Mean < median: skewed left (a tail of low values, like scores on an easy test where a few students did poorly).

In our test-score example the mean (84.29) is below the median (88) because the 68 drags the mean down.

Range: the simplest measure of spread

Central tendency tells you where data is centered, not how spread out it is. The range is the largest value minus the smallest: for the test scores, 95 − 68 = 27 points. It is easy to compute but depends entirely on the two most extreme values.

An introduction to standard deviation

Standard deviation measures how far values typically sit from the mean. A small standard deviation means the data clusters tightly; a large one means it is spread out. Two classes can both average 80 on a test — one with everyone between 75 and 85, the other ranging from 50 to 100 — and standard deviation is what tells them apart.

Population SD:  σ = √( Σ(x − mean)² ÷ N )
Sample SD:      s = √( Σ(x − mean)² ÷ (n − 1) )

Worked example with 2, 4, 4, 4, 5, 5, 7, 9:

  1. Mean: 40 ÷ 8 = 5.
  2. Deviations from the mean: −3, −1, −1, −1, 0, 0, 2, 4.
  3. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16. Sum = 32.
  4. Population variance: 32 ÷ 8 = 4, so σ = √4 = 2.
  5. Sample variance: 32 ÷ 7 = 4.571, so s = √4.571 = 2.14.

Use the population formula when your data includes every member of the group you care about (all 8 values, and nothing else). Use the sample formula — dividing by n − 1 — when your data is a sample used to estimate a larger population; it corrects for the tendency of samples to underestimate spread. The standard deviation calculator shows both, with every step.

The 68–95–99.7 rule

For data that follows a bell-shaped normal distribution, about 68% of values fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3. The test scores have a mean of 84.29 and a population standard deviation of 9.07, so for a bell-shaped class you would expect roughly two-thirds of scores between about 75 and 93. With only seven scores, treat that as a rough guide rather than a prediction.

Which average should you use?

  • Reporting a typical income, price or time: the median.
  • Calculating totals or rates: the mean — mean × count gives the total, which the median cannot.
  • Grades and GPAs: the weighted mean.
  • Survey answers, sizes or preferences: the mode.
  • Growth rates over several periods: the geometric mean. An investment that gains 50% and then loses 20% has an arithmetic average return of 15%, but its real annual growth is √(1.5 × 0.8) − 1 = 9.54%. See the percentage change calculator for period-by-period changes.
  • Not sure? Report the mean and median together. If they are far apart, the median is usually the more honest “typical” value.

Calculating them in a spreadsheet

=AVERAGE(A2:A20)          mean
=MEDIAN(A2:A20)           median
=MODE.SNGL(A2:A20)        mode (MODE.MULT returns all modes)
=STDEV.P(A2:A20)          population standard deviation
=STDEV.S(A2:A20)          sample standard deviation
=SUMPRODUCT(A2:A20,B2:B20)/SUM(B2:B20)   weighted mean

Common mistakes

  • Forgetting to sort before picking the median.
  • Averaging averages. The mean of two class averages is wrong if the classes have different sizes; use a weighted mean.
  • Averaging percentages with different bases, such as conversion rates from pages with very different traffic. Divide total successes by total attempts instead; the percentage calculator helps.
  • Using the population formula for a sample. It understates the true spread, most noticeably in small samples.

Frequently Asked Questions

What is the difference between mean, median and mode?

The mean is the sum of the values divided by how many there are, the median is the middle value of the sorted list, and the mode is the most frequent value. For 2, 3, 3, 5, 7 they are 4, 3 and 3.

Is the average the same as the mean?

In everyday use, yes: “average” usually means the arithmetic mean. Strictly speaking, median and mode are also types of average.

When should I use the median instead of the mean?

Use the median when the data is skewed or has outliers, such as incomes or home prices. A few extreme values can pull the mean far from the typical value, while the median barely moves.

How do you find the median of an even set of numbers?

Sort the numbers and take the mean of the two middle values. For 2, 4, 4, 4, 5, 5, 7, 9, the median is (4 + 5) ÷ 2 = 4.5.

Can there be more than one mode?

Yes. A data set with two equally common values is bimodal, and one with more is multimodal. If every value appears once, there is no mode.

Advertisement
Advertisement
Run the numbers

Calculators from this guide

Keep reading

More guides

All guides
Advertisement