Pythagorean Theorem Calculator
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c².
Enter the two legs. The hypotenuse is the side opposite the right angle.
Solve a problem
No account required. Type, upload, or snap a photo.
Example problems
How this solver works
- Read a and b.
- Compute sqrt(a²+b²).
Formula
c is the hypotenuse.
Worked examples
3-4-5
- 9+16=25
- c=5
Answer: 5
Common mistakes
Treating a non-right triangle as right
The theorem requires a right angle.
Related calculators
Related guides
Related formulas
More in this topic
Frequently asked questions
Can I find a leg instead?
Yes: a = sqrt(c² − b²). Rearrange the same formula.