Enter any two sides of a right triangle - the two legs, or a leg and the hypotenuse - to find the missing third side.
Pythagorean Theorem Calculator
LiveThe formula
Legs 3 and 4: c = sqrt(3^2 + 4^2) = sqrt(9+16) = sqrt(25) = 5. Given hypotenuse 13 and leg 5: the other leg = sqrt(13^2 - 5^2) = sqrt(144) = 12.
Step-by-step guide
- Identify which side you're solving for and leave that field blank.
- Enter the other two sides.
- Read the missing side.
Common mistakes
Frequently asked questions
Does this work for any triangle?
No - only right triangles (with exactly one 90° angle). For any other triangle, use our Triangle Calculator, which works with the law of cosines instead.
What are some real-world uses?
Finding the diagonal of a rectangle, checking if a corner is truly square in construction, calculating a ladder's safe reach against a wall, and navigation distance calculations all use this theorem.
How can I tell if three sides form a right triangle?
Check whether the square of the longest side equals the sum of the squares of the other two. If a² + b² = c² holds exactly, it's a right triangle.
Related calculators
See the full list of Math calculators, or try: