Home ↓
CalculatorsVerified

Math & Geometry

Average Calculator (Mean, Weighted, Geometric)

Arithmetic, weighted, geometric and harmonic means of a list of values.

More options

Four kinds of average

“Average” usually means the arithmetic mean: add the values and divide by how many there are. But other averages suit other data. The weighted mean gives some values more importance, which is how course grades with different coefficients, portfolio returns and price indices are calculated. The geometric mean multiplies the values and takes the n-th root; it is the right average for growth rates and ratios, such as the average yearly return of an investment. The harmonic mean is the right average for rates over equal distances — the average speed of a trip driven at 60 km/h out and 40 km/h back is 48 km/h, not 50.

Enter your values, and optionally a weight for each, to get all four averages together with the sum and the count.

Mean, median and outliers

The mean is sensitive to extreme values: one very large salary raises the mean salary of a small team considerably. In those cases the median, the middle value, often describes the typical case better. The standard deviation calculator shows the median, mode and spread of your data alongside the mean.

Formula & method

Mean = Σx ÷ nWeighted = Σ(w·x) ÷ ΣwGeometric = (Πx)^(1/n)Harmonic = n ÷ Σ(1/x)

Worked example

Marks of 80 (weight 1) and 90 (weight 3)

  1. Arithmetic mean = (80 + 90) ÷ 2 = 85
  2. Weighted mean = (80 × 1 + 90 × 3) ÷ (1 + 3) = 350 ÷ 4
  3. Weighted mean = 87.5

Answer: A plain average of 85 and a weighted average of 87.5.

Frequently asked questions

When is the geometric mean used?

For growth rates and ratios, e.g. average annual return over several years.

When should I use a weighted average?

When values count differently, such as exam coefficients, credit hours or quantities bought at different prices.

Why use the geometric mean for returns?

Because returns compound; +50% then −50% leaves you 25% down, which the geometric mean reflects and the arithmetic mean does not.

Why do geometric and harmonic means need positive numbers?

Their formulas use logarithms and reciprocals, which are not defined for zero or negative values.

How many numbers can I enter?

As many as you like, separated by spaces, commas or new lines.

What is the average speed for a round trip?

The harmonic mean of the two speeds when the distances are equal.

Must weights add up to 1 or 100?

No. Any positive weights work; the calculator divides by their sum.

Is the mean the same as the median?

Only for symmetric data; for skewed data such as incomes they differ.