PennyPages

Pythagorean Theorem Calculator

Enter any two sides of a right triangle and get the third, plus a check for whether three side lengths make a right triangle.
Fill in any two sides — the third is worked out. Clear a box to solve for it instead.

About the Pythagorean Theorem Calculator

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.

Common questions

What is the Pythagorean theorem formula?

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.

How do I find the hypotenuse?

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.

How do I find a missing leg?

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.

How can I tell if a triangle is a right triangle?

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.

Does the Pythagorean theorem work for any triangle?

No — it only applies to right triangles, ones with a 90-degree angle. For other triangles you need the law of cosines instead.

Put this tool on your site

Free to embed — your visitors use it without leaving your page.

PennyPages #045 · free forever · same input, same answer, every time