๐Ÿ“ˆ Knowledge ยท Statistics

How to Calculate
Mean, Median & Mode

Enter any dataset and instantly get the mean, median, mode, range, and more โ€” with a full step-by-step breakdown.

Definitions & Formulas

Mean
Sum รท Count
The arithmetic average. Sum all values and divide by how many there are.
Median
Middle value
Sort values, find the middle. For even count, average the two middle values.
Mode
Most frequent
The value that appears most often. A dataset can have multiple modes or none.
Range
Max โ€“ Min
The spread of the data โ€” difference between the largest and smallest values.
๐Ÿ’ก Which measure to use? Mean for symmetric data. Median when there are outliers (e.g. incomes, house prices). Mode for categorical data or finding the most common value.

Statistics Calculator

Sorted: โ€”
Mean
โ€”
Median
โ€”
Mode
โ€”
Range
โ€”
Count
โ€”
Sum
โ€”
Std Dev
โ€”
Min
โ€”
Max
โ€”
Variance
โ€”

Step-by-Step for Dataset: 3, 7, 7, 1, 4, 9, 2, 7

1

Sort the data

Ascending order: 1, 2, 3, 4, 7, 7, 7, 9

2

Calculate the mean

Sum = 1+2+3+4+7+7+7+9 = 40. Count = 8. Mean = 40 รท 8 = 5

3

Find the median

8 values โ†’ even count โ†’ average the 4th and 5th: (4+7) รท 2 = 5.5

4

Find the mode

7 appears 3 times (more than any other value). Mode = 7. Range = 9 โ€“ 1 = 8

Worked Examples

Test Scores

55, 70, 80, 70, 95
Mean=74, Median=70
Mode=70, Range=40
Mean: 74

Salaries ($k)

30,32,35,35,40,200
Mean=62 (skewed!)
Median=37.5
Median better: 37.5

Shoe Sizes

38,39,40,40,41,40
Mode=40
(most common)
Mode: 40

Even Dataset

2, 4, 6, 8
Median=(4+6)/2
No mode
Median: 5

More Knowledge Calculators

Frequently Asked Questions

Can there be more than one mode? โ–พ
Yes. A dataset with two modes is called bimodal, three modes is trimodal, and so on. If all values appear equally often, there is no mode.
When is the median better than the mean? โ–พ
When there are outliers (extreme values). For example, when reporting average income or house prices, the median is usually preferred because a few very high values would inflate the mean and make it unrepresentative.
How do I find the median of an even number of values? โ–พ
Sort the values, then average the two middle values. For the dataset 2, 4, 6, 8: the two middle values are 4 and 6, so the median is (4+6)/2 = 5.
What is standard deviation? โ–พ
Standard deviation measures how spread out values are from the mean. A low standard deviation means values cluster close to the mean; a high one means they are spread wide. It's the square root of the variance.