Pythagorean Theorem Calculator
Compute the hypotenuse or a missing leg of a right triangle, verify triples, and connect geometry to distance and coordinates.
Find Hypotenuse (c)
Find Missing Leg
Check Pythagorean Triple
Pythagorean Theorem: Geometry, Formulas, and Applications
The Pythagorean theorem links the sides of a right triangle and appears in geometry, physics, maps, and coordinate distance problems.
This guide follows your other calculator pages, with boxes, formulas, examples, tables, pitfalls, and practice focused on right triangles and distances.
What Is the Pythagorean Theorem?
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs.
a² + b² = c², where c is the hypotenuse (side opposite the right angle), and a and b are the legs.
- Right triangle: One angle is 90 degrees.
- Hypotenuse: Longest side, opposite the right angle.
- Legs: The two sides that form the right angle.
| a | b | c | Comment |
|---|---|---|---|
| 3 | 4 | 5 | Classic Pythagorean triple |
| 5 | 12 | 13 | Integer triple |
| 8 | 15 | 17 | Integer triple |
| 1 | 1 | √2 | Isosceles right triangle |
If a = 6 and b = 8, then c² = 6² + 8² = 36 + 64 = 100 → c = 10.
Solving for Hypotenuse and Legs
The calculator cards use rearrangements of a² + b² = c² to find missing sides in right triangles.
c = √(a² + b²)
a = 9, b = 12 → c = √(9² + 12²) = √(81 + 144) = √225 = 15.
a = √(c² − b²) or b = √(c² − a²), for c greater than the known leg.
c = 13, a = 5 → b = √(13² − 5²) = √(169 − 25) = √144 = 12.
| Known | Unknown | Formula |
|---|---|---|
| a, b | c | c = √(a² + b²) |
| b, c | a | a = √(c² − b²) |
| a, c | b | b = √(c² − a²) |
Pythagorean Triples
Pythagorean triples are sets of three positive integers (a, b, c) that exactly satisfy a² + b² = c².
- (3, 4, 5)
- (5, 12, 13)
- (7, 24, 25)
- (8, 15, 17)
9² + 40² = 81 + 1600 = 1681; 41² = 1681 → triple confirmed.
6² + 8² = 36 + 64 = 100; 11² = 121 → not equal, so not a triple.
| a | b | c | a² + b² | c² | Triple? |
|---|---|---|---|---|---|
| 3 | 4 | 5 | 25 | 25 | Yes |
| 6 | 8 | 10 | 100 | 100 | Yes |
| 4 | 5 | 6 | 41 | 36 | No |
Distance and Coordinate Geometry
The distance formula between two points in the plane is just the Pythagorean theorem applied to horizontal and vertical differences.
For points (x₁, y₁) and (x₂, y₂):
Distance d = √[(x₂ − x₁)² + (y₂ − y₁)²]
From (1, 2) to (5, 7):
Δx = 4, Δy = 5 → d = √(4² + 5²) = √(16 + 25) = √41.
From (−3, 4) to (1, 1):
Δx = 4, Δy = −3 → d = √(4² + (−3)²) = √(16 + 9) = 5.
| Points | Δx | Δy | Distance |
|---|---|---|---|
| (0,0) to (3,4) | 3 | 4 | 5 |
| (2,5) to (2,1) | 0 | −4 | 4 |
| (−1,−1) to (2,3) | 3 | 4 | 5 |
Real-World Applications
The Pythagorean theorem is used wherever straight‑line distances appear: navigation, engineering, physics, and graphics.
📍 Navigation and Maps
Approximates straight‑line distance between two locations given horizontal and vertical offsets.
🏗 Construction and Design
Ensures walls and supports form right angles by checking that side lengths satisfy a² + b² = c².
🎮 Computer Graphics
Used to compute distances between points on the screen and to detect collisions and ranges.
⚙️ Physics and Engineering
Combines perpendicular components of vectors, like velocity or force, into a resultant magnitude.
📐 Robotics and Motion
Helps compute diagonal movements and shortest paths for robot navigation on grids.
📊 Data and Analytics
Forms the basis of Euclidean distance between vectors in many algorithms and machine‑learning models.
Common Mistakes and How to Avoid Them
Most Pythagorean errors come from misidentifying the hypotenuse, negative under the square root, or using the theorem on non‑right triangles.
Using a shorter side as c breaks the formula c² = a² + b².
✅ Always choose c as the longest side, opposite the right angle.
If c² − a² or c² − b² is negative, the triangle data is impossible for a right triangle.
✅ Check that hypotenuse is larger than either leg before solving for a missing leg.
a² + b² = c² only holds when the angle between a and b is 90°.
✅ Confirm that the triangle is right‑angled before applying the theorem.
Forgetting to square both legs or mis‑taking square roots leads to incorrect results.
✅ Perform squaring and root operations step‑by‑step or use a calculator like this page.
Practice Problems with Solutions
Use these problems to drill the theorem; then verify your answers using the calculator cards above.
Show Solution
c² = 5² + 12² = 25 + 144 = 169 → c = 13.
Show Solution
b² = 10² − 6² = 100 − 36 = 64 → b = 8.
Show Solution
Height² = 10² − 6² = 100 − 36 = 64 → height = 8 m.
Show Solution
Δx = 7 − 2 = 5, Δy = 11 − 3 = 8; d = √(5² + 8²) = √(25 + 64) = √89.
Show Solution
9² + 12² = 81 + 144 = 225; 15² = 225 → triple confirmed.
(9, 12, 15) = 3·(3, 4, 5), a scaled version of the basic triple.
Show Solution
Area = (1/2)ab = 30 ⇒ ab = 60. If a = 10, then b = 60/10 = 6.
c² = 10² + 6² = 100 + 36 = 136 → c = √136 ≈ 11.66.