Understanding right triangles
A right triangle is the triangle with one square corner, and it quietly holds up most of the measuring done in the real world. A ladder leaning on a wall, a ramp rising to a door and a diagonal brace across a frame all form right triangles, and in every case one question matters: how long is the longest side? That longest side is the hypotenuse, opposite the right angle.
Formula and method
a² and b² — each leg multiplied by itself
The hypotenuse (Pythagoras' theorem): a and b — the two legs, the sides that meet at the right angle, measured in the same unit. c — the hypotenuse, the longest side, opposite the right angle, in the same unit as the legs. How the calculation runs. Square the first leg, square the second leg, add the two squares, and take the square root of the total. The order of the legs makes no difference, because a² + b² is the same as b² + a². The result is always longer than either leg on its own but shorter than the two legs added together — a useful sanity check on any answer. Both legs must be in the same unit: a leg in metres and a leg in centimetres cannot be squared and added until one is converted, since the squares would be in different units. The legs must be positive lengths; a zero or negative length is not a side of a triangle. This tool finds the hypotenuse from the two legs only. Finding a missing leg from the hypotenuse and one leg is a different calculation, done by subtracting squares instead of adding them.
Worked example
Example 1 — legs 3 and 4 (the live-page example) A right triangle with leg a = 3 and leg b = 4. Square the legs: 3² = 9, 4² = 16 Add the squares: 9 + 16 = 25 Take the square root: √25 = 5 Result: 5 units This is the stored example on the live page, and the arithmetic above reproduces it. The 3-4-5 triangle is the most famous right triangle there is, because all three sides are whole numbers, and builders mark out 3 units along one edge and 4 along the other, then check that the diagonal is exactly 5. The hypotenuse of 5 is longer than either leg, 3 or 4, and shorter than their sum, 7, exactly as it should be.