Pythagorean Theorem Calculator
Right triangle: a² + b² = c²
Enter any two side lengths and leave the third blank to solve for it.
Understanding the Pythagorean Theorem
The Pythagorean theorem describes a fixed relationship between the three sides of any right triangle, a triangle with one 90-degree angle. If a and b are the lengths of the two shorter sides, called legs, and c is the length of the longest side, called the hypotenuse, then a² + b² = c² always holds true. This relationship works in both directions: it can find a missing side length when the other two are known, and it can check whether three given lengths actually form a right triangle at all.
Solving for the hypotenuse is the more familiar direction: square both legs, add the results, and take the square root of the sum, since c = √(a² + b²). Solving for a missing leg works the same way but in reverse, rearranging the formula to a² = c² − b² (or the equivalent for b), because the hypotenuse is always the largest side and its square must be reduced by the known leg’s square before taking the square root. This is also why the calculator above rejects any hypotenuse value that is not strictly greater than the known leg: no real triangle could produce it.
The theorem extends far beyond triangles on paper. It underlies how builders check that a corner is truly square, how navigators calculate the shortest straight-line distance between two points on a grid, and how the distance formula in coordinate geometry is built. Whenever two measurements meet at a right angle, whether on a construction site or a coordinate plane, the Pythagorean theorem connects them to the diagonal distance between their endpoints.
