Skip to content
Calcipedia
Geometric Mean Calculator instructional illustration

Geometric Mean Calculator

Calculate geometric mean for positive growth factors, ratios, returns, and compound averages, with log-sum steps and arithmetic mean comparison.

Last updated

Use this geometric mean calculator for positive growth factors, ratios, index changes, and return factors where compounding matters. It shows the geometric average, compares it with the arithmetic mean, and exposes the log-sum steps used to avoid overflow.

Enter factors such as 1.08 for 8% growth and 0.94 for a 6% decline. Zero and negative values are outside scope because the logarithm step is not defined for them.

Common use cases

Average the compound path from a sequence of positive investment or index return factors.

Choosing the right average

The geometric mean is for multiplicative data. Use the arithmetic mean for additive measurements such as counts or temperatures, and use the harmonic mean for rates over a common denominator such as equal-distance speeds.

Geometric average

1.06

Across 4 positive values, the geometric mean is 1.0581. Repeating that single factor 4 times produces the same compound product as the entered values.

1.06

Geometric mean

1.06

Arithmetic mean

0.42%

Gap below arithmetic mean

4

Count

Interpretation

The geometric and arithmetic means are close, which usually means the values are fairly balanced or the compounding drag is small.

Mean comparison

For positive values, the geometric mean cannot exceed the arithmetic mean. Here the gap is 0.0044, so the geometric mean gives the more conservative multiplicative average.

Scope

Use the geometric mean for positive multiplicative values such as growth factors, ratios, index changes, and return factors. Use an arithmetic mean for additive measurements and a harmonic mean for equal-denominator rates.

Geometric mean1.06
Arithmetic mean1.06
Compound-equivalent product1.25
Average log value0.06
Minimum0.92
Maximum1.18
Count4

Formula substitution

Log-sum method

GM = exp((ln(1.18) + ln(0.92) + ln(1.11) + ln(1.04)) / 4) = 1.0581

The calculator uses natural logs internally so very large products do not overflow before the nth root is taken.

Log breakdown

Step by step

ValueNatural logRunning geometric mean
1.180.171.18
0.92-0.081.04
1.110.11.06
1.040.041.06
← All Statistics calculators

Means & Averages

Geometric mean calculator for growth factors, ratios, returns, and compound averages

A geometric mean calculator multiplies n positive values together and takes the nth root of the product. This page also explains the main assumptions behind the geometric mean calculator for growth factors, ratios, returns, and compound averages result, highlights the supporting figures shown by the calculator, and helps the reader use the estimate without overstating what a quick online tool can prove.

What the geometric mean is

Given n positive values x₁, x₂, …, xₙ, the geometric mean is GM = (x₁ × x₂ × … × xₙ)^(1/n). For two values it is simply the square root of their product: GM(2, 8) = √(2 × 8) = √16 = 4.

The geometric mean is always less than or equal to the arithmetic mean (AM–GM inequality), with equality only when all values are identical. This property ensures the geometric mean never overstates the central value of a skewed multiplicative dataset.

The calculator is designed for the common search intent behind calculate geometric mean, geometric average calculator, and geometric mean with steps queries. It accepts comma-separated, space-separated, semicolon-separated, tab-separated, or line-break-separated positive values, then reports the geometric mean, arithmetic mean, compound-equivalent product, minimum, maximum, count, and log calculation table.

How to calculate geometric mean step by step

To calculate geometric mean by hand, first confirm that every value is positive. Next multiply all the values together, count how many values there are, and take the nth root of the product. For 2 and 8, the product is 16 and the square root is 4. For 1, 2, and 4, the product is 8 and the cube root is 2.

For longer datasets, the same product-and-root idea can become hard to audit because the product may be extremely large or extremely small. The calculator therefore shows the equivalent log method: take ln(x) for each value, average those log values, then exponentiate the average. That produces the same geometric average while keeping the intermediate calculation numerically stable.

The running geometric mean table is useful for checking how each new value changes the compound average. If a value below 1 appears in a series of growth factors, it lowers the running geometric mean because it represents a multiplicative decline.

GM = product(x)^(1/n)

Multiply the positive values and take the nth root.

GM = exp(average(ln(x)))

Equivalent log-sum method used by the calculator.

Growth rates and investment returns

Suppose an investment grows by 50% one year (+1.5×) and shrinks by 33% the next (×0.67). The arithmetic mean return is (1.5 + 0.67) / 2 ≈ 1.085, suggesting ~8.5% average growth per year. But $100 → $150 → $100.50 is barely breakeven. The geometric mean gives GM(1.5, 0.67) ≈ 1.001, or about 0.1% per year — the correct compound annual growth rate (CAGR).

Whenever the question is "what single rate, applied repeatedly, produces the same end result?", use the geometric mean. CAGR, average index returns, average population growth rates, and average inflation rates all use the geometric mean.

When using this page for returns, enter growth factors rather than raw percentage labels. An 8% gain is 1.08, a 6% loss is 0.94, and a flat period is 1.00. After calculating the geometric mean of those factors, subtract 1 if you want the average compounded return rate for one period.

Ratios, indices, and scale-normalized values

The geometric mean is also the correct average for ratios. If one lab reports a concentration 10× baseline and another reports 0.1× baseline, the arithmetic mean is (10 + 0.1) / 2 = 5.05×, which is clearly biased toward the high outlier. The geometric mean is √(10 × 0.1) = √1 = 1×, correctly identifying a neutral centre. This is why many index-number calculations, including geometric mean price indices, use the geometric mean.

A geometric average is especially helpful when proportional moves should offset. Doubling and halving are symmetric multiplicative changes, so 0.5 and 2 average to 1 by the geometric mean. A simple arithmetic average would report 1.25 and imply a positive centre where the proportional changes actually cancel.

Geometric mean vs arithmetic mean vs harmonic mean

A common question is whether to use a geometric mean calculator, a normal average calculator, or a harmonic mean calculator. The data type decides. Use the arithmetic mean for additive quantities, the geometric mean for multiplicative factors, and the harmonic mean for rates or ratios measured over the same denominator.

For positive values, harmonic mean <= geometric mean <= arithmetic mean. This calculator shows the arithmetic mean beside the geometric mean because the gap is often the practical warning sign. A small gap means the values are fairly balanced; a large gap means volatility, skew, or a wide ratio spread would make the arithmetic average too optimistic for compound interpretation.

Computational note: log-sum method

Direct multiplication of many numbers can overflow floating-point precision. This calculator uses the log-sum method: GM = exp(mean(ln(xᵢ))). The logarithm converts multiplication to addition, making it numerically stable even for very large or very small values.

All values must be strictly positive — zero and negative values are undefined for the geometric mean because the logarithm is only defined for positive numbers. If your dataset includes zero, negative values, signed returns below -100%, or measurements that are not ratio-scale, choose another statistic or transform the data before using the result.

The calculator does not silently ignore invalid tokens. If text, blanks that are not separators, zeros, or negative numbers appear in the input, it shows a warning instead of returning a plausible-looking result from a partial dataset.

Worked example: average compound growth factor

Take the growth factors 1.18, 0.92, 1.11, and 1.04. Their arithmetic mean is 1.0625, but the geometric mean is slightly lower because the 0.92 decline reduces the compounding base. The geometric mean answers the question: what one repeated factor would produce the same total path after four periods?

Using the log method, the calculator adds ln(1.18), ln(0.92), ln(1.11), and ln(1.04), divides by 4, and exponentiates the result. The output is the average compound factor per period. Subtracting 1 turns that factor into the average compounded growth rate.

Frequently asked questions

Why can the geometric mean not be used with zero or negative values?

The logarithm of zero is undefined (negative infinity), and the logarithm of a negative number is not a real number. Even without the log method, multiplying an even number of negative values yields a positive product that has no meaningful relationship to the original data. The geometric mean is defined only for positive values.

When should I use the geometric mean instead of the arithmetic mean?

Use the geometric mean when your values are growth factors (returns, rates, ratios) or when the values span several orders of magnitude and you want a "typical" value that is not dominated by large outliers. Use the arithmetic mean when values are additive — sums of items, average counts, temperatures.

What is CAGR and how does it relate to the geometric mean?

CAGR (Compound Annual Growth Rate) is the geometric mean of annual growth factors. For example, if an investment grows by factors r₁, r₂, …, rₙ over n years, the CAGR = GM(r₁, r₂, …, rₙ) − 1. It is the single constant rate that would produce the same total return.

Is the geometric mean the same as the median?

No. The median is the middle value when data is sorted. The geometric mean is a calculated value based on the product of all values. They can be similar for lognormal distributions but are conceptually and numerically distinct.

How do I calculate geometric mean with steps?

Confirm that every input is positive, multiply the values together, count the values, and take the nth root of the product. For longer datasets, use the equivalent log method: average the natural logs of the values and then exponentiate that average. The calculator shows that log-sum method and a running geometric mean table.

What should I enter for investment returns?

Enter return factors, not raw percentage text. A 12% gain is 1.12, a 5% loss is 0.95, and a flat period is 1.00. The geometric mean of those factors is the average compound factor per period; subtract 1 to convert it back to a compounded return rate.

Why is the geometric mean usually lower than the arithmetic mean?

The arithmetic mean averages values additively, while the geometric mean averages multiplicatively. When values vary, especially when a sequence includes losses or small ratios, compounding drag pulls the geometric mean below the arithmetic mean. They are equal only when every positive input is identical.

Can the geometric mean calculator handle very large numbers?

Yes for ordinary analytical use. The calculator uses the log-sum method so it does not need to multiply every value into one huge product before taking the root. Extremely large or extremely small floating-point values can still hit JavaScript number limits, but the log approach is much more stable than direct multiplication.

Also in Statistics

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.