Pythagorean Theorem Calculator: Find Missing Side
Find the hypotenuse of a right triangle from its two legs with the Pythagorean theorem, plus both acute angles.
Pythagorean Theorem
Calculate the hypotenuse of a right triangle (a² + b² = c²)
Quick Tips
- • Works only for right triangles (one 90° angle)
- • Use the same units for both sides
- • Classic example: 3-4-5 triangle
What the Pythagorean Theorem Calculator Solves
In a right triangle, the two sides that form the 90° angle are the legs, a and b, and the side opposite the right angle is the hypotenuse, c. The Pythagorean theorem says a² + b² = c², so the two legs always determine the hypotenuse.
Enter both legs and the calculator returns the hypotenuse to two decimal places and the triangle's two acute angles to one decimal place. For legs 3 and 4 it shows Hypotenuse: 5.00 | Angles: 53.1°, 36.9°. The first angle is the one opposite side b and the second is opposite side a; together they always add up to 90°.
The calculator solves for the hypotenuse only. If you already know the hypotenuse and one leg, rearrange the formula as shown below to find the missing leg by hand. Both inputs must be positive numbers in the same unit.
Pythagorean Theorem Formula
Square both legs, add them and take the square root. To find a missing leg instead, subtract: a = √(c² − b²). The angle opposite side b is arctan(b ÷ a).
Right Triangle Diagram
Worked Example: How Long a Ladder Do You Need?
- 1A ladder must reach a point 4 m up a wall, with its foot 1.5 m from the wall. The wall and ground form the right angle, so these are the legs.
- 2Square and add: 1.5² + 4² = 2.25 + 16 = 18.25.
- 3Take the square root: √18.25 = 4.27 m, the minimum ladder length.
- 4The calculator shows
Hypotenuse: 4.27 | Angles: 69.4°, 20.6°: the ladder meets the ground at 69.4°. Safety guidance usually calls for about 75°, which for a 4 m reach puts the foot 1.07 m from the wall.
Right Triangles and Pythagorean Triples
| Leg a | Leg b | Hypotenuse c | Angles shown |
|---|---|---|---|
| 3 | 4 | 5.00 | 53.1°, 36.9° |
| 5 | 12 | 13.00 | 67.4°, 22.6° |
| 8 | 15 | 17.00 | 61.9°, 28.1° |
| 7 | 24 | 25.00 | 73.7°, 16.3° |
| 20 | 21 | 29.00 | 46.4°, 43.6° |
| 9 | 40 | 41.00 | 77.3°, 12.7° |
| 6 | 8 | 10.00 | 53.1°, 36.9° |
| 1 | 1 | 1.41 | 45.0°, 45.0° |
| 1 | 2 | 2.24 | 63.4°, 26.6° |
| 2 | 3 | 3.61 | 56.3°, 33.7° |
| 10 | 10 | 14.14 | 45.0°, 45.0° |
Common Pythagorean Theorem Mistakes
- Entering the hypotenuse as a leg. With legs 5 and 13 the calculator returns 13.93, but if 13 is really the hypotenuse, the missing leg is √(13² − 5²) = 12. The hypotenuse is always the longest side.
- Using it on a triangle without a right angle. The theorem only holds when one angle is exactly 90°. For other triangles, use the law of cosines.
- Adding before squaring. (3 + 4)² = 49 is not 3² + 4² = 25; square each leg separately.
- Mixing units. A 1.5 m leg and a 400 cm leg must both be in meters or both in centimeters before you enter them.
The square root calculator helps when you rearrange the formula to find a leg. The same idea gives the distance between two points on a graph, which is why the midpoint calculator also reports distances. For the space diagonal of a box, apply the theorem twice: d = √(l² + w² + h²), using dimensions from the surface area calculator.
Pythagorean Theorem FAQ
Can this calculator find a missing leg?
No, it solves for the hypotenuse from two legs. To find a leg, use a = √(c² − b²): with a hypotenuse of 13 and a leg of 5, the other leg is 12.
Which angles does the calculator show?
The two acute angles of the right triangle. The first is opposite side b and the second is opposite side a, and they always sum to 90°. For legs 3 and 4 they are 53.1°, 36.9°.
What is a Pythagorean triple?
A set of three whole numbers that fit a² + b² = c², such as 3, 4, 5 or 5, 12, 13. Multiplying a triple by any number gives another right triangle, so 6, 8, 10 also works.
What is the hypotenuse when both legs are 1?
It is √2, about 1.41, and both acute angles are 45°. This is the diagonal of a unit square.
Does the theorem work for any triangle?
Only for right triangles. If a² + b² is larger than c², the angle opposite c is acute; if it is smaller, that angle is obtuse.
