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.

Hypotenuse c = 5
the missing side

Workingc = √(3² + 4²) = √25
Angles36.87° opposite a, 53.13° opposite b, and 90°
Area6
Perimeter12

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

abcCheck
3459 + 16 = 25
5121325 + 144 = 169
681036 + 64 = 100
7242549 + 576 = 625
8151764 + 225 = 289
9121581 + 144 = 225
9404181 + 1600 = 1681
121620144 + 256 = 400
202129400 + 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):

Other sides:

Every pair of whole-number sides up to 24 has its own page with the working.

Embed this calculator on your website

Free to use. Paste this into your page's HTML; please keep the link underneath.

Related calculators