Pythagorean Theorem Calculator: Find the Missing Side
By FindMySum · Last reviewed
The Pythagorean theorem says that in a right triangle the square on the hypotenuse equals the sum of the squares on the two legs: a² + b² = c². This Pythagorean theorem calculator uses it to find whichever side is missing, then works out the two acute angles, the area and the perimeter, so you can check a homework answer, a roof pitch or a carpentry layout in one step.
Worked example
Take the classic triangle with legs a = 3 and b = 4, and solve for the hypotenuse c:
- Square the legs: 3² = 9 and 4² = 16.
- Add them: 9 + 16 = 25.
- Take the square root: c = √25 = 5.
With all three sides known, the rest follows. The area of a right triangle is half the product of the legs, 3 × 4 ÷ 2 = 6 square units, and the perimeter is 3 + 4 + 5 = 12 units. The angle opposite the leg of 3 is arctan(3/4) ≈ 36.87°, the angle opposite the leg of 4 is about 53.13°, and the two add to 90° as they must.
Which side is which
The hypotenuse is always the side opposite the right angle and always the longest. The legs are the two sides that form the right angle, and it does not matter which one you call a. Mixing them up is the most common error: if you put the longest side in as a leg and solve for "c", you get a number that is too large, and the check that c is longer than both legs fails.
Answers are usually irrational. Legs of 1 and 1 give a hypotenuse of √2 ≈ 1.4142, which is why the calculator shows decimals. For the angle-based shortcuts of 30-60-90 and 45-45-90 triangles, see the special right triangles calculator; for triangles without a right angle, use the triangle calculator.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.