What Is the Pythagorean Theorem?
The Pythagorean theorem says that in any right triangle, a triangle with a 90° angle, the square of the longest side equals the sum of the squares of the other two sides:
a² + b² = c²
Here c is the hypotenuse, the side opposite the right angle and always the longest, and a and b are the two shorter sides, called legs. The theorem is named after the Greek mathematician Pythagoras (around 570–495 BC), although Babylonian and Indian mathematicians knew and used the relationship centuries earlier.
How to Find the Hypotenuse
Square both legs, add them, and take the square root: c = √(a² + b²). For legs of 3 and 4: c = √(9 + 16) = √25 = 5. For legs of 5 and 7: c = √(25 + 49) = √74 ≈ 8.602. When the result isn't a whole number, the calculator also shows the exact simplified square root. For legs of 5 and 5, c = √50 = 5√2 ≈ 7.071.
How to Find a Missing Leg
Rearrange the formula: a = √(c² − b²). With a hypotenuse of 13 and a leg of 5: a = √(169 − 25) = √144 = 12. Always subtract from the hypotenuse squared. If the "hypotenuse" you enter isn't the longest side, there's no valid triangle, and the calculator will tell you.
Pythagorean Triples
A Pythagorean triple is a set of three whole numbers that fit a² + b² = c². Multiplying a triple by any whole number gives another one, so 6-8-10 and 9-12-15 are also triples.
| a | b | c | Check |
|---|---|---|---|
| 3 | 4 | 5 | 9 + 16 = 25 |
| 5 | 12 | 13 | 25 + 144 = 169 |
| 8 | 15 | 17 | 64 + 225 = 289 |
| 7 | 24 | 25 | 49 + 576 = 625 |
| 20 | 21 | 29 | 400 + 441 = 841 |
| 9 | 40 | 41 | 81 + 1,600 = 1,681 |
Is It a Right Triangle? (The Converse)
The theorem also works backwards: if a² + b² = c² for the longest side c, the triangle must contain a right angle. If a² + b² is less than c², the largest angle is obtuse (more than 90°). If it's greater, all angles are acute. Builders use this with the famous 3-4-5 rule: measure 3 units along one wall and 4 along the other, and if the diagonal is exactly 5, the corner is square.
Real-World Uses
- Construction: squaring corners, roof rafters, stair stringers and ramps.
- Screens and TVs: a 55-inch TV is measured diagonally, so its width and height follow Pythagoras.
- Navigation and maps: straight-line distance from east-west and north-south distances. The distance formula between two points is Pythagoras on a grid.
- Ladders: how far up a wall a ladder reaches, given its length and the distance of its base from the wall.
Pythagoras and the Distance Formula
The distance between two points on a graph is just the Pythagorean theorem in disguise. The horizontal and vertical differences form the two legs of a right triangle, and the distance is the hypotenuse: d = √((x₂ − x₁)² + (y₂ − y₁)²). In three dimensions, the theorem extends to d = √(Δx² + Δy² + Δz²), which gives, for example, the diagonal of a box. A box measuring 3 × 4 × 12 has a space diagonal of √(9 + 16 + 144) = √169 = 13.
A Famous Proof
There are hundreds of proofs of the theorem. One of the simplest arranges four copies of the right triangle inside a large square of side a + b. The empty space in the middle is a square of side c, so (a + b)² = 4 × ½ab + c². Expanding gives a² + 2ab + b² = 2ab + c², and cancelling 2ab leaves a² + b² = c².
Frequently Asked Questions
What is the formula for the hypotenuse?
c = √(a² + b²), the square root of the sum of the squares of the two legs.
Does Pythagoras work for all triangles?
Only right triangles. For other triangles, use the law of cosines with the Triangle Calculator.
Which side is the hypotenuse?
The longest side, opposite the right angle.
What is 5√2?
The simplified form of √50, because 50 = 25 × 2 and √25 = 5. It's about 7.071.
How do I check if a triangle is right-angled?
Choose "Is it a right triangle?" and enter the three sides. The calculator checks whether a² + b² = c².