Pythagorean Theorem Calculator
Enter any two sides of a right triangle to find the third. You get the steps, an exact answer (like 2√5) and a diagram.
Find the missing side
How to use it
- Enter the two sides you know. The legs a and b meet at the right angle; the hypotenuse c is the longest side, across from it.
- Leave the side you want empty. The answer, the working and a diagram appear as you type.
- Enter all three sides to check whether they make a right triangle.
The Pythagorean theorem
In a right triangle, the square of the hypotenuse equals the sum of the squares of the legs: a² + b² = c².
- To find the hypotenuse:
c = √(a² + b²). With legs 3 and 4, c = √(9 + 16) = √25 = 5. - To find a leg:
a = √(c² − b²). With c = 13 and b = 5, a = √(169 − 25) = √144 = 12.
Whole-number sets that fit, like 3-4-5, 5-12-13 and 8-15-17, are called Pythagorean triples. When the answer isn’t a whole number, the calculator simplifies the square root: legs 2 and 4 give c = √20 = 2√5 ≈ 4.472.
Examples to try
3, 4 → c 5, 12 → c 2, 4 → c b = 8, c = 17 → a Is 6, 8, 10 right?
Questions and answers
What is the Pythagorean theorem?
In any right triangle, a² + b² = c², where a and b are the two sides that meet at the right angle and c is the hypotenuse, the longest side.
How do I find the hypotenuse?
Square both legs, add them, and take the square root: c = √(a² + b²). Enter the two legs above and leave c empty.
How do I find a missing leg?
Subtract the square of the known leg from the square of the hypotenuse and take the square root: a = √(c² − b²). The hypotenuse must be the longest side.
Why is my answer written with a square root?
Because it isn’t a whole number or a fraction. 2√5 is the exact answer; the decimal next to it (≈ 4.472) is rounded.
Does it work for triangles without a right angle?
No, the theorem only holds for right triangles. Use the Triangle Solver for any triangle.