Pythagorean Calculator

Solve a² + b² = c² for the side you mark as missing.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

When the hypotenuse is missing, the page takes the square root of the sum of the squares of the legs. When a leg is missing, it takes the square root of the difference of squares.

The diagram draws the right triangle from those lengths.

How to use it

  1. Enter the two sides you know.
  2. Mark which side is missing: a leg or the hypotenuse.
  3. Calculate. A leg must be shorter than the hypotenuse.

Limitations

The missing side of a right triangle

Which side is unknown

You mark the missing side as a, b, or c, with c reserved for the hypotenuse. When c is the unknown, both legs must be greater than zero and the length returned is the hypotenuse of those two legs, the same square-root-of-sum-of-squares that a right triangle demands. When a leg is the unknown, the hypotenuse must be greater than zero, the known leg must be greater than zero, and that known leg must be strictly shorter than the hypotenuse. The unknown leg is then the square root of c squared minus the known leg squared.

Three, four, and the long side

Legs 3 and 4 with c missing produce 5, because 9 + 16 = 25. The panel labels that result with the letter you marked missing. Flip the problem: hypotenuse 5, known leg 4, missing leg a. The known leg is shorter than 5, and the root of 25 − 16 is 3. The diagram draws the right triangle from the three lengths once the missing one has been filled in. Units are whatever you typed. Nothing converts centimeters to meters.

Legs that cannot sit under that hypotenuse

A known leg equal to the hypotenuse, or longer, is rejected. A zero or negative leg is rejected when you are solving for c. A zero or negative hypotenuse is rejected when you are solving for a leg. The page does not accept an angle in place of a side, and it does not check that some other triangle with those sides fails a non-right inequality, because the right angle is assumed by the formula you selected. Leaving the hypotenuse blank while asking for a leg is rejected. Asking for c while a leg is blank or non-numeric fails the numeric read before the root is attempted.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.