Free online tools

Pythagorean Theorem Calculator

Choose the missing side of a right triangle and enter the two sides you know. The hypotenuse is the side opposite the right angle.

Enter your values

Only the two known sides are used. Leave the side you are solving for blank.

This tool processes your input in your browser.

Result

Find the length across from the right angle

The theorem is a² + b² = c². If the legs are 3 and 4, their squares add to 25. Taking the positive square root gives a hypotenuse of 5.

Find a leg from the other leg and the hypotenuse

Rearrange the equation. For a hypotenuse of 13 and a known leg of 5, subtract 5² from 13² and take the square root to find the missing leg of 12.

Use the same measurement unit for both sides

If your dimensions use different units, convert them first. The result inherits the unit you select. The two acute angles are calculated from the completed triangle.

Frequently asked questions

Which side is c?

The hypotenuse, c, is opposite the 90-degree angle and is longer than either leg.

Why does a hypotenuse equal to a leg give an error?

The missing leg would have length zero, leaving a line rather than a triangle with positive sides.

Can I use this for any triangle?

The formula assumes one right angle. The Triangle Area Calculator has methods for triangles from other known measures.