Pythagorean Theorem Calculator
Calculate the hypotenuse (c) or either leg (a or b) of a right triangle using a² + b² = c². Outputs exact simplified radicals, decimal answers, acute angles, triangle area, and Pythagorean triple detection.
Enter Triangle Dimensions
Enter positive values for legs a and b.
How to Use This Pythagorean Theorem Calculator
- Select Unknown Side (Hypotenuse c, Leg a, or Leg b): Pick whether you are solving for the longest diagonal side c or one of the two perpendicular right-angle legs.
- Enter Both Known Side Lengths: Input the two known right-triangle dimensions in matching units (inches, feet, cm, or meters).
- Read Exact Simplified Radical & Decimal Side Length: Inspect exact radical answers (such as 5 * sqrt(2)) alongside 6-decimal rounding and Pythagorean triple badges.
- Inspect Acute Angles, Triangle Area & Altitude: View both interior angles, total perimeter, right-triangle area, and height dropped onto the hypotenuse.
Right Triangle Equations & Real-World Worked Scenarios
Scenario 1 (Carpenter 3-4-5 Corner Squaring): Measuring 6 ft along one sill plate and 8 ft along the perpendicular wall yields a diagonal hypotenuse of sqrt(6^2 + 8^2) = 10.00 ft (2x scaled 3-4-5 triple), proving an exact 90-degree square corner.
Scenario 2 (Exact Simplified Radical in Algebra): With legs a = 5 and b = 5, c = sqrt(50) simplifies algebraically by factoring 25 out of 50 to 5 * sqrt(2) (~7.071068) with two 45-degree acute angles.
Square both legs, add them together, and take the positive square root to get the longest side.
Subtract the square of the known leg from the square of the hypotenuse, then take the square root.
Use the same subtraction identity when leg a and hypotenuse c are known.
Common Primitive Pythagorean Triples
| Triple (a, b, c) | Verification (a² + b² = c²) | Area (½ab) | Common Practical Use |
|---|---|---|---|
| 3, 4, 5 | 9 + 16 = 25 | 6 | Framing 90-degree wall corners (3-4-5 rule) |
| 5, 12, 13 | 25 + 144 = 169 | 30 | Roof pitch & stair stringer layout |
| 8, 15, 17 | 64 + 225 = 289 | 60 | Construction brace diagonal lengths |
| 7, 24, 25 | 49 + 576 = 625 | 84 | Long-span rectangular squaring checks |
Geometry Accuracy Rules & Common Right-Triangle Mistakes
- Hypotenuse c Must Exceed Both Legs: In Euclidean geometry, the side opposite the 90-degree angle is strictly longest; entering a leg larger than or equal to hypotenuse c cannot form a valid right triangle.
- Confusing Right Triangles With Oblique Triangles: Only triangles with one 90-degree corner obey a^2 + b^2 = c^2; use Law of Sines or Law of Cosines when all angles are acute or obtuse.
- Mixing Mixed Framing Units: Convert feet and inches cleanly into decimal feet or total inches (for instance 12 ft 6 in = 150 in) before squaring leg lengths.
Verified by our Math Review Team under Editorial Policy.
Frequently Asked Questions
What is the Pythagorean Theorem formula?
The Pythagorean Theorem states that in any right-angled triangle, the square of the hypotenuse (c, opposite the 90-degree angle) equals the sum of the squares of the two legs (a and b): a² + b² = c². To solve for c, compute c = sqrt(a² + b²).
How do I solve for missing leg a or b instead of the hypotenuse?
Rearrange the formula by subtracting the known leg squared from the hypotenuse squared: a = sqrt(c² - b²) or b = sqrt(c² - a²). Because the hypotenuse is always the longest side of a right triangle, c must always be larger than a or b.
What is a Pythagorean triple?
A Pythagorean triple is a set of three positive integers (a, b, c) that satisfy a² + b² = c² with no decimals. Classic primitive triples include 3-4-5, 5-12-13, 8-15-17, and 7-24-25.
How does the calculator show exact simplified radical answers?
When side squares sum or subtract to an integer that is not a perfect square (such as 5² + 5² = 50), the calculator factors out the largest perfect square (25 * 2) to display both the simplified radical (5 * sqrt(2)) and the decimal approximation (7.071068).
Does the Pythagorean Theorem work on non-right triangles?
No. The formula a² + b² = c² applies only when one interior angle is exactly 90 degrees. For acute or obtuse triangles without a right angle, you must use the Law of Cosines: c² = a² + b² - 2ab cos(C).