Weighted Geometric Mean Calculator

Calculate a weighted geometric mean for positive ratios, growth factors, and other multiplicative data—with a contribution table and clear steps.

Weighted Geometric Mean Calculator workspace

Input

Enter values and weights

Enter positive values and their nonnegative weights in matching order. Fractions and decimals are supported.

Use the same order as the values. A zero weight excludes an observation; all weights cannot be zero.

Examples
Weighted geometric mean
8
Gw=exp⁡(∑wiln⁡xi∑wi)≈8G_w=\exp\left(\frac{\sum w_i\ln x_i}{\sum w_i}\right)\approx8
Values
3
Total weight
4
Weighted log sum
8.317766166719343713006785457498119
Weighted result among the values◆ 8
2832MeanCircle size reflects normalized weight; the diamond marks the mean.
Working

Step-by-step calculation

  1. 1

    Multiply each natural logarithm by its weight and add: Σwᵢ ln(xᵢ) = 8.317766166719343713006785457498119.

  2. 2

    Add the weights: Σwᵢ = 4.

  3. 3

    Divide the weighted log sum by the total weight and exponentiate: G_w = exp(8.317766166719343713006785457498119 / 4) = 8.

Inspect weighted contributions 3 rows
Weighted geometric mean calculation terms
iValue xᵢWeight wᵢWeight shareWeighted term
1210.250.6931471805599453094172321214581766
2820.54.158883083359671856503392728749059
33210.253.465735902799726547086160607290883
Totals418.317766166719343713006785457498119
At a glance

Why use this calculator?

Relative change

Combine positive ratios and growth factors using a multiplicative average.

Explicit influence

Give each observation a weight and see its share of the total weight.

Auditable result

Inspect every weighted logarithm and the exponentiation step.

Overview

What is a weighted geometric mean calculator?

The weighted geometric mean is a multiplicative average in which each positive observation contributes according to its nonnegative weight. It is found by averaging the natural logarithms using the weights, then exponentiating. This makes it suitable for combining ratios or growth factors when relative change is meaningful.

Important terms

Value xᵢ
The ith strictly positive observation, ratio, or factor.
Weight wᵢ
A nonnegative influence assigned to xᵢ; a zero weight excludes that observation.
Total weight
The sum of all weights, used to normalize the weighted contributions.
Log contribution
The product wᵢ ln(xᵢ), whose sum determines the weighted geometric mean.

When this method is useful

  • Combine positive growth factors over periods with unequal importance.
  • Summarize ratios or index values where multiplicative change matters.
  • Average positive relative scores when their weights reflect exposure or relevance.
  • Compare weighted geometric and arithmetic means to understand additive versus multiplicative summaries.
Formula

Formula and variables

Gw=exp⁡(∑i=1nwiln⁡(xi)∑i=1nwi)=∏i=1nxiwi/(∑j=1nwj)G_w=\exp\left(\frac{\sum_{i=1}^{n}w_i\ln(x_i)}{\sum_{i=1}^{n}w_i}\right)=\prod_{i=1}^{n}x_i^{w_i/\left(\sum_{j=1}^{n}w_j\right)}
G_w
weighted geometric mean
xᵢ
ith positive value
wᵢ
ith nonnegative weight
Σwᵢ
positive total weight

Normalize each weight by the total, multiply the corresponding logarithm by that share, add the terms, and exponentiate. The contribution table displays the weighted log terms and normalized shares.

Domain note: Each value must be positive and finite; weights must be finite and nonnegative, at least one weight must be positive, and the value and weight lists must have the same length. A zero-weight value has no influence.

How it works

How to use this calculator

  1. 1

    Enter positive values and a matching weight for each value.

  2. 2

    Add the weights and calculate each weighted natural-log term wᵢ ln(xᵢ).

  3. 3

    Divide the sum of weighted logs by the total weight.

  4. 4

    Exponentiate that weighted average log to obtain the weighted geometric mean.

Worked examples

Step-by-step examples

Example 1

Problem: Find the weighted geometric mean of 2, 8, and 32 with weights 1, 2, and 1.

Substitution: G_w = exp((1 ln 2 + 2 ln 8 + 1 ln 32) / 4)

Result: 8

The middle value receives twice the influence of either other value; the weighted multiplicative center is 8.

Example 2

Problem: Combine growth factors 1.02, 1.08, and 1.15 with weights 3, 2, and 1.

Substitution: exp((3 ln 1.02 + 2 ln 1.08 + ln 1.15) / 6)

Result: ≈ 1.0606

The combined factor is about 1.0606, or approximately 6.06% growth per equally weighted unit represented by the normalized weights.

Example 3

Problem: Use values 2 and 50 with weights 1 and 0.

Substitution: exp((ln 2 + 0·ln 50) / 1)

Result: 2

A zero weight excludes its paired observation from the average.

Method knowledge

Rules, edge cases, and related ideas

Weight shares drive influence

Only the ratios wᵢ/Σwᵢ matter; scaling every weight equally does not change the result.

Multiplicative rather than additive

Logarithms turn products and ratios into sums, which is why geometric averaging fits relative changes.

Edge cases and limitations

  • A single positive value with a positive weight returns that value.
  • A zero weight removes that observation from the result.
  • All weights cannot be zero because the formula would divide by zero.
  • Zero and negative values are excluded because their real logarithms are undefined.

How this differs from a related concept

The weighted arithmetic mean averages values on an additive scale. The weighted geometric mean averages their logarithms and is more appropriate when proportional change or multiplication is central to the problem.

Interpretation

Understand the result

The weighted geometric mean lies between the smallest and largest positive values with nonzero weights. Multiplying all weights by the same positive constant leaves the answer unchanged because only their proportions matter. Use it for multiplicative scales, not ordinary additive measurements by default.

Common mistakes

  • Using the geometric mean for values that can be zero or negative.
  • Entering weights in a different order from their values.
  • Treating percentages as growth factors without converting, for example, 8% growth to 1.08.
  • Assuming the weights must sum to one; the calculator normalizes any nonnegative weights with a positive total.

Frequently asked questions

How do I calculate a weighted geometric mean?

Multiply each natural logarithm by its weight, add the terms, divide by the total weight, then exponentiate.

Do my weights need to add up to 1?

No. Any nonnegative weights work if their total is positive; the formula normalizes them by their sum.

Can a value be zero or negative?

No. The standard real-valued geometric mean requires strictly positive values because it uses natural logarithms.

What does a zero weight do?

It excludes the paired value from the weighted average. The value must still be entered in the matching list.

Does multiplying every weight by 10 change the result?

No. All weight shares remain the same, so the weighted mean is unchanged.

References & technical sources

Keep calculating

Related calculators