Skip to content

Pythagorean Theorem

Relates the sides of a right triangle.

Variables

a, b
Legs
c
Hypotenuse (side opposite the right angle)

Explanation

In any right triangle, the area of the square on the hypotenuse equals the sum of the areas of the squares on the legs. The converse also holds: if , the triangle is right.

Example

Legs 5 and 12: .

How to use it

  1. Check the triangle has a right angle. The theorem only applies to right triangles.
  2. Identify the hypotenuse , the side opposite the right angle and always the longest side.
  3. To find the hypotenuse: . To find a leg: .

Another worked example

A 10-foot ladder leans against a wall with its foot 6 feet from the wall. How high does it reach?

A short proof

Place four copies of the triangle inside a square of side , so they leave a tilted square of side in the middle. The big square's area is , and it also equals . Expanding gives , so .

The converse and triangle types

If , the triangle is right. If (with the longest side), the triangle is acute. If , it is obtuse. Sides 6, 7, 9 give , so that triangle is acute.

Pythagorean triples

Whole-number solutions include 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple also works, such as 6-8-10. You can generate more with , , .

Common mistakes

  • Adding when you should subtract. When the hypotenuse is known and you need a leg, subtract.
  • Using the theorem on a triangle with no right angle. Use the law of cosines instead.
  • Forgetting to take the square root at the end.

Where it's used

  • Construction: checking corners are square with the 3-4-5 rule.
  • Screens: TV and phone sizes are the diagonal, found from the width and height.
  • Navigation: the straight-line distance after travelling east then north.
  • Ladders and ramps: finding the length needed to reach a height from a given distance.

Key takeaways

  • It only applies to right triangles.
  • is always the hypotenuse, opposite the right angle.
  • Add squares to find the hypotenuse; subtract to find a leg.

Try it: Pythagorean Theorem Calculator

Find the hypotenuse or a missing leg of a right triangle using a² + b² = c².

Open calculator

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.Legs 9 and 12. Find the hypotenuse.

    Show answer

    15.

  2. 2.Hypotenuse 17, one leg 8. Find the other leg.

    Show answer

    15.

  3. 3.Is a triangle with sides 7, 24, 25 a right triangle?

    Show answer

    Yes, .

  4. 4.A TV screen is 48 inches wide and 27 inches tall. Find its diagonal.

    Show answer

    inches.

  5. 5.Find the diagonal of a square with side 5.

    Show answer

    .

Key terms

Right triangle
A triangle with one angle.
Hypotenuse
The side opposite the right angle.
Leg
Either of the two sides that form the right angle.
Converse
The reverse statement: if , the triangle is right.
Pythagorean triple
Three whole numbers that satisfy the theorem.

Frequently asked questions

What are Pythagorean triples?

Whole-number solutions such as (3, 4, 5), (5, 12, 13) and (8, 15, 17).

Which side is $c$?

Always the hypotenuse: the side opposite the right angle, which is the longest. The legs and can be either of the other two.

Does it work for non-right triangles?

No. For other triangles use the law of cosines, , which reduces to the Pythagorean theorem when .

How do builders use it?

The 3-4-5 rule: measure 3 units along one wall and 4 along the other. If the diagonal is exactly 5, the corner is square.

Does it work in 3D?

Yes. The space diagonal of a box is , found by applying the theorem twice.

Who discovered the Pythagorean theorem?

It's named after Pythagoras (around 500 BC), but Babylonian clay tablets from over 1000 years earlier list Pythagorean triples, and it was also known in ancient India and China.

Can the sides be decimals?

Yes. Legs 1.5 and 2 give a hypotenuse of .

Related formulas

More geometry formulas