The Pythagorean Theorem

Understand the most famous theorem in mathematics through proofs, examples, and real-world applications

Home / Lessons / Pythagorean Theorem
Beginner ⏱ 12 min Free

Statement of the Theorem

The Pythagorean theorem is one of the oldest and most widely used results in all of mathematics. It describes a fundamental relationship between the three sides of any right triangle: the square of the hypotenuse is equal to the sum of the squares of the other two sides.

If a right triangle has legs of length a and b, and a hypotenuse of length c, then:

a² + b² = c²

The hypotenuse is always the longest side of a right triangle and is the side directly opposite the right angle. The other two sides are called legs. This theorem only applies to right triangles — triangles that contain exactly one 90-degree angle.

a b c (leg) (leg) (hypotenuse)

Key Takeaway

The Pythagorean theorem lets you find any side of a right triangle when you know the other two. It is the foundation for the distance formula, trigonometric identities, and countless applications in science and engineering.

Visual Proof: The Rearrangement Method

There are over 370 known proofs of the Pythagorean theorem, but the rearrangement proof is one of the most intuitive and elegant. Here is how it works:

Imagine you have a large square with side length (a + b). Inside this square, arrange four identical copies of your right triangle (each with legs a and b and hypotenuse c) so that their hypotenuses form a smaller, tilted square in the center.

  1. Total area of the big square: (a + b)² = a² + 2ab + b²
  2. Area from the four triangles: 4 × (1/2 × a × b) = 2ab
  3. Area of the inner square:
  4. Setting them equal: a² + 2ab + b² = 2ab + c²
  5. Subtract 2ab from both sides: a² + b² = c²

This proof requires no algebra beyond basic area formulas. The four triangles account for 2ab of the total area, and whatever is left must be c². Since the big square has area a² + 2ab + b², subtracting the 2ab from the triangles leaves a² + b² = c².

Algebraic Proof Using Similar Triangles

Drop a perpendicular from the right angle to the hypotenuse, creating two smaller triangles inside the original. Each of these smaller triangles is similar to the original triangle and to each other.

Let the altitude have length h, and let it divide the hypotenuse c into segments of length p and q, where p + q = c. By the similarity of the triangles:

Adding these two equations: a² + b² = pc + qc = (p + q)c = c × c = c². This proof is particularly beautiful because it uses only the properties of similar triangles and requires no area arguments.

Pythagorean Triples

A Pythagorean triple is a set of three positive integers (a, b, c) that satisfy a² + b² = c². These are special because all three sides are whole numbers, making calculations clean and exact.

abcVerification
3459 + 16 = 25
5121325 + 144 = 169
8151764 + 225 = 289
7242549 + 576 = 625
9404181 + 1600 = 1681
202129400 + 441 = 841

Any multiple of a Pythagorean triple is also a Pythagorean triple. For example, if (3, 4, 5) is a triple, then so is (6, 8, 10), (9, 12, 15), (30, 40, 50), and so on. The triple (3, 4, 5) is by far the most commonly encountered and is worth memorizing.

Key Takeaway

Recognizing Pythagorean triples saves time on exams. If you see a right triangle with legs 3 and 4, you instantly know the hypotenuse is 5 — no calculation needed. The same applies to multiples like 6-8-10 or 5-12-13.

The Converse of the Pythagorean Theorem

The converse of the Pythagorean theorem states: if the square of the longest side of a triangle equals the sum of the squares of the other two sides, then the triangle is a right triangle. This is extremely useful for testing whether a triangle contains a 90-degree angle.

More broadly, you can classify any triangle by comparing c² with a² + b²:

Connection to the Distance Formula

The distance formula from coordinate geometry is a direct application of the Pythagorean theorem. To find the distance between two points (x₁, y₁) and (x₂, y₂), you form a right triangle where the horizontal distance is |x₂ − x₁| and the vertical distance is |y₂ − y₁|. The distance is the hypotenuse:

d = √((x₂ − x₁)² + (y₂ − y₁)²)

This is simply a² + b² = c² solved for c, with a = |x₂ − x₁| and b = |y₂ − y₁|. Every time you compute a distance in a coordinate plane, you are applying the Pythagorean theorem.

Extension to Three Dimensions

The Pythagorean theorem extends naturally to three-dimensional space. If you need the distance between points (x₁, y₁, z₁) and (x₂, y₂, z₂), the formula becomes:

d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²)

This works because you can apply the Pythagorean theorem twice: first in the xy-plane to get the horizontal distance, then again combining that horizontal distance with the vertical z-component.

Real-World Applications

The Pythagorean theorem appears in an enormous variety of practical situations:

Worked Examples

Example 1: Find the Hypotenuse

A right triangle has legs of length 6 and 8. Find the hypotenuse.

Step 1: Write the Pythagorean theorem: a² + b² = c²

Step 2: Substitute: 6² + 8² = c²

Step 3: Calculate: 36 + 64 = c², so c² = 100

Step 4: Take the square root: c = √100 = 10

Answer: The hypotenuse is 10. (Note: this is the 3-4-5 triple scaled by 2.)

Example 2: Find a Missing Leg

A right triangle has a hypotenuse of 13 and one leg of length 5. Find the other leg.

Step 1: Write the theorem: a² + b² = c²

Step 2: Substitute known values: 5² + b² = 13²

Step 3: Calculate: 25 + b² = 169

Step 4: Solve for b²: b² = 169 − 25 = 144

Step 5: Take the square root: b = √144 = 12

Answer: The missing leg is 12. (This is the 5-12-13 Pythagorean triple.)

Example 3: Word Problem — Ladder Against a Wall

A 10-foot ladder is leaning against a wall. The base of the ladder is 6 feet from the wall. How high up the wall does the ladder reach?

Step 1: The ladder is the hypotenuse (c = 10), the ground distance is one leg (a = 6), and the wall height is the other leg (b = ?).

Step 2: Apply the theorem: 6² + b² = 10²

Step 3: Solve: 36 + b² = 100, so b² = 64

Step 4: b = √64 = 8

Answer: The ladder reaches 8 feet up the wall.

Practice Problems

Practice 1: Find the Missing Side

A right triangle has legs of length 9 and 12. Find the hypotenuse.

c² = 9² + 12² = 81 + 144 = 225. Therefore c = √225 = 15. This is the 3-4-5 triple scaled by 3.

Practice 2: Is This a Right Triangle?

A triangle has sides of length 7, 24, and 25. Is it a right triangle?

Check: 7² + 24² = 49 + 576 = 625 = 25². Since a² + b² = c², yes, it is a right triangle. (7, 24, 25) is a Pythagorean triple.

Practice 3: Real-World Application

A rectangular garden measures 15 meters by 20 meters. You want to run a straight path diagonally from one corner to the opposite corner. How long is the path?

The diagonal creates a right triangle with legs 15 and 20. d² = 15² + 20² = 225 + 400 = 625. d = √625 = 25 meters. (This is the 3-4-5 triple scaled by 5.)

Key Takeaway

The Pythagorean theorem is not just a formula to memorize. It is a bridge connecting geometry, algebra, coordinate math, and the physical world. Understanding it deeply will serve you in every area of mathematics.

Frequently Asked Questions

Does the Pythagorean theorem work for non-right triangles?
No, the standard form a² + b² = c² only works for right triangles. For non-right triangles, you need the Law of Cosines: c² = a² + b² − 2ab·cos(C), which generalizes the Pythagorean theorem. When angle C is 90°, cos(C) = 0, and the formula reduces back to a² + b² = c².
What are Pythagorean triples?
Pythagorean triples are sets of three positive integers that satisfy the Pythagorean theorem. The most common examples are (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25). Any scalar multiple of a triple is also a triple; for example, (6, 8, 10) is the (3, 4, 5) triple multiplied by 2. There are infinitely many Pythagorean triples.
Who was Pythagoras?
Pythagoras was an ancient Greek mathematician and philosopher who lived around 570–495 BCE. While the theorem bears his name, the mathematical relationship was known to Babylonian and Indian mathematicians centuries earlier. Pythagoras and his followers (the Pythagoreans) are credited with providing one of the first formal proofs of the relationship.
How is the Pythagorean theorem related to the distance formula?
The distance formula d = √((x₂ − x₁)² + (y₂ − y₁)²) is the Pythagorean theorem applied to a coordinate plane. The horizontal and vertical differences between two points form the legs of a right triangle, and the distance between the points is the hypotenuse.
Can the Pythagorean theorem be used in 3D?
Yes. In three dimensions, the distance formula becomes d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²). This extends the Pythagorean theorem by applying it in two stages: first in a 2D plane, then combining that result with the third dimension.
How many proofs of the Pythagorean theorem exist?
Over 370 distinct proofs have been documented, including proofs by rearrangement, algebraic proofs, proofs using similar triangles, and even proofs using calculus. One notable collection was published by Elisha Loomis in 1927. Even U.S. President James Garfield contributed a unique proof in 1876.