The formula
and are the two shorter sides (the legs) of a right triangle, and is the hypotenuse, the side opposite the right angle.
Where it comes from
There are hundreds of proofs. One of the clearest is a rearrangement. Take four copies of the triangle and place them inside a square with sides , so that their hypotenuses form a tilted square in the middle with side .
The big square’s area can be counted two ways. As one square, it’s . As pieces, it’s the tilted square plus four triangles, each with area :
Expanding the left side gives . Subtract from both sides and the theorem is left.
To find a leg instead, rearrange: .
Worked example
A ladder’s base is 3 m from a wall and it reaches 4 m up. How long is the ladder?
Watch out for
- Right triangles only. For other triangles, use the law of cosines, . When , and it reduces to Pythagoras.
- The hypotenuse is the longest side. If you’re solving for a leg and get no answer, the “hypotenuse” you entered is shorter than the other leg.
- Builders’ 3-4-5. Measuring 3, 4 and 5 units is a quick way to check a corner is square.
Sources
Last checked