Math

Pythagorean Theorem Calculator

Find the missing side of a right triangle from the other two, along with the area, the perimeter, and the two acute angles.

How a right triangle is solved

The Pythagorean theorem says a² + b² = c², where c is the side opposite the right angle. Enter the two sides you know and leave the missing one blank. If both legs are filled in, the hypotenuse is the square root of the sum of their squares. If one leg and the hypotenuse are filled in, the missing leg is the square root of the difference of the squares, and the hypotenuse has to be the longer side.

The area is half the product of the two legs. The angle opposite leg a is the arctangent of a divided by b. Those two acute angles add to 90°.

Example: legs of 3 and 4

A right triangle with legs 3 and 4 has hypotenuse 5, because 9 + 16 = 25. The area is 6 and the perimeter is 12. The angle opposite the side of length 3 is about 36.87°, and the angle opposite the side of length 4 is about 53.13°.

The same check works backwards. Enter 5 as the hypotenuse and 3 as one leg, leave the other leg blank, and the missing leg is 4.

Questions people ask

Which side is the hypotenuse?

The hypotenuse is the longest side, and it sits opposite the right angle. In the formula it is c. The two shorter sides are the legs.

Can I enter all three sides?

Yes. The calculator checks whether a² + b² equals c². If the three numbers are not a right triangle, it says so instead of inventing a missing side.

Does this work for a triangle that is not right-angled?

No. Use the triangle solver and enter all three sides. That tool uses Heron’s formula and the law of cosines, which cover acute and obtuse triangles too.

Related calculators

For educational purposes only. Consult a qualified professional for financial or medical advice.

More in MathView all