Average Calculator (AM, GM, HM)


Summarise a list using arithmetic, geometric or harmonic means, optionally with nonnegative weights. Arithmetic mean suits additive quantities; geometric mean suits multiplicative factors; harmonic mean can suit rates with equal numerators.

Each field is labelled with its meaning. Use consistent units within one calculation. Results are rounded for display.

Choose a mode, enter values and calculate. Use decimal points; lists accept commas or spaces.

Arithmetic / weighted mean

Ange dina värden:
Resultat:

Formula and method

AM = Σx/n; weighted AM = Σwx/Σw. GM = exp(Σln(x)/n), HM = n/Σ(1/x). Weighted versions replace each unit weight by w and n by Σw.

Worked example

For 2 and 8, AM = 5, GM = √16 = 4, HM = 2/(1/2+1/8) = 3.2. Weights 1 and 3 give weighted AM = 6.5.

Read the result

Unweighted means ignore the weight list; weighted means use it. No mean is a universal replacement for understanding the data.

Limits and edge cases

Up to 100 values, each of magnitude at most 10^12. GM/HM mode requires every value to be positive. Arithmetic mode accepts negatives and zero. Weights must match the list length, be nonnegative, and not all zero.

Frequently asked questions

Why reject zero in GM/HM mode?

The logarithmic GM method requires positive inputs, and HM divides by each input.

Can I use negative weights?

No. This calculator treats weights as nonnegative frequencies or importance values.