Explore our collection of 150+ developer tools, PDF editors, and image converters. Everything runs locally in your browser.
Ubify Financial Advisory Board
FINANCIAL ANALYSTS & CPA REVIEWERS
About This Tool
The Pythagorean Theorem Calculator solves for any missing side of a right triangle—Hypotenuse (c), Leg (a), or Leg (b)—while displaying the step-by-step radical formula, triangle area, and perimeter in real time.
From geometry homework and trigonometry proofs to framing roof rafters and squaring deck foundations on a job site, right-triangle relationships appear everywhere. Instead of manually squaring decimals and taking square roots, select which side you want to solve for, enter the two known lengths, and read the exact answer rounded to four decimal places alongside area and perimeter.
Pythagorean Equations for All Three Modes
- Solve for Hypotenuse (c):
c = √(a² + b²)(requiresa > 0andb > 0) - Solve for Leg (a):
a = √(c² − b²)(requiresc > b > 0) - Solve for Leg (b):
b = √(c² − a²)(requiresc > a > 0) - Right Triangle Area:
Area = (a × b) ÷ 2 - Triangle Perimeter:
Perimeter = a + b + c
Common Pythagorean Triples Reference Table
| Leg a | Leg b | Hypotenuse c | Triangle Area | Perimeter | Practical Application |
|---|---|---|---|---|---|
| 3 (Default) | 4 (Default) | 5 | 6 | 12 | Squaring corners (3-4-5 rule) |
| 5 | 12 | 13 | 30 | 30 | Framing and surveying layouts |
| 8 | 15 | 17 | 60 | 40 | Stair stringers and roof pitch |
| 7 | 24 | 25 | 84 | 56 | Long-span diagonal checks |
Worked Right-Triangle Example
Using the calculator's default 3-4-5 triangle and solving for Hypotenuse (c) with Leg a = 3 and Leg b = 4:
- Square Both Legs:
3² + 4² = 9 + 16 = 25. - Take the Square Root:
c = √25 = 5. - Compute Area:
(3 × 4) ÷ 2 = 6. - Compute Perimeter:
3 + 4 + 5 = 12.
Similarly, if you know a 10-foot ladder (c = 10) sits 6 feet from a wall (a = 6), switch to Solve for Leg (b) to find the height reached: b = √(10² − 6²) = √(100 − 36) = √64 = 8 feet.
Scaling the 3-4-5 Rule on Construction Sites
Carpenters and masons routinely scale the 3-4-5 right-triangle triple to square large deck frames, shed foundations, and concrete forms. Multiplying each side by 2 gives 6-8-10 feet, and multiplying by 3 gives 9-12-15 feet—if you mark 9 feet along one board and 12 feet along the adjoining board, adjusting the corner until the diagonal tape measure reads exactly 15 feet guarantees a true 90-degree angle.
Practical Use Cases and Related Tools
- Carpentry & Concrete Forms: Verify 90-degree corners on patios and slabs before pouring with our Concrete Calculator or Square Footage Calculator.
- Trigonometry & Angles: Need sine, cosine, or inverse angles from triangle sides? Open the Scientific Calculator.
All geometry calculations run 100% locally in your browser with zero server requests.
How to Use
- 1
Select which side to solve for: Hypotenuse (c), Leg (a), or Leg (b).
- 2
Enter positive side lengths for the two known sides in consistent units (feet, inches, or meters).
- 3
Ensure the hypotenuse (c) is strictly longer than either leg when solving for a or b.
- 4
Read the missing side length rounded to four decimal places alongside the step-by-step radical formula.
- 5
Check the computed Triangle Area and Perimeter cards for material or fencing estimates.
Frequently Asked Questions
What is the Pythagorean theorem formula?
In any right triangle with perpendicular legs a and b and hypotenuse c (the side opposite the 90-degree angle), a² + b² = c².
Why does the calculator show an error if the hypotenuse is smaller than a leg?
In Euclidean right triangles, the hypotenuse is always the longest side. If c <= a or c <= b, the expression c² − a² would be zero or negative, which cannot form a real triangle.
How are right triangle area and perimeter computed?
Because legs a and b meet at a 90-degree angle, they serve as base and height: Area = (a × b) ÷ 2, and Perimeter = a + b + c.
Does this calculator send my math inputs to any server?
No. All square-root and geometry calculations execute strictly in client-side JavaScript.
Can I use the Pythagorean theorem on non-right triangles?
No. The equation a² + b² = c² holds only when the angle between legs a and b is exactly 90 degrees. For acute or obtuse triangles, use the Law of Cosines instead.