About the Pythagorean Theorem Calculator tool
The Pythagorean theorem says that in a right triangle the squares of the two shorter sides add up to the square of the longest side: a² + b² = c². The longest side, c, is the hypotenuse, opposite the right angle. Knowing any two sides lets you find the third, which is why builders use a 3-4-5 triangle to square a corner and why the theorem sits at the heart of distance calculations everywhere from maps to computer graphics.
Type any two of the sides and leave the unknown one blank. To find the hypotenuse the calculator adds the squares; to find a leg it subtracts the square of the known leg from the square of the hypotenuse. The answer is given exactly — as a whole number, a fraction or a simplified surd such as √2 or 5√3 — and as a decimal, because an exact form is what teachers usually want and a decimal is what you need on site.
It also reports both acute angles, the area, the perimeter and the height to the hypotenuse, flags Pythagorean triples like (5, 12, 13), and draws the triangle to scale with every side and angle labelled. If the hypotenuse you enter is not longer than a leg, you get a clear message instead of an impossible answer.
How to use Pythagorean Theorem Calculator
- Enter two of the three sides: “Leg a”, “Leg b” and “Hypotenuse c”.
- Leave the side you want to find empty.
- Read the missing side in exact form and as a decimal.
- Check the angles, area and perimeter, and look at the labelled diagram.
- Click “Show steps” to see a² + b² = c² worked out with your numbers.
Features
Solve for any side
Find the hypotenuse from two legs or a leg from the hypotenuse and the other leg.
Exact surd answers
Results like √2, 5/2 or 2√13 are shown exactly, plus a decimal.
Angles, area and perimeter
Both acute angles in degrees, the area ½ab, perimeter and altitude to the hypotenuse.
Scaled diagram
An SVG right triangle labelled with your side lengths and angles.
Triple detection
Spots when all three sides are whole numbers, such as 3-4-5 or 8-15-17.
When to use it
- Work out the length of a ladder needed to reach a window a certain height up a wall.
- Check that a building corner or deck frame is square using the 3-4-5 rule.
- Find the diagonal of a screen, room or rectangle from its width and height.
- Solve geometry homework on right triangles.
Frequently asked questions
What is the Pythagorean theorem?
In a right triangle with legs a and b and hypotenuse c, a² + b² = c². It only applies to triangles with a 90° angle.
How do I find a missing leg?
Rearrange the formula: a = √(c² − b²). For c = 13 and b = 5, a = √(169 − 25) = √144 = 12.
What is a Pythagorean triple?
Three whole numbers that satisfy a² + b² = c², such as (3, 4, 5), (5, 12, 13) and (8, 15, 17). Any multiple of a triple, like (6, 8, 10), is also a triple.
Can I use it for triangles without a right angle?
No. For other triangles use the law of cosines, c² = a² + b² − 2ab·cos C, which the triangle calculator on this site applies for you.
Why must the hypotenuse be the longest side?
Because c² = a² + b² is larger than either a² or b² on its own. If you enter a hypotenuse shorter than a leg, no right triangle exists.