Pythagorean Theorem: a² + b² = c²

April 12, 2026

Problem

Show a visual proof of the Pythagorean theorem with squares built on the sides of a right triangle.

Explanation

The Pythagorean theorem is the most famous result in elementary geometry: in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides.

a2+b2=c2a^{2} + b^{2} = c^{2}

The visualization shows three squares built on the three sides of a right triangle. The two smaller squares (built on the legs) have a combined area exactly equal to the larger square (built on the hypotenuse). It's a relationship purely about areas — and that's the key to its many beautiful proofs.

Step-by-Step Solution

Given: A right triangle with legs a=3a = 3 and b=4b = 4.

Find: The hypotenuse cc using the Pythagorean theorem, and verify by computing the three areas.


Step 1 — Apply the theorem.

c2=a2+b2=32+42=9+16=25c^{2} = a^{2} + b^{2} = 3^{2} + 4^{2} = 9 + 16 = 25

Step 2 — Take the square root.

c=25=5c = \sqrt{25} = 5

So the hypotenuse is exactly 5.

Step 3 — Verify with the areas.

  • Area of square on leg aa: Aa=a2=9A_a = a^{2} = 9
  • Area of square on leg bb: Ab=b2=16A_b = b^{2} = 16
  • Sum: Aa+Ab=25A_a + A_b = 25
  • Area of square on hypotenuse cc: Ac=c2=25A_c = c^{2} = 25

The two small squares add up to exactly the large square. ✓

Step 4 — Famous Pythagorean triples.

When all three sides are integers, we have a "Pythagorean triple":

  • (3,4,5)(3, 4, 5) — the smallest
  • (5,12,13)(5, 12, 13)25+144=16925 + 144 = 169
  • (8,15,17)(8, 15, 17)64+225=28964 + 225 = 289
  • (7,24,25)(7, 24, 25)49+576=62549 + 576 = 625
  • (20,21,29)(20, 21, 29)400+441=841400 + 441 = 841

Each one is a right triangle with whole-number sides. There are infinitely many.

Step 5 — A famous algebraic proof (one of dozens).

Take a square of side (a+b)(a + b), and tile it with four copies of the right triangle plus a tilted square of side cc in the middle. The total area is:

(a+b)2=4×12ab+c2(a + b)^{2} = 4 \times \tfrac{1}{2}ab + c^{2}

a2+2ab+b2=2ab+c2a^{2} + 2ab + b^{2} = 2ab + c^{2}

a2+b2=c2a^{2} + b^{2} = c^{2}

Done. There are over 400 known proofs of the Pythagorean theorem — by mathematicians, by US President Garfield, by Leonardo da Vinci, and many others.


Answer: For a right triangle with legs 3 and 4:

  a2+b2=c2    9+16=25    c=5  \boxed{\;a^{2} + b^{2} = c^{2}\;\Longrightarrow\;9 + 16 = 25\;\Longrightarrow\;c = 5\;}

The two squares on the legs together have the same total area as the square on the hypotenuse — this is the geometric content of the theorem, and it's true for every right triangle.

Try It

  • Adjust the leg lengths aa and bb — the hypotenuse and all three squares update.
  • The HUD shows the area of each square and their relationship.
  • Try (3,4)(3, 4), (5,12)(5, 12), (8,15)(8, 15) — all are integer-sided right triangles.

Interactive Visualization

Parameters

3.00
4.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Pythagorean Theorem: a² + b² = c² | MathSpin