What the theorem says
In a triangle with one right angle, the square on the side opposite the right angle (the hypotenuse) equals the squares on the other two sides added together. To find the hypotenuse, add the squares of the legs and take the square root. To find a leg, subtract the square of the known leg from the square of the hypotenuse and take the square root of what is left.
That subtraction is why the hypotenuse must be the longest side: otherwise the difference is negative, no real triangle fits, and the calculator says so. The theorem holds only for right-angled triangles; for others, the law of cosines adds a term that vanishes at 90°.
c² = a² + b² c = √(a² + b²) a = √(c² − b²)
Why it is true
One of the shortest proofs uses four copies of the triangle. Arrange them inside a square with sides a + b so that their hypotenuses form a tilted square in the middle. The outer square's area is (a + b)², and it is also the four triangles, each ab/2, plus the inner square c². Expanding gives a² + 2ab + b² = 2ab + c², and cancelling 2ab leaves a² + b² = c².
The result carries Pythagoras' name, but Babylonian clay tablets list whole-number triples such as 3, 4, 5 more than a thousand years before him. Such triples let you check a right angle with only a tape measure.
The angles, area and perimeter
Once all three sides are known, the angles follow from trigonometry. The angle opposite leg a is the inverse tangent of a ÷ b, and the two acute angles always add up to 90°. The area is half of a × b, since the two legs are the base and the height, and the perimeter is just the three sides added together.
If you want to check a single trig value by hand, the scientific calculator has sin, cos, tan and their inverses in degrees. To convert the answer between units, say from feet to metres, use the length converter.
Worked examples
Example 1
Checking a corner is square with 6, 8 and 10
Builders lay out a right angle by measuring 6 units along one wall and 8 along the other. The diagonal between the two marks should be √(36 + 64) = √100 = 10. If it is longer, the corner is wider than 90°; if shorter, it is narrower. It works in feet, metres or anything else, and the bigger the triangle, the more accurate the check.
Example 2
How high a 5 m ladder reaches
Safety guidance commonly says to set a ladder 1 unit out from the wall for every 4 units up, which for a 5 m ladder puts the foot 1.25 m out. The height reached is √(5² − 1.25²) = √(25 − 1.5625) = √23.4375 ≈ 4.8412 m, or about 15 ft 11 in. The angle at the ground, opposite the height, comes out at 75.52°, close to the usual advice of about 75°.
Example 3
The height of a 65-inch television
Screen sizes are measured on the diagonal. A typical 65-inch widescreen set is about 56.7 inches wide, so its height is √(65² − 56.7²) = √(4,225 − 3,214.89) = √1,010.11 ≈ 31.7822 inches, roughly 80.7 cm. That is useful when you need to know whether it will fit in an alcove.
Questions people ask
Which side is the hypotenuse?
It is the side across from the right angle, and always the longest of the three. The two sides that meet at the right angle are the legs. Which leg you call a and which b makes no difference to the missing side, only to which angle is listed first.
Does it work in three dimensions?
Yes, by using it twice. The diagonal of a box with sides x, y and z is √(x² + y² + z²): first find the diagonal of the base, then use that and the height as the two legs of a second right-angled triangle. A room 4 m by 3 m by 2.4 m has a corner-to-corner diagonal of about 5.55 m.
Why is my answer an endless decimal?
Most square roots are irrational, so they never end or repeat. Only Pythagorean triples such as 5, 12, 13 and 8, 15, 17 give whole-number answers. Four decimal places is more precision than a tape measure can use.