Mean Calculator
Calculates the three classical (Pythagorean) means of a data set: the arithmetic mean (the everyday average), the geometric mean (for growth rates and ratios) and the harmonic mean (for rates such as speeds and prices per unit). Choose one or show all three side by side, with the sum, product or reciprocal sum each one is built from.
- Every value has equal weight.
- A comma always separates two values; it is never a decimal point.
Formula
AM = (x₁ + … + xₙ) ÷ n; GM = (x₁ × … × xₙ)^(1/n); HM = n ÷ (1/x₁ + … + 1/xₙ)
- n is the number of values. Results are rounded to 4 decimal places.
- The geometric and harmonic means are defined here only when every value is greater than 0, as in the reference calculator.
- The geometric mean is computed as e raised to the mean of the natural logarithms, so long lists do not overflow.
- For positive data AM ≥ GM ≥ HM, with equality only when all values are the same.
- Use the arithmetic mean for amounts that add, the geometric mean for factors that multiply (growth, returns, ratios) and the harmonic mean for rates over a fixed amount (average speed over equal distances).
The numbers 2, 4 and 8
Inputs
- Data set: 2, 4, 8
- Type of mean: all
AM = 14 ÷ 3 = 4.6667. GM = ∛(2 × 4 × 8) = ∛64 = 4. HM = 3 ÷ (½ + ¼ + ⅛) = 3 ÷ 0.875 = 3.4286. As expected, 4.6667 ≥ 4 ≥ 3.4286.
Sources & references
Frequently asked questions
How do you find the mean?
Add all the values and divide by how many there are. The mean of 3, 7 and 11 is (3 + 7 + 11) ÷ 3 = 21 ÷ 3 = 7.
When should I use the harmonic mean?
For averaging rates. Driving 60 km at 30 km/h and 60 km at 60 km/h gives an average speed of 2 ÷ (1/30 + 1/60) = 40 km/h, the harmonic mean, not the arithmetic 45 km/h.
When should I use the geometric mean?
For quantities that compound. Returns of +10% and +50% (factors 1.1 and 1.5) have a geometric mean of √1.65 ≈ 1.2845, an average growth of 28.45% a year.
What is the difference between mean and average?
In everyday use, "average" means the arithmetic mean. Strictly, mean, median and mode are all kinds of average, and the arithmetic, geometric and harmonic means are three kinds of mean.
Related calculators
Average Calculator Finds the average (arithmetic mean) of a list of numbers, together with the count, sum, median, geometric mean, smallest and largest value and the range. Paste or type the numbers separated by commas, spaces or semicolons, in any mix. Anything that is not a number is skipped and listed, so you can see exactly which values went into the result. Useful for test scores, prices, measurements or any other set of data. Rounding Calculator Rounds a number to a chosen place value (thousands, tens, a whole number, tenths, hundredths and so on), to a number of significant figures, or to the nearest fraction such as a quarter or a sixteenth. Ten rounding rules are available, from everyday half up and banker's rounding (half to even) to ceiling, floor and truncation, and a comparison table shows what each rule gives for your number. Arithmetic is exact, so 2.675 rounds to 2.68, not 2.67 as some software gives. Batting Average Calculator Works out a batting average for cricket (runs scored ÷ number of times out) or baseball and softball (hits ÷ official at-bats). Baseball averages are shown the traditional way, to three decimal places without the leading zero (.300), and each result is placed on the usual scale from poor to elite.