How to Find a Geometric Mean When Values Are Negative
At a glance
- 1. Check the data
The standard geometric mean requires positive observations; a negative value makes its usual logarithmic formula undefined.
- 2. Identify the meaning
For growth rates, convert each rate to a positive growth factor before averaging.
- 3. Choose a suitable method
For other signed data, use a statistic suited to the question or state an explicit transformation.
- 4. Report the convention
A shifted or signed version is not the ordinary geometric mean, so explain exactly how you calculated it.
The standard geometric mean is designed for positive values. If your data include negatives, the usual logarithmic calculation does not apply, and a workaround can change what the result means. The right choice depends on why the values are negative: returns, signed measurements, and values that are negative only because of an arbitrary reference point need different treatment.
Why negative values cause a problem
For positive observations , the geometric mean is
The logarithm formula requires every to be positive. The product-and-root formula can sometimes produce a real number for negative inputs, but that does not make it the standard geometric mean of signed data. For example, a negative product has no real square root, while a product of two negative values is positive and has a positive square root. That positive result does not preserve the signs of the original observations.
The conventional geometric mean is most useful for quantities that combine multiplicatively, such as growth factors, ratios, and positive measurements. It is not a general-purpose average for any list of numbers.
Choose a method that matches the data
- Returns or growth rates: Convert each rate to its growth factor, average those factors geometrically, and convert back. This works when every factor is positive.
- Signed measurements: Use an arithmetic mean, median, or a model appropriate to the measurement. These retain the sign without inventing a geometric-mean convention.
- Values negative relative to a chosen baseline: A shift may be meaningful if the baseline has a real interpretation. Otherwise, the result depends on an arbitrary choice.
- Magnitude is the main interest: Calculate the geometric mean of the absolute values, and report sign information separately. This answers a magnitude question, not the signed-data question.
There is no universally accepted signed geometric mean for arbitrary real observations. If you define a custom version, state its formula and interpretation rather than presenting it as the ordinary geometric mean.
Worked example: averaging negative returns
Suppose an investment loses 20% in one period and gains 50% in the next. The returns are and , but the amounts by which the investment is multiplied are and .
The average per-period growth factor is
Subtract 1 to express that factor as a return: , or about 9.54% per period. This is the compound average return. It is not the geometric mean of the two negative-and-positive percentage numbers themselves.
The result checks out over both periods: , matching the total growth factor .
What if you shift the values?
A common suggestion is to add a constant to every observation to make them positive, calculate the geometric mean, and perhaps subtract the constant afterward. This can be done as a defined transformation, but it does not give a unique geometric mean: different constants produce different answers.
For example, take . Adding 5 gives , whose geometric mean is . Subtracting 5 gives about . Instead, adding 10 gives , whose geometric mean is ; subtracting 10 gives about . Both shifts make the inputs positive, yet they produce different adjusted answers. Use shifting only when the offset is meaningful and disclose it.
Common mistakes
- Taking logs of negative values: The real logarithm is undefined for . Taking the logarithm of absolute values changes the question to one about magnitudes.
- Using the root of the product without checking signs: A real root may exist for some lists, but existence alone does not make the result a suitable average.
- Adding an arbitrary constant: The geometric mean is not translation-invariant; the chosen shift affects the answer.
- Averaging percentage returns directly: Compound growth comes from multiplying growth factors, not averaging the return percentages geometrically. Convert each decimal return to first. A return of gives a zero factor, so the investment does not have a positive geometric growth factor across that period; returns below are not valid for an ordinary investment value that cannot fall below zero.
When in doubt, state what the numbers represent and what question the average should answer. That usually determines whether to use growth factors, a conventional signed-data statistic, or a clearly labeled transformed measure.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.