Pythagorean Theorem

Solve for a missing side of a right triangle (a² + b² = c²)

Find a missing side of a right triangle

Enter the two known side lengths to solve for the third with the Pythagorean theorem, a² + b² = c². Side a and side b are the legs; c is the hypotenuse, opposite the right angle. Calculations stay in this browser.

Choose the side to solve

Enter a positive length.

Enter a positive length.

This is the side being solved.

Use the same unit for both known sides. The result uses that unit and is rounded to four decimal places.

Solved side c

5.0000

c = √(a² + b²) = √(3² + 4²) = 5.0000

Try an example

How the Pythagorean theorem works

For a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². To find c, calculate √(a² + b²). To find a, calculate √(c² − b²); to find b, calculate √(c² − a²). A leg result is possible only when the hypotenuse is longer than the other leg.

This calculator accepts positive finite side lengths and recalculates as you type. It does not convert units, so enter both known sides using the same unit. For triangles that need angle or non-right-triangle calculations, use the triangle solver.

Pythagorean theorem calculator features

Solve for one missing side of a right triangle from the other two. Side a and b are legs; c is the hypotenuse. Enter both known lengths in the same unit.

  • Choose whether to solve for leg a, leg b, or hypotenuse c.
  • See the substituted Pythagorean formula and a result rounded to four decimal places.
  • Get inline feedback for blank, non-positive, non-finite, or impossible side lengths.
  • Try 3-4-5 and 5-12-13 examples, then reset the calculator.
  • Calculate locally in your browser; side lengths are not sent to a server.

Pythagorean theorem calculator FAQ

How do you find the missing side of a right triangle?

Use a² + b² = c², where a and b are the legs and c is the hypotenuse. To find c, take the square root of a² + b². To find a leg, subtract the other leg squared from c², then take the square root.

Can the hypotenuse be the same length as a leg?

No. In a right triangle the hypotenuse is the longest side, so c must be greater than either leg. The calculator checks this before solving for a or b.

Do the side lengths need a unit?

No unit is required. Enter all known sides in the same unit; the solved side uses that same unit. This calculator does not convert units.

Does this solve triangles that are not right triangles?

No. The Pythagorean theorem applies only to right triangles. Use a triangle solver with angle information for other triangle types.

Infinio Tools
© 2026 Infinio Labs