The three measures of central tendency each answer a slightly different question about a dataset. The mean asks "what is the balancing point?", the median asks "what is the middle value?", and the mode asks "what shows up most often?". Here is how to find mean median mode by hand, with a worked example for every formula.
1. Mean (Arithmetic Average)
x̄ = Σxᵢ / n
where Σxᵢ is the sum of all values and n is the count.
Example: [4, 8, 15, 16, 23, 42]
Sum = 4 + 8 + 15 + 16 + 23 + 42 = 108
n = 6
x̄ = 108 / 6 = 18
The mean uses every value, so it is sensitive to outliers. Swap the 42 for a 200 and the mean jumps from 18 to 44.3, even though five of the six numbers did not change.
2. Median (Middle Value After Sorting)
Step 1: sort the values ascending.
Step 2a (odd n): median = value at position (n + 1) / 2
Step 2b (even n): median = average of the two middle values
Odd example: [3, 1, 9, 7, 5]
Sorted: [1, 3, 5, 7, 9] n = 5
Middle position = (5 + 1) / 2 = 3
Median = 5
Even example: [12, 4, 7, 20, 3, 9]
Sorted: [3, 4, 7, 9, 12, 20] n = 6
Middle positions = 3 and 4 → values 7 and 9
Median = (7 + 9) / 2 = 8
The median ignores the magnitude of the highest and lowest values. It only cares about their position. That is why it is the standard summary for income, home prices, and any distribution with a long tail.
3. Mode (Most Frequently Occurring Value)
Count the frequency of each distinct value.
The mode is the value (or values) with the highest count.
Unimodal: [2, 4, 4, 6, 7, 9] → Mode = 4
Bimodal: [1, 3, 3, 5, 7, 7, 10] → Modes = 3 and 7
No mode: [1, 2, 3, 4, 5] → every value appears once
Multimodal: [1, 1, 2, 2, 3, 3, 4] → Modes = 1, 2, and 3
Unlike the mean and median, the mode can apply to non-numeric data. The most common eye color in a classroom, the most popular pizza topping, or the most frequent complaint category in a support log are all modes.
4. Range (Spread from Lowest to Highest)
Range = max(x) − min(x)
Example: [14, 22, 9, 31, 18]
max = 31, min = 9
Range = 31 − 9 = 22
Range is the simplest measure of spread. It tells you nothing about how the middle values are distributed, only the total span. Pair it with standard deviation for a fuller picture.
5. Weighted Mean (Class Grade Example)
Weighted Mean = Σ(wᵢ × xᵢ) / Σwᵢ
Example: a course grade where each category has a weight.
Category Score (xᵢ) Weight (wᵢ) wᵢ × xᵢ
Homework 92 20 1840
Quizzes 85 15 1275
Midterm 78 25 1950
Final exam 88 40 3520
─── ────
Σwᵢ = 100 Σ(wᵢxᵢ) = 8585
Weighted Mean = 8585 / 100 = 85.85A plain mean of the four scores would be (92 + 85 + 78 + 88) / 4 = 85.75, close but not identical. The weighted mean matters when some values count for more than others, such as a final exam worth twice as much as a quiz.
Quick Reference: How Shape Changes the Numbers
These four sample datasets show how the three measures line up (or split apart) for different distribution shapes. Symmetric data puts the mean, median, and mode almost on top of each other. Skewed data pulls them apart in a predictable order.
| Dataset | Shape | Mean | Median | Mode |
|---|
| 2, 4, 4, 5, 6, 6, 8 | Symmetric | 5.00 | 5 | 4 and 6 |
| 1, 2, 2, 3, 3, 3, 12 | Right-skewed (long upper tail) | 3.71 | 3 | 3 |
| 1, 10, 11, 11, 12, 12, 12 | Left-skewed (long lower tail) | 9.86 | 11 | 12 |
| 5, 6, 7, 7, 8, 9, 95 | Contains a severe outlier | 19.57 | 7 | 7 |
Notice the last row: one outlier at 95 drags the mean up to 19.57, while the median stays at 7 right where the bulk of the data sits. This is the single biggest reason to report a median alongside a mean for any real-world dataset.
Full Worked Example: All Six Measures on One Dataset
Data: [1, 2, 2, 3, 4]
Mean = (1 + 2 + 2 + 3 + 4) / 5 = 12 / 5 = 2.4
Median = 2 (middle of sorted list)
Mode = 2 (appears twice)
Range = 4 − 1 = 3
Variance (population) = Σ(xᵢ − x̄)² / n
= [(1−2.4)² + (2−2.4)² + (2−2.4)² + (3−2.4)² + (4−2.4)²] / 5
= [1.96 + 0.16 + 0.16 + 0.36 + 2.56] / 5
= 1.04
Std Dev = √1.04 ≈ 1.0198