Pythagorean Theorem Calculator

Enter any two sides of a right triangle and leave the third blank.

Right triangle

Leave exactly one box empty. c is the hypotenuse (the longest side, opposite the right angle).

Hypotenuse c5
Area
6
Perimeter
12
Angles A, B
36.8699°, 53.1301°

Working

  1. c = √(a² + b²) = √(3² + 4²) = √25 = 5

The theorem

a² + b² = c²

a, b
the two shorter sides (legs)
c
the hypotenuse
Rearranged

c = √(a² + b²)

a = √(c² − b²)

Worked example

Legs of 3 and 4

  1. c² = 3² + 4² = 9 + 16 = 25
  2. c = √25 = 5

The hypotenuse is 5.

Ladder against a wall

  1. A 5 m ladder with its foot 1.5 m from the wall
  2. height = √(5² − 1.5²) = √22.75 ≈ 4.77

It reaches about 4.77 m up the wall.

Pythagorean triples

Whole-number right triangles
abc
345
51213
81517
72425
202129
94041

Any multiple of a triple also works: 6, 8, 10 or 30, 40, 50.

Common questions

What if the hypotenuse I enter is shorter than a leg?

That triangle cannot exist — the hypotenuse is always the longest side — so the calculator shows an error instead of a result.