How it works

The Pythagorean theorem says a² + b² = c² for the two legs a, b and the hypotenuse c of a right triangle. Leave the side you want blank. For the hypotenuse, square and add the legs, then take the square root. For a leg, square the hypotenuse, subtract the other leg, then take the square root.

Roots are simplified exactly: √20 becomes 2√5, not 4.47214. A decimal to 6 significant figures rides along for checking, and the hypotenuse validation stops the common mistake of putting the longest known side in a leg slot.

Worked example

Try it with these numbers

The result card above already shows this example — change any field and hit Solve.

FAQ

Quick answers

How do I solve for the hypotenuse?

Square both legs, add them, and take the square root: c = √(a² + b²). For legs 3 and 4 that is √(9 + 16) = √25 = 5.

How do I solve for a missing leg?

Rearrange to a² = c² − b². With hypotenuse 13 and one leg 5: a² = 169 − 25 = 144, so a = 12. The hypotenuse must always be the longest side, or the inputs are rejected.

Why is the answer written as 2√5 instead of a decimal?

2√5 is exact and 4.47214 is not. The radical form is what teachers ask for, so this page keeps the simplified radical as the main answer and shows the decimal underneath as a check.

Related solvers

Keep going

Every calculator on one page: all mathplum calculators.