Pythagorean Theorem Calculator

Enter any two sides of a right triangle and the third solves live, with a labeled diagram that redraws itself and the steps shown.

Runs entirely on your device - nothing is ever uploaded.

More tools

How to use the Pythagorean calculator

  1. Enter any two sides: legs a and b, or one leg plus the hypotenuse c.
  2. The missing side solves instantly and the diagram redraws with your values.
  3. Enter all three sides to test whether they form a right triangle.

The theorem

In a right triangle, a² + b² = c². The classic 3-4-5 triangle is the simplest integer example: 9 + 16 = 25.

Triples worth memorizing

Integer right triangles cluster around a few triples: 3-4-5, 5-12-13, 8-15-17, and 7-24-25, each with clean multiples like 6-8-10 and 9-12-15. Carpenters use the 3-4-5 rule to square corners: mark 3 units on one wall, 4 on the other, and adjust until the diagonal reads exactly 5. If your sides match no triple, the calculator still tests them - any trio satisfying a² + b² = c² is right-angled, triple or not.