MathNana Learn with wisdom

Method · Statistics

How to Find Mean, Median and Mode

Three short procedures. The only one with a trap is the median, and the trap is forgetting to sort.

6 min read Updated 2026-08-23 Checked by Aziza Smailovic

Sort the data first

Before anything else, put the values in order. Learning how to find mean, median and mode efficiently means doing this once and getting two of the three almost for free.

Sorting makes the median immediate, the mode visible as a run of repeats, and the range a single subtraction of the two ends. Only the mean does not care about order.

The mean

Add every value, divide by how many there are.

4, 8, 9, 11worked example
  1. 4 + 8 + 9 + 11 = 32the sum
  2. 32 ÷ 4 = 8divide by the count

Two things to watch. Negative values are included with their signs, and a value of zero still counts towards the divisor — a zero is data, not a gap.

The median, with odd and even counts

Sort, then take the middle. With an even number of values there are two in the middle, and the median is their mean.

Odd count: 3, 7, 9, 12, 15worked example
  1. five values, sortedthe middle is the third
  2. median = 9read it straight off
Even count: 4, 8, 9, 11worked example
  1. four values, sortedthe middle two are 8 and 9
  2. (8 + 9) ÷ 2 = 8.5the mean of the two

The mode, including the awkward cases

Count how often each value appears and take the most frequent. Sorted data makes the runs obvious.

DataModeBecause
2, 3, 3, 5, 73it appears twice, everything else once
1, 1, 2, 2, 51 and 2bimodal — both appear twice
4, 8, 9, 11noneevery value appears exactly once

The last two rows are the ones people get wrong. Bimodal data has two modes and both should be reported; data with no repeats has no mode, and naming one invents a pattern that is not there.

Adding the range and the spread

The range is the largest value minus the smallest — one subtraction once the data is sorted. For 4, 8, 9, 11 it is 11 − 4 = 7.

Standard deviation is more work but says far more: how far a typical value sits from the mean. Sum the squared differences, divide by n for a population or n − 1 for a sample, then take the square root.

Population standard deviation of 4, 8, 9, 11worked example
  1. mean = 8found above
  2. (−4)² + 0² + 1² + 3² = 26squared differences from the mean
  3. 26 ÷ 4 = 6.5the variance
  4. √6.5 ≈ 2.55the standard deviation

A larger worked example, start to finish

Everything above, applied once to a set big enough that sorting genuinely helps.

Marks: 7, 4, 9, 4, 8, 6, 4, 10worked example
  1. 4, 4, 4, 6, 7, 8, 9, 10sorted first
  2. 52 ÷ 8 = 6.5the mean
  3. (6 + 7) ÷ 2 = 6.5the median: eight values, so the middle two
  4. 4the mode: it appears three times
  5. 10 − 4 = 6the range

The mean and median agreeing at 6.5 while the mode sits at 4 says something real about this set: it is roughly symmetric overall, but the lowest mark is unusually common.

Checking the results

Three quick tests catch nearly every arithmetic slip.

  • The mean must lie between the smallest and largest values. If it does not, the sum or the count is wrong.
  • The median must be one of the values, or halfway between two of them.
  • The mode, if there is one, must appear in the data more often than anything else.

The first is the most useful. A mean outside the range of the data is impossible, and it immediately points at the arithmetic rather than the method.

Questions about how to find mean median and mode

How do I find the median of an even number of values?

Sort them, take the two in the middle, and find their mean. For 4, 8, 9, 11 that is (8 + 9)/2 = 8.5.

Do I have to sort the data first?

For the median, yes — the middle of an unsorted list means nothing. Sorting also makes the mode and range much easier to read off.

What if no value repeats?

Then there is no mode. That is a valid answer, and naming one anyway describes a pattern the data does not have.

How do I check my mean is right?

It must lie between the smallest and largest values in the set. A mean outside that range is arithmetically impossible.