How the Similar Right Triangles Calculator Works
Take any right triangle and drop a perpendicular altitude from the right angle straight down to the hypotenuse. That single line splits the original triangle into two smaller right triangles. All three triangles — the original and the two smaller pieces — share the same three angles, just arranged differently, so all three are similar by AA (angle-angle) similarity. That similarity is what makes the side lengths line up into clean proportions, known as the geometric mean relationships, which this calculator solves for you.
Formula derivation from similarity
Label the right triangle ABC with the right angle at C, legs a = BC and b = AC, and hypotenuse c = AB. Let the altitude from C meet the hypotenuse at point D, creating altitude h = CD and splitting AB into two segments: p = AD (next to leg b) and q = DB (next to leg a). Because △ACD ~ △ABC ~ △CBD, their corresponding sides are proportional, which gives three standard results: the hypotenuse from the Pythagorean theorem, c = √(a² + b²); the altitude as the geometric mean of the two segments, h² = p·q so h = ab/c; and each leg as the geometric mean of the hypotenuse and its adjacent segment, a² = c·q and b² = c·p, so q = a²/c and p = b²/c. As a check, p + q always equals c, and a² + b² = c·q + c·p = c·(p+q) = c², recovering the Pythagorean theorem from the similarity argument alone.
Common mistakes
- Mixing up p and q: the segment p (next to leg b) is b²/c, and the segment q (next to leg a) is a²/c — it's easy to swap which segment belongs to which leg.
- Forgetting to square the altitude relationship: h² = p·q, not h = p·q; skipping the square root is a common slip.
- Mixing units: keep both legs in the same unit before calculating — convert inches to feet, or centimeters to meters, first.
Real-world applications
- Surveying and construction use the altitude-on-hypotenuse relationships to find distances that are hard to measure directly, such as the height of a structure from ground shadows and sightlines.
- Verifying that a corner is truly a right angle (framing, foundations, layout) often relies on the same similar-triangle proportions used here.
- These relationships are also the geometric foundation for trigonometric ratios and for later topics such as the geometric mean theorem and altitude-on-hypotenuse proofs in geometry courses.