📘 CodingMarble Learn

Pythagoras Theorem

In any right-angled triangle, the square on the longest side (the hypotenuse) equals the sum of the squares on the other two sides: a² + b² = c².

🎬 Step-by-step story

  1. Here is a right-angled triangle. Its two short sides are 3 and 4. We want the long side, c.
  2. Build a square on side a with blocks: 3 × 3 = 9 blue blocks.
  3. Build a square on side b: 4 × 4 = 16 green blocks.
  4. Now look at the empty square on the long side. It needs 5 × 5 = 25 blocks.
  5. Watch! All 9 blue and 16 green blocks jump into the big square. They fill it exactly.
  6. So the two small squares together make the big square: a² + b² = c². 9 + 16 = 25, and c = 5.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

What is Pythagoras theorem?

A right-angled triangle has one angle of exactly 90°. The side opposite this angle is the longest side and is called the hypotenuse (c). The other two sides (a and b) are called the legs.

Pythagoras theorem says that if you build a square on each side, the area of the big square on the hypotenuse is exactly equal to the areas of the two smaller squares added together.

Why does it work? A visual proof

Take four copies of the same right triangle and arrange them inside a large square of side (a + b). The empty space in the middle is a tilted square of side c, so its area is c².

Now slide the same four triangles into a different arrangement inside the same large square. This time the empty space is two squares: one of area a² and one of area b². The large square and the four triangles did not change, so the empty space must be the same: a² + b² = c². Press play on the animation to watch the squares fill up.

Converse of Pythagoras theorem

The theorem also works backwards. If the sides of a triangle satisfy a² + b² = c², the triangle must have a right angle opposite side c. Builders use this with a 3-4-5 rope to mark perfect corners.

Pythagorean triples

Whole numbers that fit the rule are called Pythagorean triples. Common ones are 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple of a triple (6-8-10, 9-12-15) is also a triple.

Key formulas and definitions

Worked examples

1. The two shorter sides of a right triangle are 6 cm and 8 cm. Find the hypotenuse.

c² = 6² + 8² = 36 + 64 = 100, so c = √100 = 10 cm.

2. A 13 m ladder leans against a wall. Its foot is 5 m from the wall. How high up the wall does it reach?

The ladder is the hypotenuse. h² = 13² − 5² = 169 − 25 = 144, so h = 12 m.

3. Is a triangle with sides 7, 10 and 12 right-angled?

Check the longest side: 7² + 10² = 49 + 100 = 149, but 12² = 144. They are not equal, so it is not a right triangle.

Common mistakes

Practice quiz

1. Which side is the hypotenuse?
2. Legs are 9 and 12. The hypotenuse is:
3. Which is a Pythagorean triple?
4. Hypotenuse 17, one leg 8. The other leg is:
5. Sides 10, 24, 26 form:

Frequently asked questions

What is the formula of Pythagoras theorem?

a² + b² = c², where c is the hypotenuse and a and b are the two shorter sides of a right-angled triangle.

Does Pythagoras theorem work for all triangles?

No. It works only for right-angled triangles. For other triangles you use the cosine rule.

In which class is Pythagoras theorem taught?

CBSE Class 10 (Triangles), GCSE Year 10, US Grade 8 (8.G.B), Japan 中学3年, Korea 중2 and Germany Klasse 8–9.

Where this is taught

CBSE (India)Class 10Triangles
England (KS3, GCSE, A-level)Year 10Geometry and measures
USA (Common Core, NGSS, AP)Grade 8Geometry (8.G)