Pythagorean theorem calculator
Enter two sides of a right triangle to get the third, or enter three sides to test whether they form a right angle.
About Pythagorean Theorem Calculator
In a right triangle the square of the longest side, the hypotenuse, equals the sum of the squares of the other two: a squared plus b squared equals c squared. This calculator uses that rule in two ways. Give it any two sides and it finds the third, along with the area, the perimeter and the two acute angles. Or give it three sides and it tells you whether they make a right, acute or obtuse triangle. Each step is shown with your numbers substituted in.
- Finding the length of a ladder, ramp or diagonal.
- Checking homework on right triangles.
- Testing whether a corner is square on a building job.
- Finding out if three lengths form a Pythagorean triple.
How to use Pythagorean Theorem Calculator
Step 1
Choose whether to find a missing side or check three sides.
Step 2
Enter the sides you know. Say which one is missing if you are solving.
Step 3
Read the answer and the working.
Good to know
- The hypotenuse is always the longest side and sits opposite the right angle. When you solve for a leg, the hypotenuse you enter must be longer than the other leg.
- For the side check, the order you type the three sides does not matter. The longest is used as c.
- Comparisons use a tiny tolerance, so 3, 4, 5 and 0.3, 0.4, 0.5 both count as right triangles despite rounding in decimals.
Common questions
What is the Pythagorean theorem?
For a right triangle with legs a and b and hypotenuse c, a² + b² = c².
What is a Pythagorean triple?
A set of three whole numbers that satisfy the theorem, such as 3, 4, 5 or 5, 12, 13. The side check points these out.
Does the theorem work for triangles without a right angle?
No. For other triangles you need the law of cosines. The triangle calculator on this site uses it.