The Pythagorean theorem says that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a squared plus b squared equals c squared. If you know any two sides, you can find the third. To find the hypotenuse, add the squares of both legs and take the square root. To find a leg, subtract the square of the other leg from the square of the hypotenuse and take the square root.
Enter any two of a, b and c above and the missing side appears as you type. The checker below it does the same test in reverse: enter three lengths and it tells you whether they satisfy the theorem, which means the triangle is a right triangle. The classic example is 3, 4 and 5.
a squared plus b squared equals c squared, where c is the hypotenuse — the longest side, opposite the right angle — and a and b are the other two sides.
Square both legs, add them, and take the square root. For legs of 3 and 4: 9 plus 16 is 25, and the square root of 25 is 5, so the hypotenuse is 5.
Square the hypotenuse, subtract the square of the known leg, and take the square root. With a hypotenuse of 13 and a leg of 5: 169 minus 25 is 144, and the square root of 144 is 12.
Check whether the square of the longest side equals the sum of the squares of the other two. 6, 8 and 10 works because 36 plus 64 is 100, so it is a right triangle.
No — it only applies to right triangles, ones with a 90-degree angle. For other triangles you need the law of cosines instead.