Pythagorean Theorem Calculator

Solve a right triangle with the Pythagorean theorem. Find the hypotenuse or a missing leg, plus area, perimeter and angles. Free with formulas.

FreeNo signupUpdated Nov 14, 2026By CalculatorBase Editorial Team

Pythagorean Theorem Calculator

Find hypotenuse
Find a leg
Result
–

The Pythagorean theorem

In any right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides. Enter any two sides and this calculator finds the third, then adds area, perimeter and both acute angles.

The formulas

a² + b² = c²
c = √(a² + b²)
a = √(c² - b²)
Area = (a x b) / 2
Example: legs of 3 and 4 give c = √(9 + 16) = √25 = 5. Area = 3 x 4 / 2 = 6. Perimeter = 12. The acute angles are 36.87° and 53.13°.

Common Pythagorean triples

abc
345
51213
81517
72425
202129

Where it is used

Builders use it to check that corners are square (the 3-4-5 method), surveyors use it for distances, and anyone can use it to find the diagonal of a screen, room or ramp. The theorem only applies to right triangles. For other triangles, use the law of cosines.

Frequently asked questions

What is the Pythagorean theorem formula?

a squared plus b squared equals c squared, where c is the hypotenuse of a right triangle.

How do I find a missing leg?

Subtract the square of the known leg from the square of the hypotenuse, then take the square root.

Does it work for any triangle?

No. It works only for right triangles. For others, use the law of cosines.

What is a Pythagorean triple?

A set of three whole numbers that satisfy the theorem, such as 3, 4, 5 or 5, 12, 13.

How do I check a square corner with 3-4-5?

Measure 3 units along one edge and 4 along the other. If the diagonal between the marks is exactly 5 units, the corner is 90 degrees.

Explore other calculators

About this calculator

Written by
CalculatorBase Editorial Team
Last reviewed
November 14, 2026
Method
Standard formulas applied to your inputs, with no data stored.

Results are calculated from the values you enter using standard published formulas. They are estimates for general information. Read the full disclaimer.