Pythagorean theorem calculator: find the missing side

In a right triangle, a² + b² = c², where c is the hypotenuse (the side facing the right angle). Pick the unknown side.

Pythagorean theorem calculator: find the missing side

Side to find

Result

13Hypotenuse c

c = √(a² + b²) = √(25 + 144) = √169 = 13
Check: 5² + 12² = 25 + 144 = 169 = 13²
Perimeter (a + b + c)
30
Area (a × b ÷ 2)
30

Pythagorean theorem calculator: find the missing side

Inputs

Side to find
Hypotenuse c
Leg a
5
Leg b
12

How it is calculated

c² = a² + b², so c = √(a² + b²).

Result

Hypotenuse c

13
Perimeter (a + b + c)
30
Area (a × b ÷ 2)
30

How it is calculated

  1. c² = a² + b², so c = √(a² + b²).
  2. For a leg: a = √(c² − b²).
  3. The hypotenuse must always be the longest side.

Example

a = 5 and b = 12: c = √(25 + 144) = √169 = 13. Perimeter 30, area 30.

Good to know

  • Only valid for a right triangle. For other triangles, use the law of cosines.
  • If the hypotenuse is shorter than another side, the triangle is impossible.
  • All sides must use the same unit.

When to use it

  • Check that a corner is square on a building site with the 3-4-5 rule.
  • Find the length of a ladder needed to reach a given height at a given distance from the wall.
  • Work out a screen’s diagonal from its width and height.
  • For the angles and the area of the same triangle, use Right triangle calculator: sides, angles and area.

Frequently asked questions

How does the 3-4-5 rule check a right angle?

Measure 3 units along one side and 4 along the other. If the distance between the two marks is exactly 5, the corner is a right angle. Multiples such as 60, 80 and 100 cm work too.

What are Pythagorean triples?

Whole-number sides that fit a² + b² = c², such as 3-4-5, 5-12-13 or 8-15-17. They give an exact result with no root to round.

Can the theorem show that a triangle is not right-angled?

Yes. If a² + b² is not equal to c² for the longest side c, the triangle has no right angle.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.