Pythagorean Theorem: Beyond a² + b² = c²

The Pythagorean Theorem is arguably the most famous equation in all of mathematics. It connects the three sides of a right triangle in a relationship so clean and so useful that it has been rediscovered independently by civilizations across the globe — from ancient Babylon to China to Greece. Whether you are calculating the diagonal of a TV screen, the length of a ramp, or the straight-line distance between two GPS coordinates, this one equation does the work.

And it is beautifully simple: the square of the longest side equals the sum of the squares of the other two sides. That is it. Three letters, one equation, and over 2,500 years of mathematics built on top of it.

What Is the Pythagorean Theorem?

The Pythagorean Theorem states that in a right triangle — a triangle with one 90° angle — the square of the hypotenuse is equal to the sum of the squares of the other two sides.

a² + b² = c²
Where c is the hypotenuse (the side opposite the right angle), and a and b are the two legs.

The theorem is named after the Greek mathematician Pythagoras (around 570–495 BC), though evidence suggests that the Babylonians knew the relationship at least a thousand years earlier. A clay tablet known as Plimpton 322, dated to roughly 1800 BC, contains a table of Pythagorean triples — integer sets that satisfy a² + b² = c² — suggesting the theorem was well understood long before Pythagoras was born.

Regardless of who discovered it first, the theorem has become one of the most proven results in mathematics. Over 400 distinct proofs exist, contributed by everyone from Euclid to a twelve-year-old named Einstein to a U.S. president (James Garfield published a proof in 1876).

Parts of a Right Triangle

Before using the theorem, you need to correctly identify the parts of a right triangle.

⚠️ The Number One Mistake

Students often plug the hypotenuse into a or b instead of c. Remember: c is always the longest side, and it always sits across from the right angle. If you are solving for the hypotenuse, you add the squares: c² = a² + b². If you are solving for a leg, you subtract: a² = c² − b².

Using the Theorem: Finding Missing Sides

There are two scenarios: finding the hypotenuse when you know both legs, and finding a leg when you know the hypotenuse and the other leg.

Scenario 1: Finding the Hypotenuse

c = √(a² + b²)
Square both legs, add them, then take the square root.

✏️ Example: Find the hypotenuse

Given: a = 6, b = 8
Apply the theorem: c² = 6² + 8² = 36 + 64 = 100
Take the square root: c = √100 = 10
The hypotenuse is 10 units.

Scenario 2: Finding a Missing Leg

a = √(c² − b²)
Square the hypotenuse, subtract the square of the known leg, then take the square root.

✏️ Example: Find the missing leg

Given: c = 13, b = 5
Apply the theorem: a² = 13² − 5² = 169 − 25 = 144
Take the square root: a = √144 = 12
The missing leg is 12 units.

💡 Quick Check: Is Your Answer Reasonable?

The hypotenuse must always be longer than either leg but shorter than the sum of both legs. If you find a hypotenuse of 5 with legs of 8 and 6, you made an error — a hypotenuse cannot be shorter than a leg. Similarly, if you find a leg that is longer than the hypotenuse, go back and check your arithmetic.

Why Does It Work? Visual Proofs

There are hundreds of proofs, but two stand out for their elegance and clarity.

Proof 1: The Rearrangement Proof (Area Method)

Start with a large square whose side length is (a + b). Inside it, arrange four identical right triangles (each with legs a and b and hypotenuse c) so that they form a smaller square in the center.

The area of the large square is (a + b)². The area can also be computed as four triangles plus the inner square: 4 × (½ab) + c² = 2ab + c².

Set them equal: (a + b)² = 2ab + c². Expand the left side: a² + 2ab + b² = 2ab + c². Subtract 2ab from both sides: a² + b² = c². Done.

Proof 2: The Square-on-Each-Side Proof

Draw a right triangle with legs a and b and hypotenuse c. Now draw a square on each side — one with area a², one with area b², and one with area c². The theorem says the two smaller squares together have exactly the same area as the large square. You can verify this by cutting the two smaller squares into pieces and rearranging them to perfectly fill the large square. This dissection proof has been known since at least the 10th century.

💡 Why Only Right Triangles?

The theorem only works for right triangles because the 90° angle is what makes the algebra clean. For non-right triangles, the relationship changes — you need the Law of Cosines: c² = a² + b² − 2ab·cos(C). When angle C is exactly 90°, cos(90°) = 0, the extra term vanishes, and you are left with a² + b² = c².

Pythagorean Triples

A Pythagorean triple is a set of three positive integers (a, b, c) that satisfy a² + b² = c². These are the "clean" right triangles — no irrational square roots, no decimals.

Triple (a, b, c)Check: a² + b²= c²Notes
3, 4, 59 + 16 = 2525 ✓The most famous triple
5, 12, 1325 + 144 = 169169 ✓Common on standardized tests
8, 15, 1764 + 225 = 289289 ✓Often overlooked but very useful
7, 24, 2549 + 576 = 625625 ✓Larger triple
9, 40, 4181 + 1600 = 16811681 ✓Shows the pattern continues
20, 21, 29400 + 441 = 841841 ✓A "primitive" triple (no common factor)

Scaling Triples

If (a, b, c) is a Pythagorean triple, then so is (ka, kb, kc) for any positive integer k. For example, since (3, 4, 5) is a triple, so are (6, 8, 10), (9, 12, 15), (12, 16, 20), (15, 20, 25), and so on. This means you really only need to memorize a few primitive triples (where a, b, and c share no common factor), and you can generate infinitely many others by multiplying.

The most useful triples to memorize for tests are 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Recognizing these on sight saves enormous time.

✏️ Example: Spotting a Scaled Triple

Problem: A right triangle has legs 15 and 20. What is the hypotenuse?
Recognize: 15 = 5 × 3 and 20 = 5 × 4. This is the 3-4-5 triple scaled by 5.
So the hypotenuse is: 5 × 5 = 25
Hypotenuse = 25. No square roots needed — just pattern recognition.

Generating Pythagorean Triples

You can create Pythagorean triples using two positive integers m and n where m > n:

a = m² − n²,   b = 2mn,   c = m² + n²
For any integers m > n > 0, these formulas always produce a Pythagorean triple.

For example, with m = 2 and n = 1: a = 4 − 1 = 3, b = 2(2)(1) = 4, c = 4 + 1 = 5. That gives the classic 3-4-5 triple. With m = 3 and n = 2: a = 9 − 4 = 5, b = 2(3)(2) = 12, c = 9 + 4 = 13. That gives the 5-12-13 triple.

The Converse: Is This a Right Triangle?

The Pythagorean Theorem works in reverse too. If you know all three sides of a triangle, you can check whether it is a right triangle by testing whether a² + b² = c² (where c is the longest side).

If a² + b² = c² → right triangle
If a² + b² > c² → acute triangle. If a² + b² < c² → obtuse triangle.

✏️ Example: Classify the Triangle

Sides: 9, 12, 15 (longest side = 15)
Check: 9² + 12² = 81 + 144 = 225. And 15² = 225.
225 = 225 ✓
It is a right triangle. (Also recognizable as a 3-4-5 triple scaled by 3.)

✏️ Example: Not a Right Triangle

Sides: 5, 7, 9 (longest side = 9)
Check: 5² + 7² = 25 + 49 = 74. And 9² = 81.
74 < 81
Not a right triangle. Since a² + b² < c², it is an obtuse triangle (the angle opposite the longest side is greater than 90°).

The Distance Formula Connection

The distance formula that you use in coordinate geometry is actually the Pythagorean Theorem in disguise. If you have two points (x₁, y₁) and (x₂, y₂), the horizontal distance is |x₂ − x₁| and the vertical distance is |y₂ − y₁|. These form the two legs of a right triangle, and the straight-line distance between the points is the hypotenuse.

d = √((x₂ − x₁)² + (y₂ − y₁)²)
This is just a² + b² = c² where a = |x₂ − x₁|, b = |y₂ − y₁|, and c = d.

✏️ Example: Distance Between Two Points

Points: A(1, 2) and B(4, 6)
Horizontal distance: 4 − 1 = 3
Vertical distance: 6 − 2 = 4
Straight-line distance: d = √(3² + 4²) = √(9 + 16) = √25 = 5
The distance is 5 units. (3-4-5 triple again — it shows up everywhere.)

Every time you calculate the distance between two points on a coordinate plane, you are using the Pythagorean Theorem. The slope formula and distance formula are both rooted in right-triangle geometry.

Going 3D: Diagonals of Boxes and Rooms

The Pythagorean Theorem extends naturally to three dimensions. To find the space diagonal of a rectangular box (the longest diagonal that goes from one corner to the opposite corner through the interior), you apply the theorem twice.

d = √(l² + w² + h²)
Where l = length, w = width, h = height of the box.

Here is why this works: first, use the Pythagorean Theorem on the base of the box to find the diagonal of the bottom face: d_base = √(l² + w²). Then use the theorem again with d_base as one leg and the height h as the other leg: d = √(d_base² + h²) = √(l² + w² + h²).

✏️ Example: Space Diagonal of a Room

Problem: A room is 12 feet long, 9 feet wide, and 8 feet tall. What is the longest straight-line distance from one corner to the opposite corner?
Apply 3D formula: d = √(12² + 9² + 8²) = √(144 + 81 + 64) = √289 = 17
The space diagonal is 17 feet. This is the longest straight object that would fit in the room.

✏️ Example: Will a Pole Fit in a Box?

Problem: Can a 10-foot pole fit inside a box that is 6 feet × 6 feet × 6 feet?
Space diagonal: d = √(6² + 6² + 6²) = √(36 + 36 + 36) = √108 ≈ 10.39 feet
Yes, the pole fits. The space diagonal (≈ 10.39 ft) is longer than 10 feet, so the pole can be placed diagonally from corner to corner.

Real-World Word Problems

The Pythagorean Theorem solves any problem where you need a straight-line distance and you know horizontal and vertical components — or any two sides of a right triangle.

Ladder Problems

✏️ Example: Ladder Against a Wall

Problem: A 13-foot ladder leans against a wall. The base of the ladder is 5 feet from the wall. How high up the wall does the ladder reach?
Identify: Hypotenuse = 13 (the ladder). One leg = 5 (distance from wall). Missing leg = height up the wall.
Solve: h² = 13² − 5² = 169 − 25 = 144 → h = 12
The ladder reaches 12 feet up the wall. (5-12-13 triple.)

Navigation and Travel

✏️ Example: Shortcut Across a Field

Problem: You walk 300 meters north and then 400 meters east. How far are you from your starting point in a straight line?
Identify: The north and east paths form a right angle. The straight-line distance is the hypotenuse.
Solve: d = √(300² + 400²) = √(90000 + 160000) = √250000 = 500
You are 500 meters from the start. (3-4-5 triple scaled by 100.)

Screen Sizes

✏️ Example: TV Screen Diagonal

Problem: A TV has a width of 48 inches and a height of 27 inches. What is the screen size (diagonal)?
Solve: d = √(48² + 27²) = √(2304 + 729) = √3033 ≈ 55.07
The screen is approximately 55 inches — a standard "55-inch" TV.

Construction and Carpentry

✏️ Example: Checking for Square Corners (The 3-4-5 Method)

Problem: A builder is laying a foundation and needs to ensure the corners are perfect 90° angles. How can they use the Pythagorean Theorem?
Method: Measure 3 feet along one wall from the corner and 4 feet along the other wall. If the diagonal between those two marks is exactly 5 feet, the corner is a perfect right angle.
This is the "3-4-5 method" used by carpenters and builders worldwide. Any multiple works too — 6-8-10, 9-12-15, etc. It has been used in construction for thousands of years.

Test your understanding with our interactive geometry engine — unlimited Pythagorean Theorem problems with step-by-step solutions, from basic side-finding to multi-step word problems.

Practice Pythagorean Theorem

Solved Practice Problems

✏️ Problem 1: Basic Hypotenuse

Find the hypotenuse of a right triangle with legs 9 and 40.
c² = 9² + 40² = 81 + 1600 = 1681
c = √1681 = 41
Hypotenuse = 41. (The 9-40-41 Pythagorean triple.)

✏️ Problem 2: Finding a Leg with Decimals

A right triangle has a hypotenuse of 10 and one leg of 7. Find the other leg.
a² = 10² − 7² = 100 − 49 = 51
a = √51 ≈ 7.14
The missing leg is √51 ≈ 7.14 units.

✏️ Problem 3: Is It a Right Triangle?

Sides: 11, 60, 61. Is this a right triangle?
Check: 11² + 60² = 121 + 3600 = 3721. And 61² = 3721.
Yes — 3721 = 3721 ✓. This is a right triangle and a Pythagorean triple.

✏️ Problem 4: Distance Between Points

Find the distance between (−3, 1) and (5, 7).
Horizontal: 5 − (−3) = 8. Vertical: 7 − 1 = 6.
d = √(8² + 6²) = √(64 + 36) = √100 = 10
Distance = 10 units. (A 6-8-10 triangle, which is the 3-4-5 triple scaled by 2.)

✏️ Problem 5: Multi-Step Problem

Problem: An isosceles triangle has two equal sides of length 10 and a base of 12. Find the height of the triangle.
Key insight: The height of an isosceles triangle bisects the base, creating two right triangles.
Each right triangle: hypotenuse = 10, base = 12/2 = 6, height = ?
h² = 10² − 6² = 100 − 36 = 64 → h = 8
Height = 8 units. Area of the triangle = ½ × 12 × 8 = 48 square units.

✏️ Problem 6: 3D Space Diagonal

Find the space diagonal of a box with dimensions 3 × 4 × 12.
d = √(3² + 4² + 12²) = √(9 + 16 + 144) = √169 = 13
Space diagonal = 13 units.

5 Common Pythagorean Mistakes

1. Putting the hypotenuse in the wrong position. The equation is a² + b² = c², not a² + c² = b². The hypotenuse (longest side, opposite the right angle) always goes alone on one side of the equation. If you are solving for a leg, you subtract: a² = c² − b². If you add when you should subtract (or vice versa), your answer will be wrong.

2. Forgetting to take the square root. After computing a² + b², you get c², not c. If a = 3 and b = 4, then c² = 25, and c = 5 (not 25). This is a common error on timed tests — students rush and write down the squared value instead of taking the final root.

3. Applying the theorem to non-right triangles. The Pythagorean Theorem only works for right triangles. If the triangle does not have a 90° angle, you need the Law of Cosines instead. Always verify that you have a right angle before using a² + b² = c².

4. Rounding too early. If you need √51 as an intermediate step, keep it as √51 until the final answer. Rounding to 7.14 in the middle of a multi-step problem compounds the error with each subsequent calculation. Use exact values (radicals) for intermediate steps and only round at the very end.

5. Confusing area with the theorem. The area of a right triangle is ½ × a × b (half the product of the legs). The Pythagorean Theorem is a² + b² = c² (a relationship between side lengths). They are different formulas that solve different problems. Mixing them up leads to nonsensical answers.

Wrapping Up

The Pythagorean Theorem is simple in statement but vast in application. It lets you find missing sides of right triangles, calculate distances on a coordinate plane, determine diagonals of 3D objects, verify right angles in construction, and forms the foundation for trigonometry, the distance formula, and even vector calculations in physics.

The core idea is elegant: in a right triangle, the area of the square on the hypotenuse equals the combined areas of the squares on the two legs. From that single geometric insight, an enormous amount of mathematics follows. If you can reliably identify the hypotenuse, know when to add and when to subtract, and memorize a few common Pythagorean triples, this theorem will serve you well through geometry, algebra, trigonometry, and beyond.

For related topics, explore our guides on triangle types and properties, slope and rate of change, and volume calculations for 3D shapes.

Practice