Pythagorean Theorem Calculator
Solve for the hypotenuse (c) or missing leg (a or b) of a right triangle with step-by-step radical simplification.
All formulas and computation matrices for this calculator execute directly in your browser with zero latency. Enter your parameters to see instant results.
Who Uses This Calculation & Why Accuracy Matters
Carpenters, construction framers, architects, surveyors, machinists, and geometry students use this Pythagorean theorem calculator to solve for hypotenuse (c) or legs (a, b) of right-angled triangles, generate integer Pythagorean triples (3-4-5, 5-12-13), and verify 90-degree square corners in building layouts.
A builder laying out a foundation wall measuring 9.0 feet along one wall and 12.0 feet along the perpendicular wall.
A painter placing a 20.0-foot ladder reaching a second-story window 19.0 feet high, calculating required base distance from wall.
A consumer verifying dimensions of a 65-inch widescreen television (16:9 aspect ratio).
Common Primitive Pythagorean Triples (a² + b² = c²)
Sets of three positive integers satisfying the Pythagorean equation with GCF(a, b, c) = 1.
| Primitive Triple (a, b, c) | Hypotenuse (c) | Scaled 2x Multiple | Scaled 3x Multiple | Area of Triangle (1/2 ab) |
|---|---|---|---|---|
| (3, 4, 5) | 5 | (6, 8, 10) | (9, 12, 15) | 6 sq units |
| (5, 12, 13) | 13 | (10, 24, 26) | (15, 36, 39) | 30 sq units |
| (7, 24, 25) | 25 | (14, 48, 50) | (21, 72, 75) | 84 sq units |
| (8, 15, 17) | 17 | (16, 30, 34) | (24, 45, 51) | 60 sq units |
| (9, 40, 41) | 41 | (18, 80, 82) | (27, 120, 123) | 180 sq units |
| (11, 60, 61) | 61 | (22, 120, 122) | (33, 180, 183) | 330 sq units |
| (12, 35, 37) | 37 | (24, 70, 74) | (36, 105, 111) | 210 sq units |
| (20, 21, 29) | 29 | (40, 42, 58) | (60, 63, 87) | 210 sq units |
* Generated via Euclid's formula: a = m² - n², b = 2mn, c = m² + n² (where m > n > 0, m and n co-prime and not both odd).
The Pythagorean Theorem & Distance Inversion Equations
In any right-angled triangle, the square of the hypotenuse (the side opposite the 90° right angle) equals the sum of the squares of the other two legs.
The two shorter sides meeting at the 90-degree right angle.
The longest side, located directly opposite the 90-degree right angle.
Step-by-Step Worked Examples with Real Numbers
Worked Example 1: Solving for Unknown Hypotenuse
Square terms.
Sum of squares.
Hypotenuse is 10.0 meters.
Worked Example 2: Solving for Unknown Leg
Squares.
Difference of squares.
Leg b is 12.0 inches.
Assumptions, Edge Cases & Common Calculation Mistakes
ℹ Underlying Algorithm Assumptions
- Applies exclusively to right-angled triangles with one exact 90-degree angle.
- Hypotenuse c must be strictly longer than both legs: c > a and c > b.
- Assumes flat Euclidean 2D space (spherical triangles satisfy cos(c) = cos(a)cos(b)).
⚠ 3 Common Mistakes to Avoid
- Adding squares when solving for a leg; you must SUBTRACT the leg square from the hypotenuse square (b = √(c² - a²)).
- Applying the theorem to non-right triangles (obtuse or acute triangles require the Law of Cosines: c² = a² + b² - 2ab cos C).
- Assuming a + b = c; the hypotenuse is always less than the sum of the two legs (Triangle Inequality).