Hypotenuse Calculator

Hypotenuse Calculator

Calculate the hypotenuse of a right triangle from its two perpendicular legs.

Last updated: June 2026 | By Patchworkr Team

Right Triangle Legs
Hypotenuse
-
Enter two positive legs

Enter a real number.

Formula

The hypotenuse comes directly from the Pythagorean theorem.

c = √(a^2 + b^2)

Both input sides must be positive because they are triangle edge lengths.

How to Use

Enter the two perpendicular sides of a right triangle and read the diagonal length.

  1. Enter leg a.
  2. Enter leg b.
  3. Read the hypotenuse from the result card.

Example

For legs 3 and 4, the hypotenuse is 5.

That is the classic 3-4-5 right triangle.

Notes

Negative and blank inputs are rejected before the square root is evaluated.

The result is live, so changing either leg updates the hypotenuse immediately.

Related Tools