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 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 and , and the hypotenuse (the side opposite the right angle, always the longest side) has length , then
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 and . What is the hypotenuse?
- Plug into the formula: .
- Compute: , so .
- Take the positive square root: .
So the hypotenuse is . The triple is the most famous example of a Pythagorean triple — three whole numbers that satisfy .
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 and arrange four copies of the same right triangle (legs , , hypotenuse ) inside it in two different ways:
- Arrangement 1: place the triangles in the four corners so the empty middle is a square of side . The empty area is .
- Arrangement 2: rearrange the same four triangles so the empty space splits into a square of side plus a square of side . The empty area is .
Both arrangements use exactly the same four triangles inside the same big square, so the empty area must be the same. Therefore .
Finding any side of a right triangle
The formula has three letters, so there are three "missing-piece" problems.
Find the hypotenuse. Given legs and :
Find a missing leg. Given the hypotenuse and one leg :
Check whether a triangle is a right triangle. Plug the three side lengths into and (with 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 and one leg . Find the other leg.
So the missing leg is . Notice is another Pythagorean triple.
Example 2: Decimal answer. A right triangle has legs and . What is the hypotenuse?
The exact answer is . The decimal 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:
Example 4: Is this a right triangle? A triangle has sides , , and . Is it a right triangle?
Check the longest side as : , and . 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 | Notes | |---|---| | | The classic. Multiples like and also work. | | | Common in textbook problems. | | | Less common but useful. | | | 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 and in the coordinate plane. Drawing a horizontal and a vertical leg from one point to the other forms a right triangle with legs and . The distance between the points is the hypotenuse:
So the distance formula is just the Pythagorean theorem in disguise.
Common mistakes
- Using the formula on a non-right triangle. It only works when one angle is exactly .
- Confusing the hypotenuse with a leg. The hypotenuse is always the longest side, opposite the right angle. It plays the role of in the formula.
- Forgetting to square root. gives you , not . Take the square root at the end.
- Subtracting in the wrong order. When solving for a leg, the formula is , not .
Practice Yourself
Try each one on paper first, then click Show answer to check your work.
- 1Practice problem 1
A right triangle has legs and . Find the hypotenuse.
Show answerHide answer
. (You may notice is just scaled by .)
- 2Practice problem 2
A right triangle has hypotenuse and one leg . Find the other leg.
Show answerHide answer
. The triple is .
- 3Practice problem 3
Is a triangle with sides , , and a right triangle?
Show answerHide answer
Compare to . Since , no — this is not a right triangle.
- 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 answerHide answer
feet.
- 5Practice problem 5
Find the distance between and in the coordinate plane.
Show answerHide answer
.
Related Topics
Frequently Asked Questions
Does the Pythagorean theorem work for any triangle?
No — only for right triangles, meaning a triangle with one 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 that satisfy . The smallest is . 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 and has hypotenuse , 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.