Mean Calculator

Calculate the arithmetic mean (average) of a set of numbers

About Mean

The mean (arithmetic mean) is the sum of all values divided by the number of values. It represents the central tendency of a dataset.

Formula: Mean = (Sum of all values) / (Number of values)

What Is Mean (Average)?

The mean, commonly called the average, is the most fundamental measure of central tendency in statistics. It represents the "center" of a dataset by summing all values and dividing by the count. The mean is used everywhere—from calculating grade point averages to measuring economic indicators and analyzing scientific data.

While the arithmetic mean is most common, different types of means serve specific purposes. The geometric mean is better for growth rates, and the harmonic mean is ideal for rates and ratios.

Type of MeanFormulaBest Used ForExample
Arithmetic MeanΣx / nGeneral averagingTest scores, heights
Weighted MeanΣ(w × x) / ΣwValues with different importanceGPA, portfolio returns
Geometric Mean(x₁ × x₂ × ... × xₙ)^(1/n)Growth rates, ratiosInvestment returns
Harmonic Meann / Σ(1/x)Rates, speedsAverage speed
Trimmed MeanMean excluding extremesRobust to outliersOlympic scoring

Arithmetic Mean Formula

x̄ = Σx / n = (x₁ + x₂ + ... + xₙ) / n

Where:

  • = Mean (pronounced 'x-bar')
  • Σx= Sum of all values
  • n= Number of values

Mean vs Median vs Mode

The mean, median, and mode are all measures of central tendency, but each captures different aspects of the data's "center." Understanding when to use each is crucial for accurate data analysis and interpretation.

MeasureDefinitionSensitive to Outliers?Best For
MeanSum divided by countYes (highly)Symmetric distributions, no outliers
MedianMiddle value when sortedNo (robust)Skewed data, income, house prices
ModeMost frequent valueNoCategorical data, finding common values

Distribution Shape and Central Tendency:

DistributionRelationshipExample
Symmetric (Normal)Mean = Median = ModeHeights, IQ scores
Right-skewed (Positive)Mean > Median > ModeIncome, house prices
Left-skewed (Negative)Mean < Median < ModeAge at retirement, test scores (easy test)

Weighted Mean

A weighted mean assigns different importance (weights) to each value. This is essential when some observations should count more than others—like courses with different credit hours in GPA calculations or stocks with different values in portfolio returns.

ApplicationValues (x)Weights (w)Why Weighted?
GPALetter grades (A=4, B=3...)Credit hours3-credit course matters more than 1-credit
Stock PortfolioIndividual returnsInvestment amountsLarger positions have more impact
Survey ResultsResponse valuesRespondent frequencyAccount for response frequency
Price Index (CPI)Price changesConsumer spending weightsCommon purchases weighted more

Weighted Mean Formula

x̄w = Σ(wᵢ × xᵢ) / Σwᵢ

Where:

  • x̄w= Weighted mean
  • wᵢ= Weight for each value
  • xᵢ= Individual values

Geometric Mean

The geometric mean multiplies all values and takes the nth root. It's the correct way to average rates of change, growth rates, and ratios. Using arithmetic mean for these can give misleading results.

For example, if an investment grows 100% year 1 and loses 50% year 2: Arithmetic mean = 25% (wrong, you broke even!). Geometric mean = 0% (correct).

YearReturnGrowth FactorCumulative Value
Start$1,000
Year 1+100%2.0$2,000
Year 2-50%0.5$1,000
Arithmetic mean: (100% + -50%)/2 = 25% (misleading)
Geometric mean: √(2.0 × 0.5) - 1 = 0% (correct)

Geometric Mean Formula

GM = (x₁ × x₂ × ... × xₙ)^(1/n) = ⁿ√(Πxᵢ)

Where:

  • GM= Geometric mean
  • Π= Product of all values
  • n= Number of values

Harmonic Mean

The harmonic mean is the reciprocal of the arithmetic mean of reciprocals. It's the correct average for rates, speeds, and ratios where the denominator is the variable of interest.

Classic example: If you drive to a destination at 60 mph and return at 40 mph, the average speed is NOT 50 mph. The harmonic mean gives the correct answer: 48 mph.

ScenarioArithmetic MeanHarmonic MeanCorrect Answer
60 mph out, 40 mph back50 mph48 mphHarmonic (same distance)
P/E ratios: 10, 20, 4023.317.1Harmonic (equal investment)
Fuel efficiency: 30, 40 mpg35 mpg34.3 mpgHarmonic (equal gallons)

Harmonic Mean Formula

HM = n / Σ(1/xᵢ) = n / (1/x₁ + 1/x₂ + ... + 1/xₙ)

Where:

  • HM= Harmonic mean
  • n= Number of values
  • xᵢ= Individual values

Properties of the Mean

Understanding the mathematical properties of the mean helps in statistical analysis and problem-solving. The mean has several important characteristics that make it useful but also potentially misleading.

PropertyDescriptionImplication
Sum of deviations = 0Σ(xᵢ - x̄) = 0Mean is the balance point
Minimum squared deviationsΣ(xᵢ - x̄)² is minimizedBasis for least squares
Affected by all valuesEvery value influences meanSensitive to outliers
Linear transformationMean(ax + b) = a×Mean(x) + bUseful for unit conversion
Addition ruleMean(X+Y) = Mean(X) + Mean(Y)Independent variable sums

Outlier sensitivity: A single extreme value can dramatically shift the mean. For example, if Bill Gates walks into a bar, the mean income of everyone there becomes billions, while the median barely changes.

Population Mean vs Sample Mean

The distinction between population and sample statistics is fundamental to statistical inference. We usually can't measure an entire population, so we use sample statistics to estimate population parameters.

ConceptPopulationSample
Symbol for meanμ (mu)x̄ (x-bar)
Symbol for sizeNn
PurposeTrue parameterEstimate of μ
AvailabilityUsually unknownCalculated from data
Standard errorN/Aσ/√n (estimate precision)

The sample mean is an unbiased estimator of the population mean—on average, it equals μ. However, individual samples will vary, with this variation decreasing as sample size increases.

Worked Examples

Calculating Arithmetic Mean

Problem:

Test scores: 78, 85, 92, 88, 75. What is the class average?

Solution Steps:

  1. 1List values: 78, 85, 92, 88, 75
  2. 2Count values: n = 5
  3. 3Sum all values: 78 + 85 + 92 + 88 + 75 = 418
  4. 4Divide by count: 418 / 5 = 83.6

Result:

The mean test score is 83.6 points.

Weighted Mean for GPA

Problem:

Calculate GPA: A (4.0) in 4-credit course, B (3.0) in 3-credit course, A (4.0) in 2-credit course, C (2.0) in 1-credit course.

Solution Steps:

  1. 1Calculate weighted values: 4×4 + 3×3 + 4×2 + 2×1 = 16 + 9 + 8 + 2 = 35
  2. 2Sum weights: 4 + 3 + 2 + 1 = 10 credits
  3. 3Weighted mean: 35 / 10 = 3.5

Result:

GPA = 3.5 (between B+ and A-). The 4-credit A has more impact than the 1-credit C.

Geometric Mean for Investment Returns

Problem:

An investment had returns of +20%, -10%, +15% over 3 years. What's the average annual return?

Solution Steps:

  1. 1Convert to growth factors: 1.20, 0.90, 1.15
  2. 2Multiply: 1.20 × 0.90 × 1.15 = 1.242
  3. 3Take cube root: 1.242^(1/3) = 1.0749
  4. 4Convert back: 1.0749 - 1 = 0.0749 = 7.49%

Result:

Average annual return = 7.49% (geometric mean). The arithmetic mean of 8.33% would overstate performance.

Tips & Best Practices

  • Always check for outliers before using the mean—a single extreme value can make it unrepresentative.
  • For growth rates, returns, or ratios, use geometric mean instead of arithmetic mean.
  • When averaging speeds over equal distances, use harmonic mean; over equal times, use arithmetic mean.
  • Report both mean and median to show whether data is symmetric or skewed.
  • Sample mean estimates population mean; the estimate improves with larger samples (standard error = σ/√n).
  • For weighted averages, ensure weights sum to something meaningful (total credits, total investment, etc.).
  • The trimmed mean (removing extreme values) offers a compromise between mean and median for robustness.

Frequently Asked Questions

Use the mean when data is symmetric without outliers—it uses all information. Use the median when data is skewed or has outliers, as it's more robust. For income data, median is typically preferred because a few high earners can dramatically inflate the mean. For test scores in a normally-distributed class, the mean works well.
The mean uses every value in its calculation. If you have values 1, 2, 3, 4, 100, the mean is 22, while the median is 3. The single outlier (100) pulls the mean far from the typical values. This is why the median is often preferred for income, house prices, and other right-skewed data.
Arithmetic mean adds values and divides by count—use for additive quantities like heights or temperatures. Geometric mean multiplies values and takes the nth root—use for multiplicative quantities like growth rates, percentages, or ratios. The geometric mean is always less than or equal to the arithmetic mean.
Larger samples give more reliable means. The standard error (SE = σ/√n) measures this uncertainty. With n = 100, SE is 1/10th of the standard deviation; with n = 10,000, it's 1/100th. The Central Limit Theorem ensures sample means are approximately normal regardless of the population distribution when n is large enough.
Yes, and it usually is! The mean of 1, 2, 3, 4, 5 is 3, which appears in the data, but the mean of 1, 2, 4, 5 is 3, which doesn't. The mean is a mathematical construct representing the center of gravity—it need not be an actual data point. The median also may not appear in even-sized datasets.
Only use arithmetic mean of means if all groups have equal size. Otherwise, use a weighted mean with group sizes as weights. If Group A (n=10) has mean 80 and Group B (n=30) has mean 60, the overall mean is NOT 70. It's (10×80 + 30×60)/(10+30) = 65.

Sources & References

Last updated: 2026-01-22