Allday Education

The Pythagorean Theorem

The Pythagorean theorem says that in any right triangle, the two shorter sides and the longest side are locked together by one equation: a2+b2=c2a^2 + b^2 = c^2. The two legs are aa and bb, and cc is the hypotenuse — the side across from the right angle. Square the legs, add them, and you get the square of the hypotenuse, every time.

That one equation lets you find any side of a right triangle when you know the other two, which is why it shows up everywhere: distances on a coordinate plane, ladders against walls, diagonals of rectangles, and half the problems in a geometry course. The only setup skill you need is identifying which side is the hypotenuse.

What the theorem says

In the triangle below, the legs aa and bb meet at the right angle, and the hypotenuse cc sits across from it. The hypotenuse is always the longest side — if your computed hypotenuse comes out shorter than a leg, something went wrong.

The theorem only works on right triangles. No right angle, no a2+b2=c2a^2 + b^2 = c^2. It doesn't matter which leg you call aa and which you call bb, but cc must be the hypotenuse.

bb
aa
cc

Finding the hypotenuse vs. finding a leg

If the legs are given and the hypotenuse is missing, the setup is direct: square both legs, add, and take the square root. Legs of 33 and 44 give 9+16=259 + 16 = 25, so c=25=5c = \sqrt{25} = 5.

If the hypotenuse is given and a leg is missing, the hypotenuse still goes in the cc spot — which means you subtract instead of add. With a hypotenuse of 1010 and a leg of 66, the setup is 62+b2=1026^2 + b^2 = 10^2, so b2=10036=64b^2 = 100 - 36 = 64 and b=8b = 8.

The most common mistake is putting a given hypotenuse in a leg spot and adding when you should subtract. Before substituting anything, find the right angle and mark the side across from it as cc.

Pythagorean triples and messy answers

Some whole-number side combinations satisfy the theorem exactly: 33-44-55, 66-88-1010, 55-1212-1313, and 88-1515-1717 are the ones worth memorizing. Multiples work too — since 33-44-55 is a triple, so is 99-1212-1515. Spotting a triple saves you the arithmetic entirely.

Most right triangles are not triples, and that's fine — the answer is just a square root. Legs of 44 and 77 give c2=16+49=65c^2 = 16 + 49 = 65, so c=65c = \sqrt{65}. Leave it as a simplified radical unless the problem asks for a decimal, in which case round: 658.06\sqrt{65} \approx 8.06.

Worked examples

Example 1: finding the hypotenuse

A right triangle has legs of 33 and 44. Find the hypotenuse.

Write the theorema2+b2=c2a^2 + b^2 = c^2
Substitute the legs32+42=c23^2 + 4^2 = c^2
Square and add9+16=259 + 16 = 25
Take the square rootc=25=5c = \sqrt{25} = 5

Answer: c=5c = 5

Example 2: finding a missing leg

A right triangle has a hypotenuse of 1010 and one leg of 66. Find the other leg.

Write the theorem — the hypotenuse 1010 goes in the cc spot62+b2=1026^2 + b^2 = 10^2
Square the known sides36+b2=10036 + b^2 = 100
Subtract 3636 from both sidesb2=64b^2 = 64
Take the square rootb=8b = 8

Answer: b=8b = 8

Example 3: a 5-12-13 triple

A right triangle has legs of 55 and 1212. Find the hypotenuse.

Write the theorem52+122=c25^2 + 12^2 = c^2
Square and add25+144=16925 + 144 = 169
Take the square rootc=169=13c = \sqrt{169} = 13
Recognize it: 55-1212-1313 is a Pythagorean triple worth remembering

Answer: c=13c = 13

Example 4: a square-root answer

A right triangle has legs of 44 and 77. Find the exact length of the hypotenuse.

Write the theorem42+72=c24^2 + 7^2 = c^2
Square and add16+49=6516 + 49 = 65
Take the square rootc=65c = \sqrt{65}
65=51365 = 5 \cdot 13 has no perfect-square factor, so the radical is already simplified; as a decimal, c8.06c \approx 8.06

Answer: c=658.06c = \sqrt{65} \approx 8.06

Try one yourself

Common questions

How do I know which side is the hypotenuse?

It's the side directly across from the right angle, and it's always the longest side. The two sides that form the right angle are the legs. Find the little square marking the right angle first, then look at the side that doesn't touch it.

Does the theorem work on every triangle?

No — only right triangles. In fact, that's a test: if the three sides of a triangle satisfy a2+b2=c2a^2 + b^2 = c^2 with cc as the longest side, the triangle must be a right triangle. That reverse direction is called the converse of the Pythagorean theorem.

What if my answer isn't a whole number?

That's normal. Take the square root and leave it as a simplified radical like 65\sqrt{65}, or round to a decimal if the problem asks. Only special side combinations called Pythagorean triples, like 33-44-55 and 55-1212-1313, come out whole.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1