GEOMEAN Function in LibreOffice Calc — Tested Examples
Work through LibreOffice GEOMEAN growth factors and equal-period rates. Check text, logical cells, negative inputs and Calc’s numeric-zero behavior with explicit examples.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: GEOMEAN averages multiplicative factors. For changes of 10%, -10% and 20%, use factors 1.1, 0.9 and 1.2; their mean factor is approximately 1.0591045006, or 5.91045006% per equal period.
Availability and version history
- Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
- Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
Returns the geometric mean of a sample. For 2 and 8, the geometric mean is the square root of 16: exactly 4. This kind of mean is suited to multiplicative factors and certain growth calculations.
Syntax and arguments
=GEOMEAN(Number1 [; Number2; ...])
Square brackets mark optional arguments; do not type the brackets or ellipsis. Separate arguments with semicolons (;).
| Argument | Explanation |
|---|---|
Number1 |
First number or cell range to include. |
Number2; ... |
Optional additional numbers or ranges; the Help documents up to 255 arguments. |
A single range can supply multiple observations for the geometric mean.
Worked examples
Example 1: Average multiplicative rates or growth factors
=GEOMEAN(2;8)
Expected result: 4. This value was returned in the LibreOffice Calc 25.2 test.
Example 2: Find the geometric mean of evenly spaced multiplicative observations
=GEOMEAN(2;4;8)
Expected result: 4. This value was returned in the LibreOffice Calc 25.2 test.
How to interpret the result
For 2 and 8, the geometric mean is the square root of 16: exactly 4. This kind of mean is suited to multiplicative factors and certain growth calculations.
Mistakes and troubleshooting
- Check inputs and assumptions: The positive growth-factor workflow below requires positive factors. Calc also has a numeric-zero exception, explained in detail below. Do not average raw percentage changes using GEOMEAN without converting them to growth factors first.
- Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
- Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.
Additional worked application and edge cases
Start with multiplicative factors
For positive observations x1 through xn, the geometric mean is the nth root of their product. Equivalently it is EXP(AVERAGE(LN(x1);...;LN(xn))). Every included observation has equal weight. The existing syntax permits one required argument and optional additional arguments up to the documented total of 255; a single range can contain many observations.
For a rate r expressed as a decimal, its multiplicative factor is 1+r. A 10% increase has factor 1.10, a 10% decrease has factor 0.90, and no change has factor 1.00. Do not pass the raw changes directly to GEOMEAN and expect an equal-period compound rate.
Stepwise example: three periods of activity
Suppose a synthetic activity index changes by 10%, -10% and 20% over three equal periods. Enter this worksheet:
| Row | A: period | B: change | C: factor formula | Expected C |
|---|---|---|---|---|
| 2 | Period 1 | 10% | =1+B2 |
1.1 |
| 3 | Period 2 | -10% | =1+B3 |
0.9 |
| 4 | Period 3 | 20% | =1+B4 |
1.2 |
- Enter the percentages in B2:B4 as actual numeric percentages, including the percent signs.
- Enter
=1+B2in C2 and fill through C4. - Enter
=GEOMEAN(C2:C4)in F2. The independently expected mean factor is approximately 1.0591045006. - Enter
=F2-1in F3 and format it as a percentage. The expected equal-period compound change is approximately 5.91045006%. - Enter
=PRODUCT(C2:C4)in F4. The expected total factor is 1.188.=F2^3independently reproduces approximately the same factor.
Starting from an index of 100, the three actual steps are 100 → 110 → 99 → 118.8. Applying the same mean factor three times also gives approximately 118.8. This makes the meaning of the geometric mean visible without confusing a per-period factor with total growth.
By comparison, =AVERAGE(B2:B4) is approximately 6.66666667%. That is the arithmetic mean of the changes and does not reproduce this compounded total when applied in each period. The geometric workflow assumes equal periods and does not automatically weight irregular durations or other observation weights.
Advanced application: make a log-based check visible
In D2 enter =LN(C2) and fill through D4. In F5 enter =EXP(AVERAGE(D2:D4)). For the positive factors above, the independent expected result is again approximately 1.0591045006. This separates each log contribution and provides a transparent second way to check the mean.
The reviewed Calc implementation accumulates logarithms for positive values and exponentiates their mean. This avoids explicitly building the full product for that positive-input path, but it does not remove every finite-precision or input-validation limit. The log-check workflow itself requires positive factors; LN cannot handle zero or negative factors as ordinary finite real values.
Mixed cells: references are not literal text arguments
For a separate fixture, enter numeric 2 in H2 and 8 in H3, enter text 32 in H4 using a leading apostrophe, and leave H5 genuinely empty. =GEOMEAN(H2:H5) has independently expected result 4, because referenced text and empty cells are ignored. The text 32 is not a third observation.
Enter =TRUE() in H6. Calc treats that numeric logical result as 1 in this aggregation, so =GEOMEAN(H2:H6) has source-derived expected result approximately 2.5198420998, the cube root of 2×8×1. Entering =FALSE() in H7 introduces a numeric zero, with the zero behavior explained below. Do not import another spreadsheet’s rule about ignoring referenced logical values into this Calc example.
A literal text argument is a different path: =GEOMEAN("pending") is an invalid parameter in the pinned implementation, not an ignored range cell. An all-text or empty range supplies no positive observations and does not produce a meaningful positive geometric mean. Diagnose missing numeric data rather than treating an error as a zero growth rate.
Calc’s numeric-zero exception and negative inputs
The reviewed Calc source explicitly returns 0 when it encounters a numeric zero, including the straightforward fixture =GEOMEAN(2;0;8) and the H2:H7 fixture above. This is why a blanket statement that every nonpositive input always raises an error would be inaccurate for this implementation.
Negative numeric values enter an invalid-argument branch; for example, =GEOMEAN(-2;8) has an error expectation. Do not generalize that into a promise about every mixture of zero, negative values and errors: the numeric-zero path returns early, and evaluation order or prior errors can affect what is observed. A returned zero is not proof that all remaining inputs were validated.
For the positive growth-factor workflow, validate every factor separately. A -100% change produces a zero factor, and a decrease beyond -100% produces a negative factor; either falls outside the positive-log workflow used above. If zero has a legitimate domain meaning, document it explicitly and inspect the other inputs instead of relying on a shortcut result as a validation check.
Source, errors and version scope
The primary Help documents ignoring text and empty cells inside a range. ScGeoMean in the pinned source shows the positive-log path, zero return, negative-input branch and direct-argument handling. Referenced numeric/formula values are visited by ScValueIterator, whose default text handling does not convert text to zero.
Source-derived type and zero examples are not new native executions and do not certify the same edge behavior in every release or other spreadsheet product. Keep source values numeric, inspect error cells, and check percentage versus factor units before changing the formula or hiding its errors.
Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.
Related functions
Tested version and primary reference
2 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.