Updated · Built and checked by the PlinzoTools team, formulas tested against published sources
Solve for any missing side of a right triangle: a² + b² = c².
5.0000
The Pythagorean theorem relates the three sides of any right triangle. This tool solves for whichever side is missing, given the other two.
Choose which side to find (a, b, or the hypotenuse c), then enter the other two. The missing side appears instantly.
a² + b² = c²
where c is always the hypotenuse (the longest side, opposite the right angle).
The calculator lets you pick which of the three sides to solve for: a, b or the hypotenuse c. Choosing a leg (a or b) means you must supply the hypotenuse and the other leg. The hypotenuse is always the longest side and sits opposite the right angle, so if you are unsure which measurement is c, look for the side that does not touch the right-angle corner.
Solving for a leg. A hypothetical triangle has hypotenuse c = 13 and leg a = 5. Then b = the square root of (13² - 5²) = the square root of (169 - 25) = the square root of 144 = 12.
A non-tidy answer. With c = 10 and a = 7, b = the square root of (100 - 49) = the square root of 51, which the tool shows as 7.1414 (four decimal places).
c = √(a² + b²) a = √(c² - b²) b = √(c² - a²)
When you solve for a leg, the hypotenuse must be strictly longer than the leg you enter. If it is equal or shorter, the subtraction would give zero or a negative number under the square root, and the tool shows no result. That is the calculator protecting you from an impossible triangle. If you see this, recheck which measurement is the hypotenuse.
The theorem is useful when checking that a foundation or frame is square, when finding the length of a diagonal brace, when working out the shortest straight-line distance across a rectangular area, and when finding a ladder's reach on a wall. It also gives the distance between two points on a grid: the horizontal and vertical differences are the legs and the direct distance is c. For load-bearing or safety-related construction, confirm dimensions with the project plans and a qualified professional. The tool reports results rounded to four decimals, so field measurements are more likely to limit your accuracy than the calculation itself.
Yes -- for a triangle with no right angle, use the Law of Cosines Calculator instead.
Because the hypotenuse you entered must be longer than the known leg. If it is not, the triangle is impossible and there is nothing valid to calculate.
It is the longest side and lies directly opposite the 90 degree angle. It is the only side that does not touch the right-angle corner.
Yes. Take the difference in horizontal position as one leg and the difference in vertical position as the other, then solve for c.
Measure both sides from the corner, compute c, and compare it with the measured diagonal. A match means the corner is a right angle.
Reference: NIST Weights and Measures