Pythagorean Theorem Calculator

In a right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides. The rule appears in India’s Baudhayana Sulba Sutra as well as in Pythagoras.

Find
Results update as you type.

Hypotenuse c

5

Area
6
Perimeter
12

About this calculator

Choose whether you need the hypotenuse or a leg.

How to use it

  1. Choose what to find.
  2. Enter the two known sides.
  3. Read the missing side.

The formula

c² = a² + b²
c
hypotenuse, opposite the right angle

Worked example

Legs 3 and 4

  1. c = √(9 + 16) = 5.
  2. Area = 6; perimeter = 12.

What the result means

3-4-5, 5-12-13 and 8-15-17 are whole-number (Pythagorean) triples.

Common Pythagorean triples

These sides always form a right triangle. Any multiple of a triple, such as 6-8-10 from 3-4-5, is also a triple. You can make new ones with m² − n², 2mn and m² + n² for whole numbers m > n.

Pythagorean triples with area and perimeter
abc (hypotenuse)AreaPerimeter
345612
68102424
512133030
815176040
724258456
20212921070
12353721084
9404118090
116061330132

Worked example: how high a ladder reaches

A 5 m ladder leans against a wall with its foot 1.5 m from the wall. Choose ‘A leg’, enter side a = 1.5 and hypotenuse c = 5. The other leg is √(25 − 2.25) ≈ 4.770 m, so the ladder reaches about 4.77 m up the wall.

Using the converse to check a right angle

The theorem also works backwards: if a² + b² = c² for the three sides, the angle opposite c is exactly 90°. Builders use this to square a corner. Mark 3 units along one wall and 4 along the other; if the distance between the marks is 5, the corner is a right angle. Larger multiples such as 6-8-10 give a more accurate check.

Assumptions

  • All lengths in the same unit.

Limitations

  • Results are rounded to 10 significant figures.

Frequently asked questions

How do I find the hypotenuse?

√(a² + b²).

How do I find a leg?

√(c² − a²).

Does it work for any triangle?

Only right triangles; use the law of cosines otherwise.

What is a Pythagorean triple?

It is a set of three whole numbers a, b and c with a² + b² = c², such as 3, 4, 5 or 5, 12, 13. They give right triangles with whole-number sides.

How can I tell if a triangle is right-angled from its sides?

Square the two shorter sides and add them. If the total equals the square of the longest side, the triangle is right-angled; if it is larger the triangle is acute, and if smaller it is obtuse.

Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.