Mean Calculator
Calculate the arithmetic mean (average) of your data set.
Quick Examples
What is Mean?
The mean (arithmetic average) is the sum of all values divided by the number of values. It's the most common measure of central tendency.
Example
For the data set {2, 4, 6, 8, 10}:
When to Use Mean
- When data is symmetrically distributed
- When there are no significant outliers
- For interval or ratio data
Limitations of Mean
The mean is sensitive to outliers. A single extreme value can significantly change the mean. In such cases, consider using the median instead.
Mean Formulas: Population vs Sample
The arithmetic mean has two symbols depending on what the numbers represent. For an entire population the mean is written μ (mu):
For a sample drawn from a larger population, the mean is written x̄ ("x-bar"), computed identically:
The formula does not change — only the symbol and the interpretation do. (Unlike standard deviation, there is no n−1 correction for the mean.)
Other Types of Mean
Weighted mean
When some values matter more than others, multiply each value by its weight and divide by the total weight:
Example: three scores of 80, 90, and 70 with weights 2, 3, and 1: (80×2 + 90×3 + 70×1) / (2+3+1) = 500/6 ≈ 83.3. Grade-point averages and portfolio returns are weighted means.
Geometric mean
For growth rates and ratios, where values multiply rather than add, use the nth root of the product:
Example: for 4, 9, and 16, the geometric mean is ∛(4×9×16) = ∛576 ≈ 8.32 — always less than or equal to the arithmetic mean.
Harmonic mean
For averaging rates over equal distances, such as speeds:
Example: driving the same stretch at 60 km/h and 120 km/h averages 2 / (1/60 + 1/120) = 80 km/h — less than the plain average of 90, because you spend more time at the slower speed.
Worked Examples
Example 1: Weighted mean of exam scores
Scores 84, 90, 75, 60, 85, 92, 81 with credit-hour weights 3, 2, 4, 3, 3, 2, 3. Weighted sum = 84×3 + 90×2 + 75×4 + 60×3 + 85×3 + 92×2 + 81×3 = 1594. Total weight = 20. Weighted mean = 1594 / 20 = 79.7 — slightly below the plain mean of 81, because the lowest score carried one of the largest weights.
Example 2: When the mean misleads
Nine employees earn $40,000 and one earns $1,000,000. The mean is (9 × 40,000 + 1,000,000) / 10 = $136,000 — a figure nobody in the room earns. The median is $40,000. When a distribution has a long tail, the mean describes the math, not the typical case.
Common Mistakes
- Averaging averages: the average of two group means equals the overall mean only if the groups are equal in size — otherwise weight them by size.
- Averaging percentages directly: 40% of 10 people and 60% of 90 people is not 50% — it is (0.40×10 + 0.60×90)/100 = 58%.
- Mixing units: adding values in different units (or currencies) before averaging produces a meaningless number — convert first.
- Using the arithmetic mean for growth rates: averaging 10%, 20%, and 30% annual growth as 20% overstates the true average growth of about 19.7% (the geometric mean of the multipliers).
Quick Answers
What is the difference between μ and x̄? μ is the population mean, x̄ the sample mean. The calculation is identical; the symbols tell the reader whether the numbers cover everyone or just a sample.
When should I use the geometric mean instead? When the quantities multiply rather than add — investment returns, growth rates, and ratios. For such data the arithmetic mean overstates the typical value.
Can the mean be larger than every value in the dataset? No. The mean blends the values, so it must sit between the minimum and the maximum.
Two Key Properties of the Mean
The arithmetic mean has two properties that explain why statistics leans on it so heavily. First, the deviations from the mean always sum to zero: for 2, 4, 6, 8, 10 with mean 6, (−4) + (−2) + 0 + 2 + 4 = 0. The mean is the exact balance point of the data — which is also why a single extreme value can tip it. Second, the mean minimizes the sum of squared deviations: no other number sits "closer" to the dataset in that squared sense. This second property is the reason the mean appears inside the formulas for variance, standard deviation, and regression.
The Mean in Spreadsheets
In Excel or Google Sheets, =AVERAGE(A1:A20) returns the arithmetic mean of a range, ignoring text and empty cells. For a weighted mean, use =SUMPRODUCT(values, weights)/SUM(weights). A quick sanity check after any spreadsheet average: the result must lie between the range's minimum and maximum.
Mean vs Median vs Mode — Quick Chooser
| Question you are asking | Use |
|---|---|
| What is the typical value, using all the data? | Mean |
| What is the middle value, ignoring extremes? | Median |
| What is the most common value or category? | Mode |
More Quick Answers
Does the mean have to be a whole number? No. The mean of 1, 2, and 2 is 1.67 — means routinely fall between the data values.
What if my data contains text or blanks? Exclude them or use a spreadsheet's AVERAGE, which skips non-numeric cells automatically. Never let text silently become zero.
Is the mean the same as the expected value? Closely related: the expected value is the theoretical mean of a probability distribution, while the sample mean estimates it from observed data.