Pythagorean Theorem Calculator Guide: Find Any Side of a Right Triangle
Quick Answer
- *The Pythagorean theorem states a² + b² = c², where c is the hypotenuse (longest side) of a right triangle.
- *To find the hypotenuse: c = √(a² + b²). For legs 3 and 4, the hypotenuse is 5.
- *To find a missing leg: a = √(c² – b²). Works whenever you know two of the three sides.
- *The 3-4-5 rule is used daily by construction workers to verify 90° angles.
What Is the Pythagorean Theorem?
The Pythagorean theorem is one of the oldest and most fundamental results in mathematics. It states that in any right 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 two legs (the sides that form the right angle), and c is the hypotenuse (the side opposite the right angle). The theorem has been proven in over 400 different ways — more than any other mathematical theorem, according to the Mathematical Association of America.
Despite being named after the Greek mathematician Pythagoras (c. 570–495 BC), the relationship was known to Babylonian mathematicians at least 1,000 years earlier. A clay tablet dated to roughly 1800 BC (Plimpton 322) contains a table of Pythagorean triples.
How to Use the Formula
Finding the Hypotenuse
When you know both legs, finding the hypotenuse is straightforward:
c = √(a² + b²)
Example: A right triangle with legs of 6 and 8.
c = √(6² + 8²) = √(36 + 64) = √100 = 10
Finding a Missing Leg
When you know the hypotenuse and one leg:
a = √(c² – b²)
Example: Hypotenuse = 13, one leg = 5.
a = √(13² – 5²) = √(169 – 25) = √144 = 12
Pythagorean Triples Reference
Pythagorean triples are sets of three positive integers that satisfy a² + b² = c² exactly (no square roots needed). These are the most commonly used:
| Triple (a, b, c) | Verification | Common Multiples |
|---|---|---|
| 3, 4, 5 | 9 + 16 = 25 | 6-8-10, 9-12-15, 12-16-20 |
| 5, 12, 13 | 25 + 144 = 169 | 10-24-26, 15-36-39 |
| 8, 15, 17 | 64 + 225 = 289 | 16-30-34 |
| 7, 24, 25 | 49 + 576 = 625 | 14-48-50 |
| 20, 21, 29 | 400 + 441 = 841 | 40-42-58 |
Any multiple of a Pythagorean triple is also a Pythagorean triple. The 3-4-5 triple alone generates an infinite family: 6-8-10, 9-12-15, 30-40-50, and so on. Euclid proved around 300 BC that there are infinitely many primitive Pythagorean triples (those where a, b, c share no common factor).
Real-World Applications
Construction and Carpentry
The 3-4-5 method is the standard technique for checking square corners on job sites. According to the National Association of Home Builders, an out-of-square foundation by even 1 inch across 20 feet causes compounding alignment problems in framing, drywall, and flooring. Builders mark 3 feet on one wall, 4 feet on the adjacent wall, and verify the diagonal measures exactly 5 feet.
For larger structures, the 6-8-10 or 12-16-20 multiples provide better accuracy because measurement error is proportionally smaller over longer distances.
Navigation and GPS
GPS systems calculate straight-line distances using the 3D extension of the Pythagorean theorem. The distance between two points in 3D space is d = √(x² + y² + z²). Every time your phone reports "0.3 miles to destination," it's running a version of this calculation. The Haversine formula used for great-circle distances on Earth's surface is a spherical adaptation of the same principle.
Screen Sizes
TV and monitor sizes are measured diagonally — the hypotenuse of the screen's rectangle. A "55-inch TV" with a 16:9 aspect ratio has dimensions of approximately 47.9 × 27.0 inches. You can verify: √(47.9² + 27.0²) = √(2,294 + 729) = √3,023 ≈ 55 inches.
Surveying and Land Measurement
Surveyors use the Pythagorean theorem to calculate distances across terrain features they can't measure directly. By measuring two perpendicular distances to a point, they compute the hypotenuse — a technique dating back to ancient Egyptian rope-stretchers who used knotted ropes in 3-4-5 ratios.
The Theorem in Higher Dimensions
The Pythagorean theorem extends naturally to 3D and beyond:
| Dimensions | Distance Formula | Example |
|---|---|---|
| 2D | d = √(x² + y²) | √(3² + 4²) = 5 |
| 3D | d = √(x² + y² + z²) | √(1² + 2² + 2²) = 3 |
| nD | d = √(x&sub1;² + x&sub2;² + … + x_n²) | Euclidean distance |
This generalization is the foundation of Euclidean distance, used in machine learning algorithms (k-nearest neighbors), physics simulations, and computer graphics rendering. According to a 2023 survey in ACM Computing Surveys, over 70% of distance-based classification algorithms use Euclidean distance as the default metric.
Common Mistakes to Avoid
- Mixing up legs and hypotenuse. The hypotenuse is always the longest side and always opposite the right angle. If your calculated "hypotenuse" is shorter than a leg, you've swapped something.
- Forgetting the square root. c² = 25 means c = 5, not c = 25. This is the most common arithmetic error.
- Using it on non-right triangles. The Pythagorean theorem only works when one angle is exactly 90°. For oblique triangles, use the Law of Cosines.
- Rounding too early. When working with irrational results (like √2), carry extra decimal places through intermediate steps and round only the final answer.
Solve any right triangle instantly
Use our free Pythagorean Theorem Calculator →Frequently Asked Questions
How do I find the hypotenuse of a right triangle?
Square both legs, add the results, and take the square root. If the legs are 3 and 4, then c = √(3² + 4²) = √(9 + 16) = √25 = 5. The hypotenuse is always the longest side of a right triangle.
Can I use the Pythagorean theorem on non-right triangles?
Not directly. The Pythagorean theorem only works for right triangles (those with a 90-degree angle). For other triangles, use the Law of Cosines: c² = a² + b² – 2ab·cos(C), which generalizes the Pythagorean theorem for any angle.
What is a 3-4-5 triangle and why is it useful?
A 3-4-5 triangle is the simplest Pythagorean triple: a right triangle with sides of length 3, 4, and 5. Construction workers use it to verify 90-degree angles. Mark 3 feet on one wall, 4 feet on the other, and if the diagonal measures exactly 5 feet, the corner is square.
How do I find a missing leg instead of the hypotenuse?
Rearrange the formula: a = √(c² – b²). If the hypotenuse is 13 and one leg is 5, the other leg = √(169 – 25) = √144 = 12.
Does the Pythagorean theorem work in 3D?
Yes. The 3D distance formula extends the theorem: d = √(x² + y² + z²). For example, the space diagonal of a 3 × 4 × 5 box is √(9 + 16 + 25) = √50 ≈ 7.07 units.