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.
c = √(a² + b²)b = √(c² − a²)Worked example: 3-4-5 triangle
| Known legs | a = 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.