Pythagorean Theorem Calculator

Enter any two sides of a right triangle and find the third using a² + b² = c², calculated instantly in your browser.

The Pythagorean Theorem Calculator runs entirely in your browser. The side lengths you enter never leave your device and nothing is uploaded to ArrayKit.

Open the Right Triangle Calculator

About Pythagorean Theorem Calculator

The Pythagorean Theorem Calculator finds the missing side of a right triangle from the other two using a² + b² = c², where c is the hypotenuse, the longest side, opposite the right angle. Choose whether you know both legs and need the hypotenuse, or you know the hypotenuse and one leg and need the other leg, then enter the two known lengths. The calculator solves the third side immediately and shows all three sides together so you can copy the full set. It rejects a hypotenuse that is shorter than or equal to a known leg, since that combination cannot form a real right triangle. It is useful for geometry homework, construction and framing measurements, screen or ladder diagonal checks, and any layout problem where two sides of a right angle are known. Everything runs locally — the numbers you type are computed in your browser and never uploaded.

Features

How to use the Pythagorean Theorem Calculator

  1. Choose which side to solve for: the hypotenuse (c) or one of the legs (a or b)
  2. Enter the two known side lengths in the input fields
  3. Read the missing side in the Result section
  4. Copy the full a, b, c summary with the copy button

Example

Input

a=3, b=4

Output

c = 5

A classic 3-4-5 right triangle: 3² + 4² = 5².

Common errors & troubleshooting

Frequently asked questions

What is the Pythagorean Theorem Calculator?
It is a tool that finds the missing side of a right triangle when you know the other two, using a² + b² = c², where c is the hypotenuse and a, b are the two legs.
How does the Pythagorean theorem formula work?
For any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². Rearranged, a leg equals the square root of c² minus the other leg squared.
Can this calculator find a leg instead of the hypotenuse?
Yes. Select 'Leg a' or 'Leg b' and enter the hypotenuse plus the other leg — the Pythagorean Theorem Calculator solves the remaining leg using a = √(c² − b²) or b = √(c² − a²).
Why does the calculator reject some hypotenuse values?
In a right triangle the hypotenuse is always the longest side. If the entered hypotenuse is shorter than or equal to a known leg, no real right triangle exists, so the calculator shows an error instead of a false result.
Does this work for triangles that are not right triangles?
No. The Pythagorean theorem only applies to right triangles, where one angle is exactly 90°. For any triangle, use the Triangle Calculator or Law of Cosines instead.
Are the side lengths I enter uploaded anywhere?
No. The Pythagorean Theorem Calculator runs entirely in your browser. The numbers you type are used only on your device and are never sent to ArrayKit or any server.

Related tools

All ArrayKit tools