Pythagorean Theorem Calculator
Solve for the hypotenuse c = √(a² + b²) or a missing leg b = √(c² − a²) with step-by-step working. The calculator reports the exact radical form, the decimal approximation, checks whether three sides form a right, acute, or obtuse triangle, and draws a compact, centered triangle diagram.
What Is the Pythagorean Theorem?
The Pythagorean theorem states that in a right-angled triangle the square of the hypotenuse equals the sum of the squares of the other two sides:
a² + b² = c²
Here a and b are the legs and c is the hypotenuse — always the longest side, opposite the right angle.
Solving for Any Side
- Find the hypotenuse: c = √(a² + b²)
- Find a missing leg (b): b = √(c² − a²)
- Find a missing leg (a): a = √(c² − b²)
Example: Find the hypotenuse when a = 3 and b = 4.
- Square: 3² = 9 and 4² = 16.
- Add: 9 + 16 = 25.
- Square root: c = √25 = 5.
Exact Radical Form
Many answers are square roots that don't simplify to whole numbers. The exact form pulls out perfect-square factors: √50 = √(25 × 2) = 5√2 ≈ 7.0711.
Pythagorean Triples
| Triple | Verification | Scaled |
|---|---|---|
| (3, 4, 5) | 9 + 16 = 25 | (6, 8, 10) |
| (5, 12, 13) | 25 + 144 = 169 | (10, 24, 26) |
| (8, 15, 17) | 64 + 225 = 289 | (16, 30, 34) |
| (7, 24, 25) | 49 + 576 = 625 | (14, 48, 50) |
Real-World Applications
- Carpentry: the 3-4-5 method checks square corners.
- Ladders: a 13-ft ladder 5 ft from a wall reaches 12 ft up.
- Navigation: straight-line distance between two points.
- Screen sizes: the diagonal is the hypotenuse of width and height.
❓ Pythagorean Theorem FAQ
What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c².
How do you find the hypotenuse?
Use c = √(a² + b²). For a = 3 and b = 4: c = √(9 + 16) = √25 = 5.
How do you find a missing leg?
Rearrange to b = √(c² − a²). For c = 10 and a = 6: b = √(100 − 36) = √64 = 8.
Can a leg be longer than the hypotenuse?
No. The hypotenuse is always the longest side because c² = a² + b² and both a² and b² are positive.
Can the theorem be used with decimals?
Yes. For a = 1.5 and b = 2: c = √(2.25 + 4) = √6.25 = 2.5.
How do you check if three sides form a right triangle?
Use the converse: sort so c is longest. If a² + b² = c², it's right. If greater, acute; if less, obtuse.