Pythagorean Theorem Calculator: Find a Missing Side

Calculate a missing leg or hypotenuse from two sides of a right triangle. Enter each known side as a length or a value under a square root.

Leave the unknown side blank. The hypotenuse is opposite the right angle.

Example: 1,250.50. Use a period for decimals.

Result

Enter values and select Calculate.

How is this calculated?

Add the squared legs to find the squared hypotenuse. To find a leg, subtract the other squared leg from the squared hypotenuse.

Worked example: Recover a missing leg from a diagonal

For a right triangle with diagonal 13 and one leg 5, the unknown leg is √(13² − 5²) = √144 = 12. Enter dimensions in the same unit.

Method and limits

Leave one side empty. The calculator uses a² + b² = c² and requires a nondegenerate right triangle.

How to use this calculator

  1. Identify the hypotenuse opposite the right angle, then fill in exactly two sides in a common length unit.
  2. Leave the missing side blank. If a known side is written as √n, enter n and set the format for that field to Value under √.
The legs meet at 90°. The diagonal c is the hypotenuse, across from the right angle. Not to scale.

Find a perpendicular height from the diagonal

A hypotenuse of 13 and leg of 5 leave √(169 − 25) = 12 for the other leg. Adding rather than subtracting would answer a different question.

Use two legs to find a diagonal

For a 9-by-12 rectangle, one corner-to-corner diagonal forms the hypotenuse of a right triangle. Add the squared legs, 81 + 144 = 225, then take the positive root: 15.

Read the square-root format literally

Entering 18 with the Value under √ format means that the side length is √18, not 18. Two legs √9 and √16 produce hypotenuse √25 = 5.

Check orientation before subtracting

If a given leg is as long as, or longer than, the given hypotenuse, the pair does not form a nondegenerate right triangle. Swap the labels only if you actually mislabeled the measurements.

Frequently asked questions

Does it find angles too?
No. This tool focuses on the missing side. The right triangle calculator also solves angles and area.
Can I enter 3 ft and 24 inches directly?
Convert them to one unit first: for example, 3 feet and 2 feet.
Is the longest side always the hypotenuse?
Yes in a right triangle; it is the side across from the right angle.
Can I enter a negative or zero side?
No. Each supplied side must be positive.

Common mistakes and limits

Sources & methodology

Related calculators