๐Ÿ”ข Math

๐Ÿ“Š ๐Ÿ“Š Average Calculator: How to Calculate Mean, Median, and Mode

Learn how to calculate mean, median, mode, and range. Complete guide with formulas, step-by-step examples, and when to use each type of average.

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

When someone says "the average," they almost always mean the mean โ€” but there are actually three commonly used types of average: mean, median, and mode. Each measures a different aspect of a data set, and choosing the wrong one can lead to very misleading conclusions. This guide explains all three, when to use each, and how to calculate them accurately.

What is an Average?

An average is a single number that represents the "center" or "typical value" of a data set. The challenge is that "typical" can mean different things depending on the data. A street's average house price might be $350,000, but if one mansion sells for $2 million, the mean is distorted. The median might be $275,000 โ€” a much more "typical" number for buyers on that street.

The Mean (Arithmetic Average)

The mean is the most common type of average. It is calculated by adding all values together and dividing by the count of values.

Mean = Sum of all values รท Number of values

Example: Calculating Mean

A student's test scores: 78, 85, 92, 67, 88, 74, 91

  • Sum: 78 + 85 + 92 + 67 + 88 + 74 + 91 = 575
  • Count: 7 scores
  • Mean: 575 รท 7 = 82.1

When to Use the Mean

  • When data is evenly distributed without extreme outliers
  • Calculating average temperature, speed, or time
  • Finding average salary in a group of similar earners
  • Sports statistics (batting average, points per game)

When NOT to Use the Mean

  • When extreme outliers are present (a billionaire's salary distorts average income)
  • House prices in mixed neighborhoods
  • Any data set with a highly skewed distribution

The Median (Middle Value)

The median is the middle value when a data set is arranged in order from smallest to largest. Exactly half the values are below the median, and half are above it.

For odd number of values: Median = the middle value

For even number of values: Median = mean of the two middle values

Example 1: Odd Number of Values

House prices on a street: $180K, $210K, $225K, $240K, $890K

Already sorted. 5 values โ€” middle value is the 3rd: $225,000

(Compare to mean: ($180K+$210K+$225K+$240K+$890K) รท 5 = $349,000 โ€” heavily distorted by the mansion)

Example 2: Even Number of Values

Scores: 12, 15, 18, 22, 27, 31

6 values โ€” two middle values are 18 and 22.

Median = (18 + 22) รท 2 = 20

When to Use the Median

  • Income and salary data (which is always right-skewed due to high earners)
  • Real estate prices
  • Any data with known outliers that would distort the mean
  • When you want to know the "typical" value rather than the mathematical average

The Mode (Most Frequent Value)

The mode is the value that appears most frequently in a data set. A data set can have no mode (all values unique), one mode (unimodal), or multiple modes (bimodal, trimodal, etc.).

Mode = the value(s) that appear most often

Example 1: Single Mode

Number of items purchased per transaction: 1, 2, 2, 3, 2, 4, 1, 2, 5, 3

The number 2 appears 4 times โ€” more than any other value.

Mode = 2

Example 2: Bimodal

Shoe sizes sold: 7, 8, 8, 9, 9, 10, 8, 9, 11

Sizes 8 and 9 both appear 3 times.

Mode = 8 and 9 (bimodal)

When to Use the Mode

  • Most popular product size, color, or category
  • Most common customer response in surveys
  • Any categorical data where mean and median don't apply (e.g., most common car color)
  • Identifying typical patterns in frequency distributions

The Range

While not an average, the range is often calculated alongside mean, median, and mode because it describes data spread:

Range = Maximum value โˆ’ Minimum value

Example: Test scores of 45, 67, 72, 88, 91. Range = 91 โˆ’ 45 = 46

The range tells you how spread out the data is. A small range means values cluster closely together; a large range means wide variation.

Weighted Average

A weighted average assigns different importance (weights) to different values. This is used when not all values contribute equally to the total.

Weighted Mean = (ฮฃ Value ร— Weight) รท ฮฃ Weight

Example: GPA Calculation

You earned these grades in courses with different credit hours:

  • English (3 credits): A = 4.0 โ†’ 3 ร— 4.0 = 12
  • Math (4 credits): B = 3.0 โ†’ 4 ร— 3.0 = 12
  • Art (2 credits): A = 4.0 โ†’ 2 ร— 4.0 = 8

Weighted GPA = (12 + 12 + 8) รท (3 + 4 + 2) = 32 รท 9 = 3.56

(Simple mean of 4.0 + 3.0 + 4.0 = 3.67 โ€” different because it ignores credit hours)

Mean vs. Median: Real-World Examples of Why It Matters

Income Statistics

In the US, the mean (average) household income is significantly higher than the median household income because a small percentage of extremely high earners pull the mean upward. The median income better represents what a "typical" American household earns. This is why economists almost always report median income, not mean income.

Response Times

In software performance monitoring, the mean response time can be misleading if a few very slow requests (timeouts, errors) pull it upward. Engineers typically look at the 95th percentile or median response time, which better reflects what most users experience.

Real Estate

A neighborhood with mostly $200Kโ€“$300K homes and one $2M luxury property has a mean price that makes it look more expensive than it is. The median gives a more honest picture of what most buyers can expect to pay.

Quick Reference: Which Average to Use

Situation Best Average
Test scores, temperatures, speedsMean
Salaries, house prices, incomesMedian
Popular product, most common responseMode
GPA, weighted scoresWeighted Mean
Data with extreme outliersMedian
Categorical data (colors, brands)Mode

Try It Yourself! ✨

Use our free Average Calculator — results appear as you type. No sign-up needed!

🚀 Open Average Calculator Free

❓ Frequently Asked Questions

What is the difference between mean, median, and mode?
The mean is the arithmetic average (sum divided by count). The median is the middle value when data is sorted in order. The mode is the most frequently occurring value. They give different results when data is skewed or contains outliers โ€” the mean is sensitive to extreme values, while the median and mode are not.
How do I calculate the mean average?
Add all the values together, then divide by the number of values. For example, the mean of 10, 15, 20, 25, and 30 is (10+15+20+25+30) รท 5 = 100 รท 5 = 20. This is the most common type of average used in everyday calculations.
How do I find the median of a data set?
Sort the values from smallest to largest. If there is an odd number of values, the median is the middle one. If there is an even number, take the mean of the two middle values. For example, the median of 3, 7, 12, 18, 21 is 12 (the 3rd of 5 values). The median of 3, 7, 12, 18 is (7+12)รท2 = 9.5.
When should I use median instead of mean?
Use the median when your data contains extreme outliers that would distort the mean. Income, house prices, and response times are classic examples where the median is more representative than the mean. If Bill Gates walks into a bar, the mean income in that bar becomes millions โ€” but the median barely changes.
What is a weighted average and how do you calculate it?
A weighted average accounts for the fact that some values contribute more to the total than others. Multiply each value by its weight, sum the results, then divide by the total of all weights. GPA calculation is a common example: a grade in a 4-credit course contributes more to your GPA than the same grade in a 1-credit course.