---
slug: geometric-mean-calculator
title: "Geometric Mean Calculator"
category: math
updated: 2026-11-18
canonical: https://calcseed.com/c/math/geometric-mean-calculator/
html: /c/math/geometric-mean-calculator/
---

# Geometric Mean Calculator

Compute the geometric mean of six positive numbers.

## Quick answer

**Quick answer:** with the default inputs (2, 4, 8, 16), the geometric mean is **11.31**. At these inputs: product = **2,097,152**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Value 1 | 2 |  |
| Value 2 | 4 |  |
| Value 3 | 8 |  |
| Value 4 | 16 |  |
| Value 5 | 32 |  |
| Value 6 | 64 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Geometric mean | 11.3137 |  |
| Product | 2097150 |  |

## Formula

```text
GM = (x_1_ × x_2_ × &hellip; × x_n_)^1/n
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Value 1 | number |  | 2 |
| Value 2 | number |  | 4 |
| Value 3 | number |  | 8 |
| Value 4 | number |  | 16 |
| Value 5 | number |  | 32 |
| Value 6 | number |  | 64 |

## Outputs

| Result | Format |
| --- | --- |
| Geometric mean | primary |
| Product | number |
| Geometric mean | number |

## How it works

### What the geometric mean is

This calculator multiplies six positive values together and takes the sixth root of the product. The result is the geometric mean, the average that applies when values combine multiplicatively rather than additively. At the defaults 2, 4, 8, 16, 32 and 64, the product is 2,097,152 and the geometric mean is **11.31**, noticeably below the arithmetic mean of 21 for the same six numbers.

### How the formula works

Multiplying six numbers and taking the sixth root is equivalent to averaging their logarithms: log GM = (log x_1_ + &hellip; + log x_6_) ÷ 6. That is why the geometric mean is the natural average for growth rates, since growth compounds in logs. Every input must be strictly positive, because the logarithm and the root of a product are undefined for zero or negative values; the calculator returns 0 as a signal when any input is 0.

The geometric mean is always less than or equal to the arithmetic mean, with equality only when all values are identical. For the defaults, the arithmetic mean is (2 + 4 + 8 + 16 + 32 + 64) ÷ 6 = 126 ÷ 6 = 21 against a geometric mean of 11.31. The gap widens as the values spread out, which is exactly why the two averages answer different questions: 21 overstates the center of a doubling sequence, while 11.31 tracks its multiplicative structure.

### Worked example with the default inputs

Multiply step by step: 2 × 4 = 8; 8 × 8 = 64; 64 × 16 = 1,024; 1,024 × 32 = 32,768; 32,768 × 64 = **2,097,152**. Each of these inputs is a power of 2 (2^1 through 2^6), so the product is 2^21. The geometric mean is 2,097,152^1/6 = 2^21/6 = 2^3.5 = 2^3 × &radic;2 = 8 × 1.414214 ≈ **11.31**.

A second way to see it: the geometric mean is the value that would replace every input while keeping the product unchanged. Replacing all six values with 11.3137 gives 11.3137^6 ≈ 2,097,152, the same product. No other single number has that property.

### Geometric versus arithmetic mean on real pairs

| Values | Geometric mean | Arithmetic mean |
| --- | --- | --- |
| 2, 4, 8, 16, 32, 64 | 11.31 | 21 |
| 1.10, 0.90 (a +10% and −10% year) | 0.995 (−0.5% per year) | 1.00 (0%) |
| 4 and 25 | 10 | 14.5 |
| 1920 × 1080 pixels | 1,440 | 1,500 |

The second row is the classic investment lesson: a stock that gains 10% then loses 10% ends flat in dollars but down 0.5% in compounded terms, which only the geometric mean captures. The fourth row shows the geometric mean as the aspect-ratio-preserving average: a 16:9 monitor treated as a square of side 1,440 pixels has the same pixel count, 2,073,600, as the original 1920 × 1080 panel.

### When to use it

- Average investment returns: multi-year growth factors compound, so the geometric mean, not the arithmetic mean, gives the constant annual rate that reproduces the total.
- Rates and ratios: price relatives, exchange-rate crosses and benchmark scores multiply, so ratios average geometrically.
- Proportional data spanning orders of magnitude: values from 2 to 64 sit closer to 11.31 than to 21 in multiplicative terms.
- Geometry: the geometric mean of a rectangle&rsquo;s sides gives the side of the equal-area square, and it appears in the mean proportional a : GM = GM : b.

#### Checking your result

Three quick sanity checks catch most input errors. The result must lie between the smallest and largest input: 11.31 sits inside 2–64. It must not exceed the arithmetic mean: 11.31 &le; 21. And if any input is a power pattern like the defaults, the result often simplifies: with six powers of 2, the mean is 2 raised to the average exponent 3.5.

### Common mistakes

- Including a zero or negative value: the geometric mean is undefined for 0 and non-positive inputs, yet a zero input here silently returns a 0 result rather than an error, so a 0 output means the inputs are invalid, not that the average is truly zero.
- Using it for additive data: salaries, temperatures and test scores do not compound, and the geometric mean of −5 and 41 in degrees has no physical meaning. Use the arithmetic mean there.
- Averaging percentages directly: converting 20% growth and 50% growth to factors 1.20 and 1.50 before averaging gives &radic;(1.20 × 1.50) = &radic;1.80 ≈ 1.342, a 34.2% rate, not the 35% an arithmetic average of 20 and 50 suggests.
- Forgetting the root count: dividing a six-value product by 6 instead of taking the sixth root produces astronomically wrong results. The exponent 1/6 is part of the definition.

### Precision and large products

#### Why the log route stays accurate

Six values up to 1,000,000,000 each can produce a product near 10^54, which pushes floating-point multiplication to its precision limits. The calculator handles this through the logarithm route internally, so results stay accurate to the displayed digits. For hand checks, take logarithms: the natural logs of the defaults sum to 14.5561, divide by 6 to get 2.4260, and e^2.4260 ≈ 11.31, confirming the direct product method.

### How it sits among the other means

The geometric mean is the middle of the three Pythagorean means for positive data: harmonic &le; geometric &le; arithmetic. For the defaults, the arithmetic mean is 21 and the harmonic mean calculator on the same six values returns 4.9, sandwiching 11.31 in between. Choose the harmonic mean for rates over equal quantities (speeds over equal distances), the geometric mean for multiplicative growth, and the arithmetic mean for additive quantities.

## FAQ

### Why use the geometric mean instead of the arithmetic mean?

When values compound, only the geometric mean reproduces the total. A portfolio that gains 10% then loses 10% ends at 0.99 of its start, and the geometric mean 0.995 per year reports that correctly, while the arithmetic mean of +10% and −10% misleadingly says 0% per year.

### What is the geometric mean of 2, 4, 8, 16, 32 and 64?

The product is 2,097,152, and its sixth root is 2^3.5 = 8 × &radic;2 ≈ 11.31. The arithmetic mean of the same values is 21, illustrating how the geometric mean pulls toward the multiplicative center.

### Can any value be zero or negative?

No. The geometric mean needs strictly positive values because it is built from products and roots. A zero input makes the product zero and the calculator returns 0 as an invalid-input signal rather than a meaningful average.

### How do I average two growth rates like 20% and 50%?

Convert to growth factors: &radic;(1.20 × 1.50) = &radic;1.80 ≈ 1.342, so the compounded rate is about 34.2% per period, below the 35% an arithmetic average would report.

### How does it relate to logarithms?

The log of the geometric mean equals the arithmetic mean of the logs: ln GM = (ln x_1_ + &hellip; + ln x_6_) ÷ 6. For the defaults the logs sum to 14.5561, so ln GM = 2.4260 and GM = e^2.4260 ≈ 11.31.

### When are the geometric and arithmetic means equal?

Only when every value is identical. Six inputs of 10 give a product of 1,000,000 and a sixth root of exactly 10, matching the arithmetic mean. Any spread makes the geometric mean smaller.

### What is the geometric mean of a rectangle used for?

It gives the side of the square with the same area: a 1920 × 1080 panel has geometric mean side &radic;(1920 × 1080) = 1,440 pixels, and 1440 × 1440 = 2,073,600 matches the panel&rsquo;s pixel count.

### How large can the inputs be?

Each input can go up to 1,000,000,000, and the computation runs through logarithms internally, so even six near-maximum values produce a stable result rather than an overflow.

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-18.
- Geometric mean definition GM = (product of x1..xn)^(1/n).
