Math

Pythagorean Theorem Calculator

Solve for any side of a right triangle using a² + b² = c².

Your numbers

Your results

Missing side
Missing side
—
Area of the triangle
—

Pythagorean Theorem Calculator by TheCalcTools

How the Pythagorean Theorem Calculator works

Choose whether you want the hypotenuse or a leg.

To find the hypotenuse, enter legs a and b. To find leg a, enter leg b and the hypotenuse c.

The calculator applies a² + b² = c².

The formula

a² + b² = c²c = √(a² + b²)

Worked example

Using the default values shown in the calculator:

FindHypotenuse (c)
Leg a / known leg3
Leg b4
Hypotenuse (c), if known5
  1. With legs 3 and 4: a² + b² = 9 + 16 = 25.
  2. c = √25 = 5.00.
  3. The triangle’s area is ½ × 3 × 4 = 6.00.

Result:

Missing side5.0000
Area of the triangle6.0000

Frequently asked questions

What is a Pythagorean triple?

A set of whole numbers that satisfies the theorem, such as 3-4-5, 5-12-13 and 8-15-17.

Does it work for any triangle?

No. It applies only to right triangles. For other triangles use the law of cosines.

Sources and further reading

More in Math · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.