How to use the Pythagorean Theorem Calculator
- Choose whether to calculate side a, side b or the hypotenuse c.
- Enter the two known positive side lengths in the same unit system.
- Review the computed side and substituted equation. The hypotenuse must be the longest side.
Pythagorean theorem
Where:
- = the perpendicular legs of a right triangle
- = the hypotenuse opposite the right angle
Show as plain text
a² + b² = c²; c is the hypotenuse Solve c = √(a² + b²), a = √(c² − b²), or b = √(c² − a²)
The theorem states that the squares of the two perpendicular legs add to the square of the hypotenuse.
When solving for a leg, subtract the other leg's square from the hypotenuse's square, then take the positive square root. A hypotenuse must be longer than either leg.
Assumptions and limitations
- The triangle is a non-degenerate right triangle; all entered side lengths use the same units.
- Results are numeric estimates rounded for display; calculations use JavaScript floating-point square roots.
Example: Find the hypotenuse of a right triangle with legs 3 and 4
- Use c² = a² + b².
- Substitute: c² = 3² + 4² = 9 + 16 = 25.
- Take the positive square root: c = 5, in the same units as the legs.
When to use the Pythagorean Theorem Calculator
- Finding a right triangle's hypotenuse or missing leg from the other two sides.
- Checking a diagonal measurement from perpendicular length and width.
- Calculate a triangle's area with the triangle area calculator or derive its circle measurements with the circle calculator.
Pythagorean Theorem Calculator FAQs
Which side is the hypotenuse?
It is the side opposite the right angle and is always the longest side of a non-degenerate right triangle.
Can I calculate a leg from the hypotenuse?
Yes. Choose the leg to find, then enter the other leg and a longer hypotenuse.
Can side lengths use different units?
No. Convert all measurements to one unit before calculating; the selected unit label applies to every side.
How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.