Right Triangle Calculator
Use this calculator to solve for any one side of a right triangle using the Pythagorean theorem: a² + b² = c².
What Is the Pythagorean Theorem?
The Pythagorean theorem is one of the most famous formulas in mathematics. It applies to right triangles (triangles with one 90° angle) and states:
a² + b² = c²
Here, a and b are the two legs, and c is the hypotenuse, which is always the longest side. If you know any two sides of a right triangle, you can calculate the third. That’s exactly what this pythag theorem calculator does.
How to Use This Pythag Theorem Calculator
Step-by-step
- Select which side you want to solve for: a, b, or c.
- Enter the other two known side lengths.
- Click Calculate to get the missing side instantly.
- Use Clear to reset all values and start again.
The calculator also checks for impossible inputs. For example, if you try to calculate a leg with a hypotenuse value that is smaller than the other leg, it will show an error because such a triangle cannot exist.
Formulas Used
1) Find the hypotenuse
c = √(a² + b²)
2) Find leg a
a = √(c² − b²)
3) Find leg b
b = √(c² − a²)
These three equations are algebraic rearrangements of the same theorem. In every case, values must be positive, and when solving for a leg, the hypotenuse must be larger than the other known leg.
Worked Examples
Example 1: Classic 3-4-5 triangle
If a = 3 and b = 4, then: c = √(3² + 4²) = √(9 + 16) = √25 = 5.
Example 2: Solve for a leg
If c = 13 and b = 5, then: a = √(13² − 5²) = √(169 − 25) = √144 = 12.
Example 3: Decimal values
If a = 7.2 and b = 9.6, then: c = √(7.2² + 9.6²) = √(51.84 + 92.16) = √144 = 12.
Why This Matters in Real Life
The Pythagorean theorem is not just for homework. It appears in many practical tasks:
- Construction: confirming square corners and diagonal measurements.
- Architecture: slope and support calculations.
- Navigation: shortest distance between points on a grid.
- Computer graphics: distance calculations in 2D and 3D scenes.
- DIY projects: ladder placement, framing, and layout checks.
Common Mistakes to Avoid
- Using the theorem on triangles that are not right triangles.
- Mixing up side labels and accidentally treating a leg as the hypotenuse.
- Forgetting to square values before adding/subtracting.
- Entering negative or zero side lengths.
- Using inconsistent measurement units (e.g., inches for one side, feet for another).
Quick FAQ
Does this work for all triangles?
No. It only works for right triangles.
Can the hypotenuse be shorter than a leg?
No. The hypotenuse is always the longest side in a right triangle.
What units should I use?
Any unit is fine (cm, m, in, ft), as long as all side inputs use the same unit. The result will be in that same unit.
Final Thoughts
A reliable pythag theorem calculator saves time, reduces mistakes, and makes geometry much more approachable. Whether you’re a student, teacher, engineer, or weekend DIY builder, this tool helps you compute right-triangle side lengths quickly and confidently.