Pythagorean theorem
In a right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides.
Calculator
The live calculator needs JavaScript. The worked example below shows the same steps it would.
See it move
- a² + b² = 64 + 36 = 100 = c²
- Hypotenuse c = √100 = 10
What the symbols mean
- one of the two shorter sides (legs), which meet at the right angle
- the other shorter side
- the hypotenuse: the longest side, opposite the right angle
When to use it
Use it whenever a triangle has a right angle and you know two of its sides: the length of a ladder against a wall, the diagonal of a screen or a field, the straight-line distance between two points on a grid. It only works for right triangles; for any other triangle use the law of cosines, which reduces to Pythagoras when the angle is 90°.
Worked example
A ladder 10 m long leans against a wall with its foot 6 m from the wall. How high up the wall does it reach? Here c = 10 and b = 6.
Start from the formula.
Rearrange to make the subject: subtract b² from both sides, then take the square root.
Substitute = , = and work it out.
Answer a = 8 m
Why it works
The graph shows the classic picture: build a square on each side. The two smaller squares together have exactly the same area as the big one. One proof arranges four copies of the triangle inside a square of side in two different ways; the space left over is in one arrangement and in the other.
Common mistakes
- Adding when you should subtract. When the unknown is a shorter side, ; the hypotenuse is always the longest side.
- Forgetting the square root at the end: means , not 64.
- Writing . The square root of a sum is not the sum of the square roots: , not 7.
- Using it on a triangle without a right angle.