The Pythagorean theorem says that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. If the legs are and and the hypotenuse is , then
In this formula, and are the two legs and is the hypotenuse, which is the side opposite the right angle and always the longest side. Use the formula only when the triangle has a right angle.
Why the theorem is true
The theorem is easier to trust if you think in areas, not just side lengths. Build a square on each side of a right triangle. The area of the square on side matches the combined areas of the squares on sides and . That is why the side lengths are squared: the relationship is rather than .
One classic proof makes this precise. Start with a large square of side length . Put four identical right triangles inside it so that their hypotenuses form a smaller inner square.
The large square has area
The four triangles together have area
The inner square has side length , so its area is
Since the large square is made of those four triangles plus the inner square,
Expand and simplify:
Worked example: find the hypotenuse
Suppose a right triangle has legs and . To find the hypotenuse , substitute into the theorem:
So the hypotenuse is . That answer makes sense because the hypotenuse should be longer than either leg.
Practice with a check
Now try your own version with legs and . Square each leg, add, and take the square root the same way as the worked example. If you get , you set the problem up correctly, and the answer passing the "longer than either leg" check confirms it.
For a useful next step, work a similar problem with the Distance Formula to see how the same idea applies on the coordinate plane.
Calculation traps with
The most common trap is using the theorem on a triangle that is not right. The formula needs a angle.
Another is putting the wrong side in place of . The hypotenuse is always opposite the right angle, and it is always the longest side.
Students also sometimes stop too early. If you get , the side length is , not . Take the square root before reporting the answer.
A final trap is mixing up with . Those are not the same expression.
When to use the Pythagorean theorem
Use the theorem when two lengths meet at a right angle and you need the direct distance across from that angle. Common cases include the diagonal of a rectangle, the straight-line distance between two points, and basic construction or surveying layouts.
It is also useful for checking whether a triangle is right. If side lengths of a triangle satisfy with as the longest side, then the triangle is a right triangle.
Frequently Asked Questions
- What does the Pythagorean theorem state?
- In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides, written a squared plus b squared equals c squared. The hypotenuse is the side opposite the right angle and is always the longest side. The formula only applies when the triangle has a right angle.
- Why is the Pythagorean theorem true?
- One classic proof places four identical right triangles inside a large square with side length a plus b, so their hypotenuses form a smaller inner square of side c. Setting the large square's area equal to the four triangles plus the inner square, then expanding and simplifying, leaves a squared plus b squared equals c squared.
- How do you find the hypotenuse with the Pythagorean theorem?
- Substitute the two legs into the formula and solve for c. With legs 6 and 8, you get 36 plus 64 equals c squared, so c squared is 100 and c is 10. As a sanity check, the hypotenuse should always come out longer than either leg.
- Why are the sides squared in the Pythagorean theorem?
- The theorem is really comparing areas. If you build a square on each side of a right triangle, the area of the square on the hypotenuse matches the combined areas of the squares on the two legs. That is why the relationship is a squared plus b squared equals c squared rather than a plus b equals c.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →