Skip to content
AllCalcHub

Pythagorean Theorem Calculator

Use Pythagoras' theorem to find a missing side of a right triangle.

About the Pythagorean Theorem Calculator

In any right-angled triangle, the square on the hypotenuse (the side opposite the right angle) equals the sum of the squares on the other two sides. Builders use the 3-4-5 rule to check corners are square.

The formula

a² + b² = c²

c
hypotenuse, the longest side
a, b
the two legs that meet at the right angle

Pythagorean triples

abc
345
51213
81517
72425
202129
94041

Worked example

Example: Hypotenuse c = 6.4031242374

  1. Inputs: Find: Hypotenuse c; Leg a: 4; Leg b: 5.
  2. Formula: a² + b² = c²
  3. Square both legs and add 4² + 5² = 16 + 25 = 41
  4. Take the square root c = 6.4031242374
  5. Result: Hypotenuse c = 6.4031242374

Questions people ask

Does it work for any triangle?

Only right-angled ones. For others use the law of cosines.

How do I check a corner is square?

Measure 3 units along one side and 4 along the other; the diagonal should be exactly 5.