Tested tool guide
Tested browser tools
Checked August 16, 2026
What Pythagorean Theorem Calculator does, with a checked example
This calculator solves the right triangle relation a² + b² = c²: enter any two side lengths, and it returns the third, with a visual diagram of the labeled triangle. The catch most people hit: the hypotenuse is the side opposite the right angle and has to be identified as such, and when that side is missing you add the squares, but when a leg is missing you subtract them. The result is only valid for a triangle with one exact 90-degree angle; for anything else, the law of cosines, not this tool, gives the missing side.
Worked example
A concrete input and expected output from the current implementation.
Input
Leg a = 5, hypotenuse c = 13; find leg b
->
With c as the hypotenuse, b² = c² - a² = 169 - 25 = 144, and the square root of 144 is 12. The three sides form the classic 5-12-13 Pythagorean triple, so every value comes out as an exact integer.