letx=

Geometry

Pythagorean theorem

In a right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides.

a2+b2=c2
Hypotenusec=a2+b2
A shorter sidea=c2−b2

Calculator

The live calculator needs JavaScript. The worked example below shows the same steps it would.

See it move

a² = 64b² = 36c² = 100ab
  • a² + b² = 64 + 36 = 100 = c²
  • Hypotenuse c = √100 = 10

What the symbols mean

a
one of the two shorter sides (legs), which meet at the right angle
b
the other shorter side
c
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.

  1. Start from the formula.

    a2+b2=c2
  2. Rearrange to make a the subject: subtract b² from both sides, then take the square root.

    a=c2−b2
  3. Substitute c = 10, b = 6 and work it out.

    a=102−62
    =100−36
    =64
    =8

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 a+b in two different ways; the space left over is c2 in one arrangement and a2+b2 in the other.

Common mistakes

  • Adding when you should subtract. When the unknown is a shorter side, a2=c2−b2; the hypotenuse is always the longest side.
  • Forgetting the square root at the end: a2=64 means a=8, not 64.
  • Writing a2+b2=a+b. The square root of a sum is not the sum of the square roots: 32+42=5, not 7.
  • Using it on a triangle without a right angle.