Mean, median, and mode are the three measures of central tendency in statistics. They each describe the center of a dataset in a different way — and knowing when to use each one is just as important as knowing how to compute them. This guide walks you through all three with clear formulas, step-by-step examples, and real-life contexts.

The Three Measures at a Glance

Mean
Average
Sum ÷ Count

The arithmetic average. Add all values, divide by how many there are. Sensitive to outliers.

Median
Middle Value
Middle of sorted data

The value in the exact center when data is sorted. Resistant to outliers. Best for skewed data.

Mode
Most Frequent
Most repeated value

The value that appears most often. A dataset can have no mode, one mode, or multiple modes.

🧮 Mean, Median & Mode Calculator

Enter a list of numbers separated by commas or spaces.

Mean
Median
Mode

How to Compute the Mean

The mean (also called the arithmetic mean or average) is the most familiar measure of central tendency. It is calculated by adding all values in a dataset and dividing by the count of values.

Mean = Sum of all values ÷ Number of values
Also written as: x̄ = (Σx) ÷ n
Where x̄ = mean, Σx = sum of all values, n = count of values
Step 1

Add all values together

Sum every number in the dataset. Order does not matter for this step.

Step 2

Count how many values there are

Count the total number of values in the dataset — this is n.

Step 3

Divide the sum by the count

Sum ÷ n = mean. The result may not be a whole number even if all the original values are integers.

Mean — Worked Example

📝 Dataset: 5, 8, 12, 4, 11
Step 1: Sum all values5 + 8 + 12 + 4 + 11 = 40
Step 2: Count valuesn = 5
Mean = 40 ÷ 58
✅ Mean = 8
📝 Real life: Test scores — 78, 85, 92, 70, 88, 95
Sum78 + 85 + 92 + 70 + 88 + 95 = 508
Countn = 6
Mean score508 ÷ 6 = 84.67
✅ Class average = 84.67
⚠️ The Mean's Weakness — Outliers

Consider incomes: ₱25,000 / ₱28,000 / ₱30,000 / ₱27,000 / ₱500,000
Mean = ₱610,000 ÷ 5 = ₱122,000 — but four out of five people earn around ₱28,000. The one outlier (₱500,000) pulled the mean up dramatically. In cases like this, the median is a more representative measure.

How to Compute the Median

The median is the middle value of a dataset when arranged in order from smallest to largest. Half the values are below the median and half are above it.

Sort the data → find the middle value
Odd count: median = the middle value at position (n+1) ÷ 2
Even count: median = average of the two middle values at positions n÷2 and (n÷2)+1
Step 1

Sort all values in ascending order

Arrange every number from smallest to largest. This is the most critical step — the median is meaningless unless the data is sorted first.

Step 2

Find the middle position

If n is odd: the median is the value at position (n+1) ÷ 2.
If n is even: the median is the average of the values at positions n÷2 and (n÷2)+1.

Step 3

Read or average the middle value(s)

For an odd dataset, the median is exactly one value. For an even dataset, add the two middle values and divide by 2.

Median — Worked Example (Odd Count)

📝 Dataset: 7, 2, 9, 4, 1 (5 values — odd)
Step 1: Sort ascending1, 2, 4, 7, 9
Step 2: Middle position = (5+1) ÷ 2 = position 33rd value
Median = 3rd value4
✅ Median = 4
1
2
4 ← median
7
9

Median — Worked Example (Even Count)

📝 Dataset: 3, 7, 1, 9, 4, 6 (6 values — even)
Step 1: Sort ascending1, 3, 4, 6, 7, 9
Step 2: Two middle values at positions 3 and 44 and 6
Step 3: Average of 4 and 6(4 + 6) ÷ 2 = 5
Median5
✅ Median = 5 (note: 5 is not even in the original dataset — that's normal for even-count sets)
1
3
4
6
→ average these two
7
9

How to Compute the Mode

The mode is the value that appears most frequently in a dataset. Unlike mean and median, mode can be used with non-numerical data (like colors or categories) and a dataset can have more than one mode.

Mode = the value(s) that appear most often
No mode — every value appears exactly once
Unimodal — one value appears most often
Bimodal — two values tie for most frequent
Multimodal — three or more values tie
Step 1

Count the frequency of each value

Tally how many times each distinct value appears in the dataset. A frequency table makes this easier for large datasets.

Step 2

Find the highest frequency

Identify the maximum count. If all values appear the same number of times, there is no mode.

Step 3

Identify all values with that frequency

If only one value has the highest frequency, that is the mode. If multiple values share the highest frequency, all of them are modes.

Mode — Worked Example (Unimodal)

📝 Dataset: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5
Frequency count1→2, 2→1, 3→2, 4→1, 5→3, 6→1, 9→1
Highest frequency3 times (value: 5)
Mode5
✅ Mode = 5 (appears 3 times)
3
1
4
1
5 ★
9
2
6
5 ★
3
5 ★

Mode — Worked Example (Bimodal)

📝 Dataset: 2, 4, 4, 6, 6, 8
Frequency count2→1, 4→2, 6→2, 8→1
Highest frequency2 times (values: 4 and 6)
Mode4 and 6 (bimodal)
✅ This dataset is bimodal — both 4 and 6 are modes

Mode — Worked Example (No Mode)

📝 Dataset: 1, 2, 3, 4, 5
Frequency count1→1, 2→1, 3→1, 4→1, 5→1
All values appear equally1 time each
ModeNone
✅ No mode — every value is unique

Worked Example: All Three Together

Let's compute mean, median, and mode for the same dataset.

📝 Dataset: 12, 7, 3, 14, 7, 9, 7, 11, 5
Sorted3, 5, 7, 7, 7, 9, 11, 12, 14
Count (n)9
Sum3+5+7+7+7+9+11+12+14 = 75
Mean = 75 ÷ 98.33
Median = position 5 of sorted data7
Mode = appears 3 times7
✅ Mean = 8.33  |  Median = 7  |  Mode = 7

When to Use Each Measure

Situation Best Measure Why
Symmetric data, no outliers Mean Uses all data values — most informative when data is balanced
Skewed data or outliers present Median Not affected by extreme values — more representative of the center
Categorical / non-numeric data Mode Only measure that works with categories (e.g. most popular color)
Income, house prices, wealth Median A few very high values distort the mean significantly
Exam scores (no extreme outliers) Mean Gives the overall class performance level
Most popular shoe size or product Mode You want to know the most common value, not the average

Grouped Data — Finding the Mean

When data is presented in a frequency table (grouped data), the mean is computed using weighted averages:

Mean = Σ(value × frequency) ÷ Σ(frequency)
Multiply each value by how often it appears, sum those products, then divide by the total count
📝 Frequency table: scores with their counts
Score 70 — appears 3 times → 70 × 3210
Score 80 — appears 5 times → 80 × 5400
Score 90 — appears 2 times → 90 × 2180
Sum of products790
Total frequency (3+5+2)10
Weighted Mean = 790 ÷ 1079
✅ Weighted mean score = 79

Practice Problems

DatasetMeanMedianMode
2, 4, 4, 6, 8 4.8 4 4
10, 20, 20, 40, 50, 50 31.67 30 20 & 50
5, 5, 5, 5, 5 5 5 5
1, 2, 3, 100 26.5 2.5 None
7, 3, 3, 7, 7, 3 5 5 3 & 7
✅ Key Takeaways

1. Mean: Sum ÷ Count — best for symmetric data without outliers
2. Median: Middle of sorted data — best for skewed data and outlier resistance
3. Mode: Most frequent value — only measure that works for categorical data
4. Even-count median = average of the two middle values
5. A dataset can have no mode, one mode (unimodal), or multiple modes (bimodal/multimodal)
6. For grouped data, use weighted mean: Σ(value × freq) ÷ Σ(freq)
7. When in doubt about which to use — check for outliers first


📊 Try the Mean, Median & Mode Calculator

Enter any list of numbers and get a full statistical summary including range, variance, standard deviation, and a frequency table.

Try the Calculator →