Geometric mean calculator
Average positive multiplicative values using logarithms.
A clear answer. Here’s how.
Geometric mean = exp(mean(log(x))). Requires strictly positive values. Useful for compatible multiplicative quantities; growth percentages must first be represented as positive factors (for example, 5% becomes 1.05). Uses logarithms to avoid multiplying all values directly.
How this is checked
3 reference checks passed These 3 cases were run when this page was built, on 3 December 2026, and all reproduce within the stated tolerance. The same cases are part of the automated tests that run on every change to Toolmoz. Engine version 1.
See the checks and where each expected answer comes from
Case 1
- Inputs
- Values, separated by commas or new lines 1, 2, 4, 8
- Expected, and what Toolmoz gave
- Geometric mean expected 2.8284271247461903, Toolmoz 2.82842712474619Count expected 4, Toolmoz 4
- Where the expected answer comes from
- The product is 1 × 2 × 4 × 8 = 64 and the fourth root of 64 is 64^(1/4) = (2^6)^(1/4) = 2^1.5 = 2√2 = 2.828427
- Allowed difference
- ±1e-9 relative
Case 2
- Inputs
- Values, separated by commas or new lines 2, 8
- Expected, and what Toolmoz gave
- Geometric mean expected 4, Toolmoz 4Count expected 2, Toolmoz 2
- Where the expected answer comes from
- √(2 × 8) = √16 = 4
- Allowed difference
- ±1e-9 relative
Case 3
- Inputs
- Values, separated by commas or new lines 1, 10, 100
- Expected, and what Toolmoz gave
- Geometric mean expected 10, Toolmoz 10.000000000000002Count expected 3, Toolmoz 3
- Where the expected answer comes from
- The cube root of 1 × 10 × 100 = 1000 is 10
- Allowed difference
- ±1e-9 relative
What this shows: the engine reproduces independently worked values for these cases. It does not prove every possible input is right. To test an answer you were given, see how to check a number; to see what is and is not checked across Toolmoz, see the accuracy ledger.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Values, separated by commas or new lines
- 1, 2, 4, 8
Example result
- Geometric mean
- 2.82842712475
- Count
- 4