MathIsimple
Grades 7–8
pythagorean
9 min read

The Pythagorean Theorem: Formula, Proof, and Real-Life Applications

A friendly, step-by-step guide to the Pythagorean theorem for 7th and 8th graders: the a² + b² = c² formula, a visual proof, four worked examples, and how to spot Pythagorean triples.

What is the Pythagorean theorem?

The Pythagorean theorem is the most famous result in elementary geometry. It says that in any right triangle — a triangle with one 9090^\circ angle — the squares on the two shorter sides add up to the square on the longest side.

If the two legs (the sides next to the right angle) have lengths aa and bb, and the hypotenuse (the side opposite the right angle, always the longest side) has length cc, then

a2+b2=c2.a^2 + b^2 = c^2.

That single line lets you find any one side of a right triangle when you know the other two.

A first example

Suppose a right triangle has legs of length 33 and 44. What is the hypotenuse?

  1. Plug into the formula: 32+42=c23^2 + 4^2 = c^2.
  2. Compute: 9+16=259 + 16 = 25, so c2=25c^2 = 25.
  3. Take the positive square root: c=25=5c = \sqrt{25} = 5.

So the hypotenuse is 55. The triple (3,4,5)(3, 4, 5) is the most famous example of a Pythagorean triple — three whole numbers that satisfy a2+b2=c2a^2 + b^2 = c^2.

Why does it work? A visual proof

There are over a hundred known proofs of the Pythagorean theorem. Here is the cleanest one to picture in your head.

Take a square with side length a+ba + b and arrange four copies of the same right triangle (legs aa, bb, hypotenuse cc) inside it in two different ways:

Both arrangements use exactly the same four triangles inside the same big square, so the empty area must be the same. Therefore a2+b2=c2a^2 + b^2 = c^2.

Finding any side of a right triangle

The formula has three letters, so there are three "missing-piece" problems.

Find the hypotenuse. Given legs aa and bb:

c=a2+b2.c = \sqrt{a^2 + b^2}.

Find a missing leg. Given the hypotenuse cc and one leg aa:

b=c2a2.b = \sqrt{c^2 - a^2}.

Check whether a triangle is a right triangle. Plug the three side lengths into a2+b2a^2 + b^2 and c2c^2 (with cc as the longest side). If the two are equal, the triangle has a right angle.

Worked examples

Example 1: Missing leg. A right triangle has hypotenuse 1313 and one leg 55. Find the other leg.

b=13252=16925=144=12.b = \sqrt{13^2 - 5^2} = \sqrt{169 - 25} = \sqrt{144} = 12.

So the missing leg is 1212. Notice (5,12,13)(5, 12, 13) is another Pythagorean triple.

Example 2: Decimal answer. A right triangle has legs 55 and 77. What is the hypotenuse?

c=52+72=25+49=748.6.c = \sqrt{5^2 + 7^2} = \sqrt{25 + 49} = \sqrt{74} \approx 8.6.

The exact answer is 74\sqrt{74}. The decimal 8.68.6 is a rounded approximation.

Example 3: Real-world ladder. A 10-foot ladder leans against a wall. Its base is 6 feet from the wall. How high up the wall does the ladder reach?

The ladder, the wall, and the ground form a right triangle, with the ladder as the hypotenuse:

h=10262=10036=64=8 feet.h = \sqrt{10^2 - 6^2} = \sqrt{100 - 36} = \sqrt{64} = 8 \text{ feet}.

Example 4: Is this a right triangle? A triangle has sides 77, 2424, and 2525. Is it a right triangle?

Check the longest side as cc: 72+242=49+576=6257^2 + 24^2 = 49 + 576 = 625, and 252=62525^2 = 625. They match, so yes, this is a right triangle.

Pythagorean triples worth memorizing

A few small whole-number triples come up constantly. Recognizing them lets you answer a problem without reaching for a calculator.

| Triple (a,b,c)(a, b, c) | Notes | |---|---| | (3,4,5)(3, 4, 5) | The classic. Multiples like (6,8,10)(6, 8, 10) and (9,12,15)(9, 12, 15) also work. | | (5,12,13)(5, 12, 13) | Common in textbook problems. | | (8,15,17)(8, 15, 17) | Less common but useful. | | (7,24,25)(7, 24, 25) | Shows up in standardized tests. |

Any positive multiple of a Pythagorean triple is also a Pythagorean triple, because multiplying every side by the same factor scales the squares by that factor squared on both sides of the equation.

Distance between two points

The Pythagorean theorem also gives the distance formula for two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) in the coordinate plane. Drawing a horizontal and a vertical leg from one point to the other forms a right triangle with legs x2x1|x_2 - x_1| and y2y1|y_2 - y_1|. The distance between the points is the hypotenuse:

d=(x2x1)2+(y2y1)2.d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}.

So the distance formula is just the Pythagorean theorem in disguise.

Common mistakes

Practice Yourself

Try each one on paper first, then click Show answer to check your work.

  1. 1Practice problem 1

    A right triangle has legs 99 and 1212. Find the hypotenuse.

    Show answer

    c=92+122=81+144=225=15c = \sqrt{9^2 + 12^2} = \sqrt{81 + 144} = \sqrt{225} = 15. (You may notice (9,12,15)(9, 12, 15) is just (3,4,5)(3, 4, 5) scaled by 33.)

  2. 2Practice problem 2

    A right triangle has hypotenuse 1717 and one leg 88. Find the other leg.

    Show answer

    b=17282=28964=225=15b = \sqrt{17^2 - 8^2} = \sqrt{289 - 64} = \sqrt{225} = 15. The triple is (8,15,17)(8, 15, 17).

  3. 3Practice problem 3

    Is a triangle with sides 66, 88, and 1111 a right triangle?

    Show answer

    Compare 62+82=36+64=1006^2 + 8^2 = 36 + 64 = 100 to 112=12111^2 = 121. Since 100121100 \ne 121, no — this is not a right triangle.

  4. 4Practice problem 4

    A 13-foot ladder leans against a wall. The base is 5 feet from the wall. How high up the wall does the ladder reach?

    Show answer

    h=13252=16925=144=12h = \sqrt{13^2 - 5^2} = \sqrt{169 - 25} = \sqrt{144} = 12 feet.

  5. 5Practice problem 5

    Find the distance between (2,3)(2, 3) and (7,15)(7, 15) in the coordinate plane.

    Show answer

    d=(72)2+(153)2=25+144=169=13d = \sqrt{(7 - 2)^2 + (15 - 3)^2} = \sqrt{25 + 144} = \sqrt{169} = 13.

Related Topics

Frequently Asked Questions

Does the Pythagorean theorem work for any triangle?

No — only for right triangles, meaning a triangle with one 9090^\circ angle. For other triangles, you would use the law of sines or the law of cosines instead.

How do I know which side is the hypotenuse?

The hypotenuse is always the side opposite the right angle. It is also always the longest side of the triangle.

What is a Pythagorean triple?

Three positive whole numbers (a,b,c)(a, b, c) that satisfy a2+b2=c2a^2 + b^2 = c^2. The smallest is (3,4,5)(3, 4, 5). Any positive multiple of a triple is also a triple.

Why is the answer sometimes irrational?

Because not every right triangle has whole-number sides. For example, a triangle with legs 11 and 11 has hypotenuse 2\sqrt{2}, which cannot be written as a fraction.

How is the distance formula related to the theorem?

The distance between two points in the plane is the hypotenuse of a right triangle whose legs are the horizontal and vertical differences. So the distance formula is just the Pythagorean theorem applied in coordinates.

Want to keep going?

Try a different problem with the AI Math Solver, browse the practice library, or return to Middle School Math.

Ask AI ✨