The Pythagorean theorem
In a right triangle, the squares of the two legs add up to the square of the hypotenuse: a² + b² = c². The hypotenuse c is opposite the right angle and is the longest side.
Example: legs of 3 and 4 give c = √(9 + 16) = √25 = 5. The calculator also shows the area (6), perimeter (12) and the acute angles: 36.87° and 53.13°.
How to find a leg
When you know the hypotenuse and one leg: b = √(c² − a²). For c = 13 and a = 5: b = √(169 − 25) = √144 = 12.
| a | b | c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
These are Pythagorean triples — right triangles with whole-number sides.
Practical uses
- Checking a right angle on site: measure 3 m along one wall and 4 m along the other — the diagonal must be exactly 5 m.
- Ladder length: to reach 4 m high standing 1 m from the wall you need √(16 + 1) ≈ 4.12 m.
- The diagonal of a screen, room or plot of land.
Frequently asked questions
Does it work for any triangle?
No — only right triangles. For others use the law of cosines: c² = a² + b² − 2ab·cos γ.
How do I find the diagonal of a rectangle?
It’s the hypotenuse of a triangle with the rectangle’s sides: a 4 × 3 rectangle has a diagonal of 5.