Pythagorean Theorem Calculator: Hypotenuse or Missing Side
In a right triangle, a² + b² = c², where c is the hypotenuse, the side across from the right angle. Legs of 3 and 4 give c² = 9 + 16 = 25, so c = 5.
- Hypotenuse or a leg
- Exact roots like √74
- Right-triangle check
- a²25
- b²49
- c² = a² + b²74
- Decimal8.6023
To find the hypotenuse, square both legs, add them and take the square root: c = √(a² + b²). With legs 5 and 7, c = √(25 + 49) = √74 ≈ 8.6023. To find a missing leg, subtract instead: a = √(c² − b²), so a hypotenuse of 13 with a leg of 5 leaves √(169 − 25) = √144 = 12. This Pythagorean theorem calculator works either way, shows the answer as a simplified root and a decimal with every step, and checks whether three sides make a right triangle.
How to Find the Hypotenuse
The Pythagorean theorem says that in any right triangle, a² + b² = c², where a and b are the legs and c is the hypotenuse, the side opposite the 90° angle (OpenStax Prealgebra 2e, 9.3). It only works for right triangles.
- Square each leg: 5² = 25 and 7² = 49.
- Add the squares: 25 + 49 = 74. That's c².
- Take the square root: c = √74 ≈ 8.6023.
Most answers aren't whole numbers. √74 can't be simplified, because 74 = 2 × 37 has no perfect-square factor. When it does, the calculator pulls the square out: legs of 10 and 10 give c = √200 = √(100 × 2) = 10√2 (OpenStax Elementary Algebra 2e, 9.2).
How to Find a Missing Leg
Rearrange the formula: a² = c² − b². With a hypotenuse of 6 and a leg of 3, a² = 36 − 9 = 27, so a = √27 = 3√3 ≈ 5.196. The hypotenuse is always the longest side, so if the number you call c isn't the largest, you've labeled the sides wrong.
Pythagorean Triples
Some right triangles have whole-number sides, called Pythagorean triples. Any multiple of one is a triple too: 3-4-5 doubled is 6-8-10.
| a | b | c | Check |
|---|---|---|---|
| 3 | 4 | 5 | 9 + 16 = 25 |
| 6 | 8 | 10 | 36 + 64 = 100 |
| 5 | 12 | 13 | 25 + 144 = 169 |
| 8 | 15 | 17 | 64 + 225 = 289 |
| 7 | 24 | 25 | 49 + 576 = 625 |
| 20 | 21 | 29 | 400 + 441 = 841 |
| 12 | 35 | 37 | 144 + 1225 = 1369 |
| 9 | 40 | 41 | 81 + 1600 = 1681 |
Is It a Right Triangle?
The theorem works in reverse too: if the squares of the two shorter sides add up to the square of the longest side, the triangle has a right angle (the converse of the Pythagorean theorem, part of the Common Core standard 8.G.B.6). Sides of 5, 12 and 13 pass: 25 + 144 = 169 = 13². Sides of 6, 7 and 9 don't: 36 + 49 = 85, not 81. Enter all three sides in the calculator to check.
Everyday Uses
- A ladder against a wall: a 12-foot ladder with its foot 4 feet out reaches √(144 − 16) = √128 = 8√2 ≈ 11.31 feet up.
- Checking a square corner: because 3² + 4² = 5², the converse says a triangle with sides 3, 4 and 5 has a right angle. So if you measure 3 feet along one side, 4 feet along the other and the diagonal between those marks is 5 feet, the corner is a right angle.
- Distance between two points: the horizontal and vertical gaps are the legs, and the distance is the hypotenuse (Common Core 8.G.B.8). The slope calculator shows the distance with the slope.
Frequently Asked Questions
What is the Pythagorean theorem formula?
a² + b² = c², where a and b are the legs of a right triangle and c is the hypotenuse. Solved for the hypotenuse, c = √(a² + b²); for a leg, a = √(c² − b²).
What is the hypotenuse of a triangle with legs 6 and 8?
10, because 6² + 8² = 36 + 64 = 100 and √100 = 10.
Does the Pythagorean theorem work for every triangle?
No, only right triangles; OpenStax calls it "a special property of right triangles". For the area of any triangle from its three sides, use the area calculator (Heron's formula).
What is the hypotenuse of a right triangle with two equal legs?
The leg times √2: legs of 1 give √2 ≈ 1.414, and legs of 10 give 10√2 ≈ 14.142.
More tools are on the math calculators page.