Calculator: Geometric mean

Enter the labelled inputs to calculate: Mean.

Enter 1–2000 positive values from 10⁻¹⁰⁰ to 10¹⁰⁰, with up to 24 significant input digits. Separate values with commas, spaces or semicolons; use a decimal point. Invalid or nonpositive values reject the whole list. Geometric mean uses logarithms, arithmetic mean scales by the maximum, and harmonic mean by the minimum to avoid overflowing products or reciprocals. For positive data, H ≤ G ≤ A. Results use 12 significant digits; input order is immaterial.

Geometric mean
4
Arithmetic mean
—
Harmonic mean
—
Count
—

How the calculation works

G=exp[Σln(xᵢ)/n]; A=Σxᵢ/n; H=n/Σ(1/xᵢ); xᵢ>0

Enter 1–2000 positive values from 10⁻¹⁰⁰ to 10¹⁰⁰, with up to 24 significant input digits. Separate values with commas, spaces or semicolons; use a decimal point. Invalid or nonpositive values reject the whole list. Geometric mean uses logarithms, arithmetic mean scales by the maximum, and harmonic mean by the minimum to avoid overflowing products or reciprocals. For positive data, H ≤ G ≤ A. Results use 12 significant digits; input order is immaterial.

Frequently asked questions

How is the result calculated?

G=exp[Σln(xᵢ)/n]; A=Σxᵢ/n; H=n/Σ(1/xᵢ); xᵢ>0

What assumptions apply?

Enter 1–2000 positive values from 10⁻¹⁰⁰ to 10¹⁰⁰, with up to 24 significant input digits. Separate values with commas, spaces or semicolons; use a decimal point. Invalid or nonpositive values reject the whole list. Geometric mean uses logarithms, arithmetic mean scales by the maximum, and harmonic mean by the minimum to avoid overflowing products or reciprocals. For positive data, H ≤ G ≤ A. Results use 12 significant digits; input order is immaterial.

How precise are the displayed results?

Results are rounded to 12 significant digits. Rounding does not increase the accuracy of the input measurements.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Values (spaces or semicolons; decimal point) = 1 4 16
Geometric mean: 4
Arithmetic mean: 7
Harmonic mean: 2.28571428571
Count: 3
2
Values (spaces or semicolons; decimal point) = 1, 4, 16
Geometric mean: 4
Arithmetic mean: 7
Harmonic mean: 2.28571428571
Count: 3
3
Values (spaces or semicolons; decimal point) = 1;4;16
Geometric mean: 4
Arithmetic mean: 7
Harmonic mean: 2.28571428571
Count: 3
4
Values (spaces or semicolons; decimal point) = 1
Geometric mean: 1
Arithmetic mean: 1
Harmonic mean: 1
Count: 1
5
Values (spaces or semicolons; decimal point) = .1 .2 .3
Geometric mean: 0.181712059283
Arithmetic mean: 0.2
Harmonic mean: 0.163636363636
Count: 3
6
Values (spaces or semicolons; decimal point) = .1, .2, .3
Geometric mean: 0.181712059283
Arithmetic mean: 0.2
Harmonic mean: 0.163636363636
Count: 3

How we test our calculators →

Also try:

Back to category →