Summary

Solve for a right-triangle hypotenuse or missing leg.

Calculation details

Choose whether to solve for the hypotenuse or a leg. Calculations retain raw JavaScript number precision; display values are rounded to at most six decimal places.

Formula

c = √(a² + b²); leg = √(c² − a²).

Worked example

Pythagorean Theorem Calculator example

Hypotenuse is 5.

How it works

Choose hypotenuse or missing-leg mode, then enter the two known positive sides of a right triangle.

Frequently asked questions

How accurate is the Pythagorean Theorem Calculator?

The calculation keeps raw numeric precision and rounds only the displayed result to at most six decimal places.

What should I do with an invalid result?

Check that every visible value is finite and that no required divisor is zero.

Related calculators