๐Ÿ”ข Math

๐Ÿ“ˆ ๐Ÿ“ˆ Mean, Median, Mode: How to Calculate Averages Correctly

Learn how to calculate mean, median, and mode with step-by-step examples. Covers when to use each measure, the effect of outliers, and how they differ in skewed data distributions.

⏱️ 9 min read🦉 365tool.net🌍 For everyone worldwide

Mean, median, and mode are three ways to describe the "center" of a dataset โ€” what mathematicians call measures of central tendency. They often give different answers, and knowing which one is appropriate for a given situation is one of the most practical statistical skills you can develop. Choosing the wrong measure โ€” as often happens in news reporting and advertising โ€” can give a deeply misleading picture of the data.

Mean (Arithmetic Average)

Mean = Sum of all values รท Number of values

The mean is the most common "average" and what most people mean when they say "average."

Example: Test scores 72, 85, 90, 78, 95

Mean = (72 + 85 + 90 + 78 + 95) รท 5 = 420 รท 5 = 84

Weighted Mean

When values have different importance or frequency:

Weighted Mean = ฮฃ(value ร— weight) รท ฮฃ(weights)

Example: Final grade where homework (weight 20%) = 88, midterm (30%) = 82, final (50%) = 90:

Weighted Mean = (88ร—0.20 + 82ร—0.30 + 90ร—0.50) = 17.6 + 24.6 + 45 = 87.2

Median (Middle Value)

The median is the middle value when data is sorted in order. It is the value that splits the dataset into two equal halves.

For odd number of values:

Sort the data, take the middle value.

Scores: 72, 78, 85, 90, 95 โ†’ Median = 85 (3rd of 5 values)

For even number of values:

Sort the data, average the two middle values.

Values: 10, 20, 30, 40 โ†’ Middle two: 20 and 30 โ†’ Median = (20+30)/2 = 25

Mode (Most Frequent Value)

The mode is the value that appears most often. A dataset can have:

  • No mode: if all values are different
  • One mode (unimodal): one value appears more than others
  • Two modes (bimodal): two values tie for most frequent
  • Multiple modes: rarely useful in practice

Example: 3, 7, 7, 2, 5, 7, 1, 9

7 appears 3 times (more than any other) โ†’ Mode = 7

Example: 4, 5, 4, 6, 5, 7

Both 4 and 5 appear twice โ†’ Mode = 4 and 5 (bimodal)

The Effect of Outliers: When Mean Misleads

The most critical difference between mean and median is their sensitivity to outliers (extreme values).

Example: 7 employees' salaries

$28,000, $31,000, $32,000, $35,000, $38,000, $41,000, $250,000

  • Mean = $455,000 รท 7 = $65,000
  • Median = $35,000 (middle value)

The $250,000 CEO salary pulls the mean up dramatically. "Average salary" of $65,000 is misleading when 6 of 7 employees earn $28,000โ€“$41,000. The median of $35,000 better represents the "typical" worker's pay.

This is exactly the difference between "mean household income" and "median household income" โ€” the US government reports both, but median income is the more useful measure of typical economic wellbeing because it's not distorted by the ultra-wealthy.

Right-Skewed vs Left-Skewed Distributions

In a right-skewed distribution (long tail to the right โ€” like income, home prices, viral content views):

  • Mean > Median > Mode
  • Outliers on the high end pull the mean above the median
  • Median is usually the most representative measure

In a left-skewed distribution (long tail to the left):

  • Mean < Median < Mode

In a symmetric (normal) distribution (bell curve):

  • Mean = Median = Mode
  • All three measures give the same answer

When to Use Each Measure

Measure Use When Avoid When
MeanData is symmetric; no extreme outliers; numerical further calculations needed (variance, SD)Data has extreme outliers; skewed distributions
MedianData has outliers; skewed distributions; income, prices, or time dataRarely; good choice in most real-world scenarios
ModeCategorical data; most common size/type/value; when "most popular" is the questionContinuous numerical data where no repeats occur

Range and Other Spread Measures

Alongside central tendency, spread measures complete the picture:

  • Range = Maximum โˆ’ Minimum (simple but sensitive to outliers)
  • Interquartile Range (IQR) = Q3 โˆ’ Q1 (middle 50% of data; robust to outliers)
  • Standard Deviation: average distance from the mean (most commonly used)

Try It Yourself! ✨

Use our free Mean, Median, Mode Calculator — results appear as you type. No sign-up needed!

🚀 Open Mean, Median, Mode Calculator Free

❓ Frequently Asked Questions

What is the difference between mean, median, and mode?
Mean is the arithmetic average (sum รท count). Median is the middle value when data is sorted. Mode is the most frequently occurring value. For 3,7,7,2,5,7,1: Mean=(3+7+7+2+5+7+1)/7=4.57, Median=5 (middle when sorted: 1,2,3,5,7,7,7), Mode=7 (appears 3 times).
When should I use median instead of mean?
Use median when data has outliers or is skewed. Income data is the classic example: a CEO earning $500,000 pulls the "average" salary far above what most employees earn. The median salary is unaffected by the outlier and better represents the typical worker. Whenever real estate prices, salaries, or response times are reported, median is usually more meaningful than mean.
How do you find the median of an even number of values?
Sort the data, then average the two middle values. For data: 12, 15, 19, 23, 27, 31 (6 values), the two middle values are 19 and 23 (3rd and 4th). Median = (19+23)/2 = 21. The median doesn't have to be a value in the original dataset.
What does it mean if mean > median?
Mean greater than median indicates a right-skewed distribution โ€” there are some large outliers on the high end pulling the mean up. Common in income, home prices, and social media metrics where a few very high values skew the average. In these cases, median is usually the more representative measure of the "typical" value.
Can a dataset have no mode?
Yes. If every value appears exactly once, there is no mode (or you could say all values are modes โ€” neither is very useful). Modes are most meaningful with categorical data or discrete numerical data where values naturally repeat. For continuous measurements like temperatures or heights, every value is often unique, making mode less useful.