Pythagoras' theorem calculator
The missing side of a right-angled triangle from the other two, with the working and the angles.
Fill in any two sides and leave the one you want blank. Sides a and b meet at the right angle; c is opposite it.
How Pythagoras' theorem works
In a right-angled triangle, the square on the longest side (the hypotenuse, c) equals the squares on the other two sides added together: a² + b² = c². To find the hypotenuse, add the squares and take the square root: with sides 3 and 4, c = √(9 + 16) = √25 = 5. To find a shorter side, take the squares away instead: with a hypotenuse of 13 and a side of 5, the other side is √(169 − 25) = √144 = 12.
Pythagorean triples
| a | b | c | Check |
|---|---|---|---|
| 3 | 4 | 5 | 9 + 16 = 25 |
| 5 | 12 | 13 | 25 + 144 = 169 |
| 6 | 8 | 10 | 36 + 64 = 100 |
| 7 | 24 | 25 | 49 + 576 = 625 |
| 8 | 15 | 17 | 64 + 225 = 289 |
| 9 | 12 | 15 | 81 + 144 = 225 |
| 9 | 40 | 41 | 81 + 1600 = 1681 |
| 12 | 16 | 20 | 144 + 256 = 400 |
| 20 | 21 | 29 | 400 + 441 = 841 |
Whole-number sides that fit the theorem exactly.
Frequently asked questions
What is Pythagoras' theorem?
In a right-angled triangle, a² + b² = c², where c is the hypotenuse (the side opposite the right angle) and a and b are the other two sides.
How do you find the hypotenuse?
Square the two shorter sides, add them, and take the square root. Sides of 6 and 8: √(36 + 64) = √100 = 10.
How do you find a shorter side?
Square the hypotenuse, take away the square of the side you know, and take the square root. Hypotenuse 13 and side 5: √(169 − 25) = √144 = 12.
Does Pythagoras work for any triangle?
Only right-angled ones. For other triangles you need the cosine rule, of which Pythagoras is the special case where the angle is 90°.
How do you know which side is the hypotenuse?
It's the longest side, opposite the right angle.
Worked examples
Whole-number triangles (Pythagorean triples):
3, 4, 5 5, 12, 13 6, 8, 10 7, 24, 25 8, 15, 17 9, 12, 15 9, 40, 41 10, 24, 26 11, 60, 61 12, 16, 20 12, 35, 37 13, 84, 85 14, 48, 50 15, 20, 25 15, 36, 39 16, 30, 34 16, 63, 65 18, 24, 30 18, 80, 82 20, 21, 29 20, 48, 52 21, 28, 35 21, 72, 75 24, 32, 40 24, 45, 51 24, 70, 74 25, 60, 65 27, 36, 45 28, 45, 53 28, 96, 100 30, 40, 50 30, 72, 78 32, 60, 68 33, 44, 55 33, 56, 65 35, 84, 91 36, 48, 60 36, 77, 85 39, 52, 65 39, 80, 89 40, 42, 58 40, 75, 85 42, 56, 70 45, 60, 75 48, 55, 73 48, 64, 80 51, 68, 85 54, 72, 90 57, 76, 95 60, 63, 87 60, 80, 100 65, 72, 97
Other sides:
1 and 1 1 and 2 1 and 3 1 and 4 1 and 5 1 and 6 1 and 7 1 and 8 1 and 9 1 and 10 2 and 2 2 and 3 2 and 4 2 and 5 2 and 6 2 and 7 2 and 8 2 and 9 2 and 10 3 and 3 3 and 5 3 and 6 3 and 7 3 and 8 3 and 9 3 and 10 4 and 4 4 and 5 4 and 6 4 and 7 4 and 8 4 and 9 4 and 10 5 and 5 5 and 6 5 and 7 5 and 8 5 and 9 5 and 10 6 and 6 6 and 7 6 and 9 6 and 10 7 and 7 7 and 8 7 and 9 7 and 10 8 and 8 8 and 9 8 and 10 9 and 9 9 and 10 10 and 10
Every pair of whole-number sides up to 24 has its own page with the working.