Mean comparison

Geometric Mean vs Harmonic Mean: Factors vs Rates

Geometric mean (GM) is correct when values multiply: growth factors, fold changes, index relatives. Harmonic mean (HM) is correct when rates share an equal denominator: equal-distance speeds, equal-budget prices per unit. For 30 mph and 60 mph over equal distance: HM = 40 mph (correct travel time), GM = 42.43 mph (wrong), AM = 45 mph (wrong by 33 minutes per 200 km).

Short answer

Use geometric mean when each value multiplies the overall result: growth factors, ratios, normalized benchmarks. Use harmonic mean when each rate applies over the same distance, budget, or denominator — equal-distance speed averages, dollar-cost averaging, price-per-equal-unit comparisons.

Rate or factor? Three scenarios where GM and HM diverge

Each scenario shows which mean gives the numerically correct answer and why the other is wrong.

Example input 30 mph and 60 mph, 100 km each

HM is correct: 100/30 + 100/60 = 5 hrs = 200 km / 40 mph ✓. GM gives 200/42.43 = 4.72 hrs — 17 min too short.

GM = 42.43 mph 42.43 mph
HM = 40 mph ✓ 40 mph

Side-by-side comparison

Use this table when you need a fast, practical distinction before choosing a calculator.

Feature Option A Option B
Formula GM = (x₁×x₂×⋯×xₙ)^(1/n) HM = n / (1/x₁ + 1/x₂ + ⋯ + 1/xₙ)
What it preserves The product: GM^n equals the product of all values. The rate-over-equal-unit structure. Total distance / HM = actual travel time.
Best use Growth factors, ratios, fold changes, index relatives, normalized scores. Rates over equal distances or budgets: speeds, price-per-unit, fuel efficiency.
Ordering HM ≤ GM ≤ AM for all positive values. HM is always the lowest of the three Pythagorean means.
Input rule All positive values. All positive, non-zero values (zero makes 1/x undefined).

GM or HM: two decision questions

The denominator structure of the data determines the correct mean.

01 Equal denominator?

If each rate applies over the same distance, budget, or quantity → use HM.

02 Multiplicative factors?

If each value multiplies the overall result (growth, fold change, ratio) → use GM.

03 Equal time intervals?

If each rate is observed for the same duration → use AM, not HM.

04 Any zeros?

Neither GM nor HM handles zero. Review whether zero is a data error before calculating.

Examples that make the choice clear

Speed: HM is correct for equal-distance legs

100 km at 30 mph takes 3.33 hrs; 100 km at 60 mph takes 1.67 hrs. Total = 200 km in 5 hrs → average = 40 mph = HM(30,60) ✓. AM = 45 mph implies 4.44 hrs — 33 minutes too short. GM = 42.43 mph implies 4.72 hrs — 17 minutes too short.

Fold change: GM is correct for multiplicative biology data

Gene expression fold changes 1.2×, 1.5×, 2.0× multiply across conditions. GM = (1.2×1.5×2.0)^(1/3) = 3.6^(1/3) = 1.53×. This means a gene expressed 1.53× on average across the three conditions — the only value that, applied three times, gives 3.6× total ✓.

Common mistakes

These are the errors most likely to make the correct formula return a misleading answer.

Watch for

Using GM for equal-distance speed averages

30 mph and 60 mph → GM = 42.43 mph but actual average is 40 mph. For 200 km: GM predicts 4.72 hrs, actual = 5 hrs. Error = 17 minutes. Use HM for equal-distance speeds.

Watch for

Using HM for compound growth rates

Growth factors 1.06, 1.07, 1.08: HM = 1.0699. GM = 1.0700. GM^3 = 1.225 = actual product ✓. HM^3 = 1.224 — close but reproduces the wrong endpoint for compounding.

Watch for

Entering zero into harmonic mean

1/0 is undefined. If a speed is zero (vehicle stopped), that leg of the trip has infinite time — HM is undefined. Segment the trip differently or exclude the stopped interval with a documented reason.

Keep going

Use these paths when you want to calculate the result, compare a nearby method, or read a practical guide before choosing a formula.

Frequently asked questions

Is harmonic mean always lower than geometric mean?

Yes, for positive values: HM ≤ GM ≤ AM, with equality only when all values are identical. For {30, 60}: HM = 40, GM = 42.43, AM = 45. For {50, 50}: HM = GM = AM = 50.

Which mean should I use for average speed?

Use HM when distances are equal (each leg covers the same distance). Use AM when time is equal (each leg lasts the same duration). Example: 30 mph for 1 hr and 60 mph for 1 hr → AM = 45 mph (correct: 45 km/hr over 2 hrs = 90 km ✓). Same distances → HM = 40 mph.

Can GM and HM use negative values?

No, in standard use. GM requires all positive values (product must be positive for a real nth root). HM requires all positive, non-zero values (reciprocals must exist). For datasets with negatives, use AM or a signed-ratio approach specific to the domain.