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 aa and bb and the hypotenuse is cc, then

a2+b2=c2a^2 + b^2 = c^2

In this formula, aa and bb are the two legs and cc 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 cc matches the combined areas of the squares on sides aa and bb. That is why the side lengths are squared: the relationship is a2+b2=c2a^2 + b^2 = c^2 rather than a+b=ca + b = c.

One classic proof makes this precise. Start with a large square of side length a+ba + b. Put four identical right triangles inside it so that their hypotenuses form a smaller inner square.

The large square has area

(a+b)2(a+b)^2

The four triangles together have area

4(12ab)=2ab4 \left( \frac{1}{2}ab \right) = 2ab

The inner square has side length cc, so its area is

c2c^2

Since the large square is made of those four triangles plus the inner square,

(a+b)2=2ab+c2(a+b)^2 = 2ab + c^2

Expand and simplify:

a2+2ab+b2=2ab+c2a^2 + 2ab + b^2 = 2ab + c^2 a2+b2=c2a^2 + b^2 = c^2

Worked example: find the hypotenuse

Suppose a right triangle has legs 66 and 88. To find the hypotenuse cc, substitute into the theorem:

62+82=c26^2 + 8^2 = c^2 36+64=c236 + 64 = c^2 100=c2100 = c^2 c=10c = 10

So the hypotenuse is 1010. That answer makes sense because the hypotenuse should be longer than either leg.

Practice with a check

Now try your own version with legs 55 and 1212. Square each leg, add, and take the square root the same way as the worked example. If you get 1313, 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 a2+b2=c2a^2 + b^2 = c^2

The most common trap is using the theorem on a triangle that is not right. The formula needs a 9090^\circ angle.

Another is putting the wrong side in place of cc. The hypotenuse is always opposite the right angle, and it is always the longest side.

Students also sometimes stop too early. If you get c2=100c^2 = 100, the side length is c=10c = 10, not 100100. Take the square root before reporting the answer.

A final trap is mixing up a2+b2=c2a^2 + b^2 = c^2 with (a+b)2=c2(a+b)^2 = c^2. 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 a2+b2=c2a^2 + b^2 = c^2 with cc 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 →