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: . The two legs are and , and 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 and meet at the right angle, and the hypotenuse 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 . It doesn't matter which leg you call and which you call , but must be the hypotenuse.
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 and give , so .
If the hypotenuse is given and a leg is missing, the hypotenuse still goes in the spot — which means you subtract instead of add. With a hypotenuse of and a leg of , the setup is , so and .
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 .
Pythagorean triples and messy answers
Some whole-number side combinations satisfy the theorem exactly: --, --, --, and -- are the ones worth memorizing. Multiples work too — since -- is a triple, so is --. 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 and give , so . Leave it as a simplified radical unless the problem asks for a decimal, in which case round: .
Worked examples
Example 1: finding the hypotenuse
A right triangle has legs of and . Find the hypotenuse.
Answer:
Example 2: finding a missing leg
A right triangle has a hypotenuse of and one leg of . Find the other leg.
Answer:
Example 3: a 5-12-13 triple
A right triangle has legs of and . Find the hypotenuse.
Answer:
Example 4: a square-root answer
A right triangle has legs of and . Find the exact length of the hypotenuse.
Answer:
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 with 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 , or round to a decimal if the problem asks. Only special side combinations called Pythagorean triples, like -- and --, 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.