72+ Local Tools Available
100% Browser Execution (No Uploads)
Zero Latency Instant Output
100% Private & Secure
Calculator & Math Client Local

Geometric & Harmonic Mean Calculator

Calculate the Geometric Mean for multiplicative processes (investment returns, population growth) and the Harmonic Mean for rates and speed over fixed distances. Compare with the Arithmetic Mean (AGHA \ge G \ge H) and review detailed step-by-step mathematical derivations in real time.

Dataset Input

Enter a list of positive numbers separated by commas, spaces, or newlines.

Pythagorean Means Results

Geometric Mean
18.6396

Representative value for compounding percentages (portfolio CAGR, house price appreciation)

G=i=1nxin=(x1××xn)1/nG = \sqrt[n]{\prod_{i=1}^n x_i} = (x_1 \times \dots \times x_n)^{1/n}
Harmonic Mean
17.2414

Representative value for fixed-baseline rates (commute round-trip speed, dollar-cost averaging)

H=ni=1n1xi=n1x1++1xnH = \frac{n}{\sum_{i=1}^n \frac{1}{x_i}} = \frac{n}{\frac{1}{x_1} + \dots + \frac{1}{x_n}}

Pythagorean Means Comparison

A ≥ G ≥ H

For all positive datasets, the inequality Arithmetic (A) ≥ Geometric (G) ≥ Harmonic (H) strictly holds, with equality only when all numbers are equal.

Arithmetic Mean (A)20.0000
Geometric Mean (G)18.6396(93.2%)
Harmonic Mean (H)17.2414(86.2%)
Sample Size (n)
5
Sum (Σx)
100.0
Product (Πx)
2,250,000.0
Reciprocal Sum (Σ(1/x))
0.290
Minimum (Min)
10.0
Maximum (Max)
30.0

Step-by-Step Mathematical Derivations

1. Arithmetic Mean (A)
A=100.005=20.0000A = \frac{100.00}{5} = 20.0000
2. Geometric Mean (G)
G=(2,250,000.00)1/5=exp(14.62645)=18.6396G = \left(2,250,000.00\right)^{1/5} = \exp\left(\frac{14.6264}{5}\right) = 18.6396
3. Harmonic Mean (H)
H=50.2900=17.2414H = \frac{5}{0.2900} = 17.2414
Client-Side 100%

Private & Local Processing

All numbers and dataset calculations run completely inside your browser sandbox in under 0.001ms. Zero server logs or external telemetry.

Mean Selection Guidelines

  • Use Geometric Mean for compounding percentages, investment CAGR, inflation indices, and growth factors.
  • Use Harmonic Mean for average speed over equal distances, parallel electrical resistance, and machine learning F1-scores.
  • Values less than or equal to zero (0 or negative) are automatically excluded as harmonic and geometric means are undefined for non-positives.
  • Click the Copy button to export formatted calculation summaries directly to your clipboard.
Statistical Theory & Applications

Principles of the Three Pythagorean Means and Practical Applications

The ancient Pythagorean school established three classical ways to calculate the central tendency of a data set: Arithmetic Mean, Geometric Mean, and Harmonic Mean.

While the standard Arithmetic Mean works well for additive data, applying it to multiplicative data (like compound investment yields) or rate data (like travel speed) leads to massive statistical errors. This guide outlines the mathematical foundation and proper real-world use cases for each mean.

1Triple Pythagorean Mean Engine

Computes Arithmetic, Geometric, and Harmonic means concurrently from a single dataset for immediate side-by-side analysis.

2Rigorous LaTeX Derivations

Presents clear nn-th root product formulas and reciprocal summation steps for full mathematical transparency.

3Relative Proportional Visualizer

Dynamic comparison bars depicting the exact percentage magnitudes of GG and HH relative to AA.

Summary of the Three Pythagorean Means Formulas

Mean TypeMathematical FormulaApplicable Data StructureReal-World Applications
Arithmetic (A)A=1ni=1nxiA = \frac{1}{n} \sum_{i=1}^n x_iIndependent, additive quantitiesExam test averages, monthly temperature, per capita GDP
Geometric (G)G=i=1nxin=(x1x2xn)1/nG = \sqrt[n]{\prod_{i=1}^n x_i} = (x_1 x_2 \dots x_n)^{1/n}Compounding, multiplicative scaleCompound Annual Growth Rate (CAGR), population growth, inflation indices
Harmonic (H)H=ni=1n1xi=n1x1++1xnH = \frac{n}{\sum_{i=1}^n \frac{1}{x_i}} = \frac{n}{\frac{1}{x_1} + \dots + \frac{1}{x_n}}Rates and speed over fixed distancesRound-trip speed, parallel resistance, machine learning F1-Score

1. Arithmetic vs Geometric Mean: The Illusion of Investment Returns and Salary Raises

Suppose your pocket money or salary receives a +100%+100\% (2x) raise in year 1, but suffers a 50%-50\% cut (halved) in year 2.
Using a simple Arithmetic Mean, (100+(50))÷2=+25%(100 + (-50)) \div 2 = +25\%, creating the false impression of an impressive 25%25\% annual gain. However, if your starting salary was $10,000, it rose to $20,000 in year 1 and dropped straight back to $10,000 in year 2—yielding an actual net growth rate of exactly 0%0\%.
Whenever data compounds over time (investment portfolio CAGR, house price appreciation, population growth), only the Geometric Mean (2.0×0.5=1.0\sqrt{2.0 \times 0.5} = 1.0) reveals the true annualized growth rate.

2. Harmonic Mean: The Commute Speed Puzzle and Stock Dollar-Cost Averaging

If you drive to work along an open highway at 100 mph100\text{ mph}, but return home in heavy rush-hour traffic at 20 mph20\text{ mph}, what is your overall round-trip average speed?
Many people intuitively guess (100+20)÷2=60 mph(100 + 20) \div 2 = 60\text{ mph}, but the real average speed is actually only 33.3 mph33.3\text{ mph}! You spent 5 times longer stuck driving at 20 mph20\text{ mph} than cruising at 100 mph100\text{ mph}.
Whenever you travel equal distances at varying speeds, or invest equal dollar amounts (e.g. $100 monthly) to buy shares at different prices, the true average unit cost or speed is computed using the Harmonic Mean.

3. Arithmetic Mean: Splitting the Restaurant Bill and Test Score Averages

When 4 friends split a $120 dinner bill equally ($120 ÷4=$30\div 4 = \$30 per person), or when combining test scores of 90, 80, and 70 to find the class average ((90+80+70)÷3=80(90+80+70) \div 3 = 80), the Arithmetic Mean is the gold standard.
The Arithmetic Mean is ideal whenever observations are independent and additive, summing linearly to form a total quantity to be divided equally into nn equal portions.

4. The Pythagorean Inequality (A >= G >= H) and Data Imbalance

For any positive data set, the three means strictly obey the inequality Arithmetic (A) \ge Geometric (G) \ge Harmonic (H).
When all data points are nearly equal, the three means converge. However, as variance and extreme outliers increase, the Geometric and Harmonic means are drawn sharply downward toward the lowest numbers.
Only when every number in the dataset is identical does A=G=HA = G = H. Checking the spread between AA and HH provides an instant mental gauge of how skewed your data is.

5. Three-Second Real-World Mean Selection Guide

Use Arithmetic Mean (A): When adding values to divide into equal slices (splitting dinner checks, test grade averages, monthly expense budgets, average heights).
Use Geometric Mean (G): When multiplying percentages or compounding growth rates (stock portfolio CAGR, real estate appreciation, bacterial colony multiplication).
Use Harmonic Mean (H): When calculating speed over fixed distances or average unit purchase prices with fixed budgets (commute travel speed, dollar-cost averaging, multi-worker task completion rates).

Frequently Asked Questions (FAQ)

Q.Why are negative numbers and zero disallowed in geometric and harmonic means?

The Geometric Mean requires computing the nn-th root of a product; negative numbers create imaginary or complex values for even roots. The Harmonic Mean requires taking reciprocals (1/x1/x), which is mathematically undefined for zero (1/01/0). Thus, both are strictly defined for positive numbers (x>0x > 0).

Q.What is the special relationship between Pythagorean means for two numbers?

For two positive numbers aa and bb, the geometric mean satisfies G2=A×HG^2 = A \times H, meaning the Geometric Mean is the exact geometric mean of the Arithmetic and Harmonic means.

Q.What delimiters can I use in the input box?

You can paste or type numbers separated by commas, spaces, tabs, or newlines. The parser automatically extracts and validates positive numbers.

Q.Is my data transmitted or stored on any server?

No. Toolbase performs all statistical calculations 100% locally in your web browser. No data ever leaves your device.