The Altitude to the Hypotenuse and the Geometric Mean Relations
See why one altitude splits a right triangle into two similar copies, and use h² = pq, a² = pc and b² = qc with confidence.
Key takeaways
- The altitude to the hypotenuse creates two small right triangles that are each similar to the whole triangle.
- The altitude is the geometric mean of the two hypotenuse pieces: h² = pq.
- Each leg is the geometric mean of the whole hypotenuse and the piece next to that leg: a² = pc and b² = qc.
- Adding the two leg equations proves the Pythagorean theorem in one line.
- The altitude also equals ab/c, because the area can be computed from either pair of perpendicular lengths.
Draw the altitude from the right angle of a right triangle down to the hypotenuse. It splits the triangle into two smaller triangles, and both are similar to the original. From that single fact come three useful equations: h² = pq, a² = pc and b² = qc.
Here h is the altitude, c is the hypotenuse, p and q are the two pieces the altitude cuts it into, and a and b are the legs next to p and q. This article shows where each equation comes from and how to use it without mixing up the letters.
Setting up the picture
Label the triangle ABC with the right angle at C. The hypotenuse is AB, with length c. Let a be the length of BC and b the length of AC.
From C, drop a perpendicular to AB and call its foot D. The segment CD has length h. It divides the hypotenuse into BD, of length p, and DA, of length q, so p + q = c.
Because both acute angles at A and B are less than 90°, the foot D always lands between A and B. This is special to the altitude from the largest angle; in an obtuse triangle, some altitudes land outside the side.
Why all three triangles are similar
Triangle BDC has a right angle at D and shares angle B with the whole triangle. Two matching angles are enough, so BDC is similar to BCA.
Triangle CDA has a right angle at D and shares angle A with the whole triangle. So CDA is also similar to BCA.
Since both small triangles are similar to the big one, they are similar to each other. You can confirm it with angles: angle BCD equals 90° minus angle B, which is angle A.
The only difficulty is matching sides correctly. Lining the vertices up in a table helps.
| Triangle | Vertices in matching order | Hypotenuse | Leg opposite angle A | Leg opposite angle B |
|---|---|---|---|---|
| Whole, ABC | A, B, right angle C | c | a | b |
| Small, CBD | C, B, right angle D | a | p | h |
| Small, ACD | A, C, right angle D | b | h | q |
Corresponding entries in any two columns are in the same ratio from row to row. The habit is worth building, and careful matching of corresponding sides prevents most wrong answers.
The three relations
First compare the two small triangles. In CBD the legs are p (opposite angle A) and h. In ACD they are h and q.
p / h = h / q (corresponding legs of the two small triangles)
h² = p·q (cross-multiply) Next compare the small triangle CBD with the whole one. Their hypotenuses are a and c, and their legs opposite angle A are p and a.
p / a = a / c
a² = p·c The same comparison on the other side gives the third equation.
q / b = b / c
b² = q·c What "geometric mean" means
The geometric mean of two positive numbers m and n is √(mn). It is the side of a square with the same area as an m by n rectangle.
So h² = pq says the altitude is the geometric mean of p and q. For pieces of 4 and 9, the altitude is √36 = 6. The ordinary average of 4 and 9 is 6.5, a little larger.
That gap is general. The geometric mean never exceeds the ordinary (arithmetic) mean, and the picture shows why. The midpoint of the hypotenuse is c/2 from the right-angle vertex, and the altitude is the shortest segment from that vertex to the hypotenuse. So h ≤ c/2, which reads √(pq) ≤ (p + q)/2. Equality holds only when p = q.
Worked examples
Given both pieces. Let p = 4 and q = 9, so c = 13. Then h = 6, a = √(4 × 13) = √52 = 2√13, and b = √(9 × 13) = √117 = 3√13. Check: 52 + 117 = 169 = 13².
Given the legs. Let a = 15 and b = 20. The hypotenuse is √(225 + 400) = 25. Then p = a²/c = 225/25 = 9 and q = b²/c = 400/25 = 16. Their sum is 25, as it should be, and h = √(9 × 16) = 12.
Given a leg and its piece. Suppose a = 6 and p = 3. From a² = pc, c = 36/3 = 12, so q = 9. Then h = √27 = 3√3 and b = √(9 × 12) = √108 = 6√3. Notice that a is half of c, so this is a 30-60-90 triangle.
A habit worth keeping: pick the equation that contains your two known quantities and one unknown. You rarely need to set up similarity from scratch.
The area shortcut for the altitude
The area of the triangle is ab/2, using the legs as base and height. It is also ch/2, using the hypotenuse as base. Setting them equal gives ab = ch, so h = ab/c.
For the 15-20-25 triangle, h = 300/25 = 12, matching the earlier result.
Squaring and rearranging this leads to a neat reciprocal form: 1/h² = 1/a² + 1/b². To check it, 1/225 + 1/400 = 16/3600 + 9/3600 = 25/3600 = 1/144.
A proof of Pythagoras for free
Add the two leg equations.
a² + b² = p·c + q·c
a² + b² = (p + q)·c
a² + b² = c² That is the whole theorem. Nothing in the similarity argument assumed it, so there is no circular reasoning. The same idea is developed at length in the similar-triangle proof of Pythagoras. Euclid's own windmill proof also revolves around this altitude: extended into the square on the hypotenuse, it cuts that square into rectangles of areas pc and qc.
What the pieces say about the legs
Divide the equation for one leg by the equation for the other. The hypotenuse cancels.
a² / b² = (p·c) / (q·c) = p / q So the altitude cuts the hypotenuse in the ratio of the squares of the legs, not the ratio of the legs themselves. Legs in the ratio 1 : 2 produce pieces in the ratio 1 : 4. Legs in the ratio 3 : 4 produce pieces in the ratio 9 : 16, as the 15-20-25 example showed.
Areas follow the same pattern. The two small triangles share the height h, so their areas are in the ratio p : q, which equals a² : b². That agrees with the rule that similar figures have areas proportional to the squares of corresponding sides, here the hypotenuses a and b.
In an isosceles right triangle, a = b, so p = q. The altitude then lands at the midpoint of the hypotenuse, and h equals half of c.
Reading it backward
The relation h² = pq also works as a test. Suppose a triangle has an altitude from C landing at D between A and B, and you measure CD² = AD × DB. Is the angle at C right?
It is. Compute the two slanted sides with the Pythagorean theorem in the small triangles.
a² + b² = (p² + h²) + (q² + h²)
= p² + q² + 2h²
= p² + q² + 2pq (using h² = pq)
= (p + q)² = c² By the converse of the Pythagorean theorem, the angle at C is 90°. The condition that D lies between A and B matters, since a foot outside the segment gives a different sum for the base.
As a numerical case, take pieces of 2 and 8 with height 4. The sides are √20 and √80, whose squares add to 100, the square of the base 10.
Constructing a square root
The relation h² = pq lets you build square roots with a straightedge and compass. To construct √7, draw a segment made of pieces of length 1 and 7. Draw a semicircle on the whole segment of length 8. Raise a perpendicular where the two pieces join.
The point where the perpendicular meets the semicircle forms a right angle with the ends of the diameter, by Thales' theorem about semicircles. So the perpendicular is an altitude to a hypotenuse, and its length h satisfies h² = 1 × 7. The same method turns any rectangle into an equal-area square, as described in squaring a rectangle with one semicircle.
An indirect measurement
These relations can find a distance you cannot pace out. Say you hold a square corner at a point C, a height h above point D on level ground, and sight along its two arms to two ground points A and B on opposite sides of D.
The lines of sight make a right angle at your corner C, and CD is vertical, so it is the altitude to the segment AB. If CD = 1.5 m and AD = 0.9 m, then DB = h²/AD = 2.25/0.9 = 2.5 m. The whole ground distance AB is 3.4 m. The method is only as good as your square corner, your plumb line and the flatness of the ground, so treat the result as an estimate.
Common mistakes
- Pairing a leg with the far piece. In a² = pc, the piece p must touch leg a.
- Writing a² = p·q. Legs use the whole hypotenuse; only the altitude uses the two pieces together.
- Using these on a non-right triangle. Without the right angle at C, the small triangles are not similar to the whole.
- Using the arithmetic mean for h. The altitude over pieces 2 and 8 is 4, not 5.
- Forgetting to check. p + q must equal c, and a² + b² must equal c².
If you solve a problem and one check fails, the usual cause is a swapped pair of letters. Redraw the two small triangles separately, turned to the same orientation as the large one, and the correct pairing is easy to read.