Right-triangle proofs & spatial geometry

Geometric Mean in Geometry: Altitude Theorem and Right-Triangle Proofs

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.

Best forRight-triangle homework, similarity proofs, and understanding why the geometric mean formula produces a physical length, not just a statistical summary. InputThe two hypotenuse segment lengths p and q (both must be positive). OutputAltitude h, full hypotenuse length (p + q), the segment ratio p:q, and a diagram connecting the result to the triangle.

Calculators in the Geometry section

Each tool below applies a distinct formula. Read the eyebrow label to confirm the formula matches your data before opening the calculator.

Three decision rules for choosing the right average

Each mean is correct for a specific data structure. Using the wrong one produces a number that looks reasonable but answers the wrong question.

Rule 1

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.

Rule 2

Do the values multiply? Use geometric mean

Growth factors, return indexes, and ratios combine by multiplication. Geometric mean gives the single factor that, applied n times, reproduces the same product.

Rule 3

Are values rates over equal units? Use harmonic mean

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.

Match the formula to the situation

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.

Step-by-step: how to use this calculator correctly

01

Draw right triangle ABC with the right angle at C and hypotenuse AB.

02

Drop the altitude CD from C perpendicular to AB, creating segments AD = p and DB = q.

03

Apply the similarity rule: triangle ACD ~ triangle CDB ~ triangle ACB.

04

Write the proportion CD/AD = DB/CD, which simplifies to h/p = q/h.

05

Cross-multiply to get h² = p × q, then take the square root: h = √(p × q).

Altitude from hypotenuse segments p = 4 and q = 16

Given

Right triangle with altitude dividing the hypotenuse into p = 4 and q = 16.

Work

h = √(4 × 16) = √64 = 8. Full hypotenuse = p + q = 20. Segment ratio p:q = 1:4.

Result

The altitude h = 8, which is also the geometric mean of 4 and 16.

Takeaway

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.

Which average fits your data: a decision guide

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.

HM ≤ GM ≤ AM: the same four numbers, three averages

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.

HM
8.63
GM
10.95
AM
13.5

Correct calculation flow for any mean

The same four steps apply regardless of which mean you use. The formula in step 3 is the only thing that changes.

01 Identify

Determine whether values add, multiply, or are rates over equal units.

02 Validate

Check for zeros, negatives, mixed units, or missing values that would break the formula.

03 Calculate

Apply AM = sum/n, GM = (product)^(1/n), or HM = n / Σ(1/xᵢ).

04 Interpret

State what the result means in plain terms, including its unit and what it is compared against.

Key facts before you calculate

Why the geometric mean appears as a physical length

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.

Other places geometric mean appears in spatial contexts

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.

Common mistakes that produce wrong averages

Most errors come from applying an additive formula to multiplicative data, or vice versa. The result looks plausible but is numerically incorrect.

Watch for

Averaging investment returns with arithmetic mean

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%.

Watch for

Averaging round-trip speed with arithmetic mean

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.

Watch for

Including a zero in geometric or harmonic mean

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.

Keep going

Continue with the Statistics hub, compare this result against a related method, or open a guide that covers the same data pattern in more depth.

Frequently asked questions

What exactly does the altitude theorem calculate?

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.

Why does the altitude equal the geometric mean and not the arithmetic mean?

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.

Why is HM ≤ GM ≤ AM for positive values?

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.

Are the calculators on this site usable offline?

Yes. Once the page has loaded, all calculations run in your browser using JavaScript. No network connection is required to compute results.