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
Use this formula only when the triangle has a right angle. The hypotenuse is the side opposite that right angle, and it is always the longest side.
What the formula means
The theorem is easier to remember 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 theorem is comparing square areas, which is why the relationship is instead of .
Why the Pythagorean theorem is true
One classic proof starts 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 those values into the theorem:
So the hypotenuse is . That answer makes sense because the hypotenuse should be longer than either leg.
Common mistakes with
The most common mistake is using the theorem on a triangle that is not right. The formula needs a angle.
Another mistake 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 .
Some students also mix 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.
Try a similar problem
Try your own version with legs and . If you get , you set the problem up correctly.
If you want a useful next step, explore a similar problem with the Distance Formula to see how the same idea works on the coordinate plane.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →