Math · Right triangles

Pythagorean Theorem Calculator

Find the missing side of a right triangle and see the Pythagorean formula with your values.

Calculator inputs

units
units
Calculated in your browser.
Result

5 units

Hypotenuse from the two legs

a² + b²9 + 16 = 25
Formulac = √(a² + b²)This applies only to a right triangle.

Use the result with the units shown

Pythagorean Theorem Calculator: what it calculates

Enter two perpendicular legs to find the hypotenuse, or enter a hypotenuse and one leg to find the other leg. The hypotenuse must be the longest side.

Formula and inputs

The theorem applies only to right triangles. The inputs must use the same length unit; the result uses that unit too.

Calculation modelc = √(a² + b²)b = √(c² − a²)

Worked example: 3-4-5 triangle

Known legsa = 3, b = 4
Hypotenuse√(3² + 4²) = 5

The familiar 3-4-5 result is a check for the calculator. It does not make a triangle structural or code compliant.

Limits and assumptions

This page does not solve arbitrary triangles, angles, structural loads, or building-code requirements.

Pythagorean Theorem Calculator FAQs

Which side is the hypotenuse?

It is the side opposite the right angle and must be longer than either leg.

Can the inputs use inches or meters?

Yes, as long as all three lengths use the same unit.