Pythagorean Theorem Calculator

Solve a² + b² = c² for the hypotenuse or a missing leg.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Pythagorean theorem calculator

Solve a² + b² = c² in either direction. Find the hypotenuse from the two legs, or find a missing leg from the hypotenuse and the other leg. The formula used is shown alongside each result, so it doubles as a quick way to check your own working in geometry, construction and trigonometry.

How it works

The theorem relates the three sides of a right triangle, where c is the hypotenuse (the side opposite the right angle):

hypotenuse:  c = √(a² + b²)
missing leg: b = √(c² − a²)

When solving for a leg, the calculator checks that the hypotenuse is longer than the known leg, since a real right triangle cannot have a leg as long as or longer than its hypotenuse.

Example

Hypotenuse from legs 3 and 4:

  • c = √(3² + 4²) = √(9 + 16) = √25 = 5

Missing leg from hypotenuse 5 and leg 3:

  • b = √(5² − 3²) = √(25 − 9) = √16 = 4
Solve forKnown sidesResult
Hypotenusea=3, b=4c = 5
Hypotenusea=5, b=12c = 13
Legc=5, a=3b = 4

Everything runs in your browser — nothing is uploaded.

Ad placeholder (rectangle)