Concepts · 3 min read

Pythagorean Theorem: A Visual Proof and Pythagorean Triples

Pythagorean Theorem: A Visual Proof and Pythagorean Triples — illustration
In short: In a right triangle a² + b² = c². The 3-4-5 triangle works because 9 + 16 = 25 = 5². The famous proof below needs only the area of a square.

A proof in four triangles

Take four identical right triangles with legs a and b and hypotenuse c. Arrange them inside a big square of side (a + b) so their hypotenuses form a tilted square of side c in the middle.

The big square has area (a + b)² = a² + 2ab + b². It is also the tilted square plus four triangles: c² + 4 × (½ab) = c² + 2ab. Setting the two equal and cancelling 2ab leaves a² + b² = c².

Check with a = 3, b = 4: (3 + 4)² = 49, and 5² + 2 × 3 × 4 = 49. ✓

Using it

Given two sides you can find the third. Try the Pythagorean theorem calculator.

Legs 5 and 12
Answerc = 13
  • Area of the triangle: 30
  • Perimeter: 30
Step-by-step working 4 steps
  1. 1
    The theorem
    a² + b² = c²

    a and b are the two shorter sides (legs); c is the hypotenuse, opposite the right angle.

  2. 2
    Square the legs and add
    5² + 12² = 25 + 144 = 169
  3. 3
    Take the square root
    c = √169 = 13
  4. 4
    Check
    5² + 12² = 169  and  13² = 169

Pythagorean triples

Whole-number solutions are called triples. Euclid’s formula builds them: for m > k with opposite parity and no common factor, (m² − k², 2mk, m² + k²).

abca² + b²c²
3452525
51213169169
81517289289
72425625625
202129841841
12353713691369
9404116811681
28455328092809
11606137213721
33566542254225

The converse

If a² + b² = c² for three side lengths, the triangle must have a right angle — the reason builders check corners with a 3-4-5 loop of string. See the geometry cheat sheet for more formulas.

Frequently asked questions

Did Pythagoras discover it?

The relationship was known in Babylonian and Indian mathematics before Pythagoras; the theorem carries his name because of the Greek tradition of proving it.

Does it work in 3D?

Yes: the space diagonal of a box is √(l² + w² + h²).

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Keep reading