Skip to content
Tooltip KitTooltip Kit
StudentsNov 15, 2026· 6 min read

Mean, Median, Mode and Range: How to Calculate Each (With Examples)

A clear guide to mean, median, mode, range and standard deviation: how to calculate each by hand, when to use which, and a worked example.

Mean, median, mode and range are the first statistics most students learn, and they're used everywhere from exam results to house prices. Here's how to calculate each one, using the same small dataset throughout: 4, 8, 6, 5, 3, 8.

Mean (average)

Mean = sum of values ÷ number of values

4 + 8 + 6 + 5 + 3 + 8 = 34, and there are 6 values, so the mean is 34 ÷ 6 ≈ 5.67.

Median (middle value)

Sort the numbers: 3, 4, 5, 6, 8, 8. With an odd count, the median is the middle number. With an even count, like here, it's the average of the two middle numbers: (5 + 6) ÷ 2 = 5.5.

Mode (most frequent)

The value that appears most often: 8 appears twice, so the mode is 8. A dataset can have more than one mode, or none if no value repeats.

Range (spread from lowest to highest)

Range = largest value − smallest value = 8 − 3 = 5.

Standard deviation

Standard deviation tells you how spread out values are around the mean. The steps:

  1. Find the mean.
  2. Subtract the mean from each value and square the result.
  3. Add the squared differences.
  4. Divide by n for a population, or by n − 1 for a sample.
  5. Take the square root.

Use the population version when your data includes every member of the group (for example, every student in one class), and the sample version when it's a sample from a larger group. Your course will usually tell you which to use.

Mean or median: which should you use?

The mean uses every value, which makes it sensitive to outliers. In the set 30, 32, 35, 36, 400, the mean is 106.6 but the median is 35, which better describes a "typical" value. That's why incomes and house prices are often reported as medians.

Check your answers

The statistics calculator gives all of these at once from a pasted list. For percentages and grades, see how to calculate percentages and how to calculate CGPA.

Frequently asked questions

What is the difference between mean and median?
The mean is the average (sum divided by count); the median is the middle value when sorted. The median is less affected by extreme values.
How do you find the median with an even number of values?
Sort the values and average the two middle numbers.
Can there be no mode?
Yes. If no value appears more than once, the dataset has no mode.

Keep reading