Pythagorean theorem calculator for a hypotenuse or a leg

Find the missing side of a right triangle.

Rules reviewed: BS / EN
01

Your inputs

Starting values are an example. Replace them with your own.

Your inputs stay in your browser.

02

Your result

Enter your details and run the calculation.

About this result

Informational calculations. Check assumptions, dates and jurisdiction before making a decision.

Full disclaimer

How to find the hypotenuse or a leg

The Pythagorean theorem says that in a right triangle the square of the hypotenuse equals the sum of the squares of the legs: a² + b² = c². The calculator finds the hypotenuse as √(a² + b²) or a missing leg as √(c² − a²), checking that the hypotenuse is longer than the known leg. For legs of 3 and 4 the hypotenuse is 5.

Frequently asked questions

How do you calculate the hypotenuse of a right triangle?

Square both legs, add them and take the square root: c = √(a² + b²). For legs of 3 and 4 you get √(9 + 16) = √25 = 5. The calculator does this automatically when you choose the hypotenuse as the unknown side.

How do you find a leg when you know the hypotenuse?

Subtract the square of the known leg from the square of the hypotenuse and take the root: b = √(c² − a²). For a hypotenuse of 5 and a leg of 3 you get √(25 − 9) = √16 = 4. The hypotenuse must be longer than the leg, otherwise the calculator shows an error.

METHOD

Formula and method

a²+b²=c², where c is the hypotenuse.

TRACEABLE

Sources and validity

Basic arithmetic or geometry using the formula shown. Uses only your inputs.

How we maintain data