Pythagorean Theorem Calculator
Find the missing side of a right triangle, with its angles and area.
Last updated 2026-11-26 · How we calculate this
Missing Side
Enter two sides to find the third.
The theorem only applies to triangles with a 90° angle; for other triangles the law of cosines is needed. Answers are rounded to four decimal places, so a side such as √2 shows as 1.4142. Angles are in degrees.
Quick Answer
In a right triangle, a² + b² = c², where c is the hypotenuse, the longest side, opposite the right angle. To find c, square the two legs, add them and take the square root: legs of 3 and 4 give 9 + 16 = 25, so c = 5. To find a leg, subtract instead: √(13² − 5²) = √144 = 12.
How to Use This Calculator
Choose whether you know the two shorter sides (the legs) and want the hypotenuse, or know the hypotenuse and one leg and want the other leg. Use any unit, such as inches, feet or meters, as long as every side is in the same one, and the answer comes out in that unit. Alongside the missing side you get the working, the two angles that are not the right angle, and the triangle's area and perimeter.
- Choose Find the hypotenuse or Find a leg.
- Enter the two sides you know, all in the same unit.
- Read the missing side and the working.
- Check the angles, area and perimeter if you need them.
The Formula
a² + b² = c² · c = √(a² + b²) · a = √(c² − b²)
Picture a square drawn on each side of the triangle. The theorem says the square on the hypotenuse has exactly the same area as the other two squares put together. That is why finding the hypotenuse means adding the squares of the legs, and finding a leg means subtracting the square of the known leg from the square of the hypotenuse. The two angles that are not the right angle always add up to 90°, and the area is half of one leg times the other.
Worked Example
Legs of 3 and 4: 3² + 4² = 9 + 16 = 25, so the hypotenuse is √25 = 5. The angles are 36.8699° and 53.1301°, the area is 6 and the perimeter is 12.
Hypotenuse 13 and a leg of 5: 13² − 5² = 169 − 25 = 144, so the missing leg is √144 = 12.
A 12-foot ladder with its foot 3 feet from the wall: 12² − 3² = 135, so it reaches √135 = 11.619 feet up the wall.
A 55-inch TV is measured across the diagonal. For a 16 : 9 screen the diagonal of a 16 by 9 shape is about 18.3576, so the screen is about 55 × 16 ÷ 18.3576 = 47.9367 inches wide and 26.9644 inches tall.