The Pythagorean theorem: in a right triangle, a² + b² = c². The two sides that form the right angle are the legs, and the side opposite the right angle — always the longest — is the hypotenuse. The theorem says the squares of the two legs add to the square of the hypotenuse. It runs in both directions: if you know two sides you can find the third, and if three sides satisfy the equation, the triangle must be right-angled. Almost everything in coordinate geometry — the distance formula included — is this theorem at work.
The Variables, Explained
- a and b are the legs, the sides meeting at the right angle. They are interchangeable: swapping a and b changes nothing.
- c is the hypotenuse, opposite the 90° angle. It is always the longest side, and in the formula it must be the one standing alone.
- a², b², c² are literally areas: the theorem says the squares built on the two legs together cover exactly the square built on the hypotenuse.
Why It Is True: The Rearrangement Idea
Draw a square of side a + b and place four copies of the triangle inside it, one in each corner, tilted so their hypotenuses form a slanted square in the middle. The middle square has side c, so its area is c². Now rearrange the same four triangles into two pairs in opposite corners: the uncovered region becomes two flat squares, of areas a² and b². The outer square and the four triangles never changed, so the uncovered area is the same in both arrangements — therefore c² = a² + b². This dissection is one of the oldest proofs in mathematics, and it shows the theorem is really a statement about areas, which is why squares appear in it at all.
Worked Example 1: Checking the 3-4-5 Triangle
Does a triangle with sides 3, 4 and 5 have a right angle? Put the longest side in the c position: is 3² + 4² = 5²? Compute: 9 + 16 = 25, and 5² = 25. Equal — so yes, the triangle is right-angled, with the right angle opposite the side of length 5. Builders have used this converse for millennia: a rope knotted at 3, 4 and 5 units folds into a perfect right angle for laying out corners.
Worked Example 2: Finding a Leg — Hypotenuse 13, Leg 5
Solve for the leg this time, so the unknown goes under a subtraction: b² = c² − a² = 13² − 5² = 169 − 25 = 144, and b = √144 = 12. Check: 5² + 12² = 25 + 144 = 169 = 13² ✓. The 5-12-13 triple is worth recognising on sight, like 3-4-5.
Worked Example 3: Finding the Hypotenuse — Legs 6 and 8
Here c is unknown and the legs add: c² = 6² + 8² = 36 + 64 = 100, so c = √100 = 10. This 6-8-10 triangle is the 3-4-5 triangle doubled — every multiple of a Pythagorean triple is another triple, which is why these numbers recur so often in exercises.
Common Mistakes
- Adding the legs without squaring. For legs 6 and 8, c is not 6 + 8 = 14; it is √(36 + 64) = 10.
- Putting a leg in the c position. The alone side of the equation must be the hypotenuse — the longest side, opposite the right angle. Mislabel, and a "leg" problem silently becomes a "hypotenuse" problem.
- Adding when you should subtract. Finding a leg means c² − a². Adding 13² + 5² in Example 2 gives √194 ≈ 13.9, longer than the hypotenuse itself — an impossible leg, and a built-in alarm bell.
- Forgetting the square root at the end. c² = 100 is not the answer; c = 10 is.
- Using it on non-right triangles. The theorem needs a right angle. For other triangles the law of cosines is the generalisation that applies.
Try your own sides in the Pythagorean theorem calculator, read the standard treatment in OpenStax Prealgebra, and browse the full formulas library for more reference pages.