Do the values add? Use arithmetic mean
Scores, counts, distances, and temperatures combine by addition. The arithmetic mean preserves the total: AM × n = sum of all values.
Right-triangle proofs & spatial geometry
The geometric mean appears as a physical length in right-triangle geometry, not only as a statistic. The altitude theorem states that the altitude drawn from the right angle to the hypotenuse equals the geometric mean of the two hypotenuse segments: h = √(p × q). This hub covers the proof, the calculator, and real-world applications in screen design, surveying, and optics.
Each tool below applies a distinct formula. Read the eyebrow label to confirm the formula matches your data before opening the calculator.
Each mean is correct for a specific data structure. Using the wrong one produces a number that looks reasonable but answers the wrong question.
Scores, counts, distances, and temperatures combine by addition. The arithmetic mean preserves the total: AM × n = sum of all values.
Growth factors, return indexes, and ratios combine by multiplication. Geometric mean gives the single factor that, applied n times, reproduces the same product.
Speeds over equal distances, prices per equal budget, and output rates per equal workload require harmonic mean. It weights slower rates more because they consume more time or resource.
Each row below shows a real situation, the correct metric, and why a different metric would give a wrong answer.
| Situation | Input | Best next move | Why |
|---|---|---|---|
| Average exam score across a class | 72, 80, 88, 96 | Use arithmetic mean → 84 | Scores are additive; AM preserves the class total and each student's equal weight. |
| Average annual investment return over 4 years | Return factors: 1.08, 0.92, 1.15, 1.06 | Use geometric mean → 1.0494 (4.94%/yr) | Returns compound; AM would give 5.25%/yr but overstates the actual ending value. |
| Average speed on a round trip | 30 mph going, 60 mph returning, same distance | Use harmonic mean → 40 mph | Equal distance at unequal speeds; AM gives 45 mph but would predict the wrong travel time. |
Draw right triangle ABC with the right angle at C and hypotenuse AB.
Drop the altitude CD from C perpendicular to AB, creating segments AD = p and DB = q.
Apply the similarity rule: triangle ACD ~ triangle CDB ~ triangle ACB.
Write the proportion CD/AD = DB/CD, which simplifies to h/p = q/h.
Cross-multiply to get h² = p × q, then take the square root: h = √(p × q).
Right triangle with altitude dividing the hypotenuse into p = 4 and q = 16.
h = √(4 × 16) = √64 = 8. Full hypotenuse = p + q = 20. Segment ratio p:q = 1:4.
The altitude h = 8, which is also the geometric mean of 4 and 16.
This is the same result as the geometric mean formula in statistics: 8 × 8 = 64 = 4 × 16. The formula works as a length because both quantities are in the same linear unit.
The same dataset produces different values for arithmetic, geometric, and harmonic mean. Choosing the wrong one gives a numerically plausible but meaningless result.
| Method | Best for | Watch for | Example |
|---|---|---|---|
| Arithmetic mean | Additive values: test scores, temperatures, counts where each observation contributes equally. | One outlier shifts the result sharply. For 4, 9, 16, 100: AM = 32.25, far above most values. | Class scores 72, 80, 88, 96 → AM = 84. |
| Geometric mean | Multiplicative data: growth factors, index ratios, and return factors that compound across periods. | All values must be positive (or percentage returns above −100%). Zero collapses the product. | Annual return factors 1.06, 0.92, 1.15 → GM = 1.038, meaning 3.8% per year. |
| Harmonic mean | Rate data where the denominator is fixed: speeds over equal distances, prices per equal budget. | Wrong for equal-time rates. For 30 mph and 60 mph over equal distance: HM = 40, AM = 45. | 30 mph out, 60 mph back over equal distance → average speed = 40 mph. |
For dataset 4, 9, 16, 25: harmonic mean = 8.63, geometric mean = 10.95, arithmetic mean = 13.50. The gap signals whether data is additive, multiplicative, or rate-based.
The same four steps apply regardless of which mean you use. The formula in step 3 is the only thing that changes.
Determine whether values add, multiply, or are rates over equal units.
Check for zeros, negatives, mixed units, or missing values that would break the formula.
Apply AM = sum/n, GM = (product)^(1/n), or HM = n / Σ(1/xᵢ).
State what the result means in plain terms, including its unit and what it is compared against.
In statistics, geometric mean is the nth root of a product of n values — a dimensionless average. In geometry, the same formula produces a length because both p and q are in the same linear unit (e.g., centimeters), so √(p × q) is also in centimeters. The altitude theorem is the geometric proof that this formula yields a real, measurable line segment in a right triangle.
The altitude theorem is one of several spatial applications: (1) The ISO 216 paper standard (A4, A3) uses geometric mean to keep aspect ratio constant when sheets are halved. (2) The 16:9 video format is the geometric mean of 4:3 and 16:12 — it was chosen so it divides both common formats with minimal black bars. (3) Horizon distance d = √(2Rh) where R is Earth's radius and h is eye height uses the same square-root-of-product structure.
Most errors come from applying an additive formula to multiplicative data, or vice versa. The result looks plausible but is numerically incorrect.
Returns of 50% and −50% give AM = 0%, implying no change — but the actual result is a 25% loss. Use geometric mean: GM = √(1.5 × 0.5) − 1 = −13.4%.
30 mph and 60 mph gives AM = 45 mph, but the actual average speed is 40 mph (harmonic mean), because more time is spent at the slower pace.
A zero makes GM = 0 (product collapses) and HM undefined (division by zero). Treat zero returns as a factor of 1.00, not as the number 0.
It calculates the perpendicular distance from the right-angle vertex C to the hypotenuse AB, given the two sub-segments p = AD and q = DB. The formula h = √(p × q) comes directly from the similar-triangle proportion h/p = q/h.
The arithmetic mean of p and q gives the midpoint of AB, which is unrelated to the altitude. The geometric mean arises because the similarity proportion is multiplicative (h/p = q/h), not additive. For p = 4 and q = 16: AM = 10 (midpoint), GM = 8 (altitude). These are different quantities answering different geometric questions.
This is the AM-GM-HM inequality, proven from the Cauchy-Schwarz inequality. For dataset 4, 9, 16, 25: HM = 8.63, GM = 10.95, AM = 13.50. The three are equal only when all values are identical.
Yes. Once the page has loaded, all calculations run in your browser using JavaScript. No network connection is required to compute results.