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.
Result
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
- Identify the hypotenuse opposite the right angle, then fill in exactly two sides in a common length unit.
- 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 √.
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
- Only right triangles with positive sides are supported.
- An irrational result is displayed numerically rather than as a simplified radical.
Sources & methodology
Related calculators
- Triangle Calculator: Solve Sides, Angles & Area
Solve a planar triangle from three measurements, including at least one side. Find sides, angles, area and both valid configurations in the ambiguous SSA case.
- Right Triangle Calculator: Sides, Angles & Area
Reconstruct a right triangle from two measurements. Find all three sides, acute angles, area and perimeter; compare swapped-leg solutions where applicable.
- Slope Calculator: Two Points, Grade & Incline
Find rise, run, slope, percent grade, line equation and distance. Or find a second point from an incline and distance.
- Distance Calculator: 2D, 3D & Earth Coordinates
Find straight-line distance between two points in a plane or in space. For latitude and longitude, estimate the shortest surface arc on a spherical Earth.