Home · Math · Trigonometry · Pythagorean Theorem Calculator
Pythagorean Theorem Calculator
Apply the Pythagorean theorem: the hypotenuse from the two legs of a right triangle.
What this calculator does
Apply the Pythagorean theorem: the hypotenuse from the two legs of a right triangle. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
Enter the two legs a and b of a right triangle; the angle between them is fixed at 90 degrees. The headline result is the hypotenuse from the Pythagorean theorem, c = sqrt(a^2 + b^2).
Both legs must be positive and use the same unit. The result is the straight-line length of the side opposite the right angle.
Worked example
With the example inputs this page opens with (leg a 3, leg b 4), the result is 5.00 — hypotenuse (side c). Change any figure and the result updates with the same formula.
Quick reference
| Leg a | Hypotenuse (side c) |
|---|---|
| 1.5 | 4.27 |
| 2.4 | 4.66 |
| 3 | 5.00 |
| 3.75 | 5.48 |
| 4.5 | 6.02 |
| 6 | 7.21 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Pythagorean Theorem Calculator work?
Apply the Pythagorean theorem: the hypotenuse from the two legs of a right triangle. Legs a, b → Hypotenuse. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Pythagorean Theorem Calculator need?
Legs a, b → Hypotenuse. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Pythagorean Theorem Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.