Find the longest side

Hypotenuse Calculator

Enter the two legs of a right triangle and find the hypotenuse instantly, with the formula, the working, and a live diagram.

  • Step-by-step working
  • All units supported
  • Works offline
  • 100% free

Core calculator

Find the Hypotenuse from Two Legs

Formula: c = √(a² + b²)

Result

5.0000 cm

Enter values to calculate the missing side or verify a triangle.

Show calculation steps

    Recent calculations

      Need to find a missing leg instead? Use the Missing Side Calculator.

      Formula

      The Hypotenuse Formula

      c = √(a² + b²)

      In a right triangle, the hypotenuse is the side opposite the 90-degree angle. To find it, square both legs, add the results, and take the square root. This relationship, known as the Pythagorean theorem, means the hypotenuse is always longer than either leg but shorter than the sum of both legs.

      Find the hypotenuse c = √(a² + b²) Both legs known
      Find leg a a = √(c² - b²) Hypotenuse and leg b known
      Find leg b b = √(c² - a²) Hypotenuse and leg a known

      This page focuses on finding c. To solve for a missing leg, visit the Missing Side Calculator.

      How it works

      How to Calculate the Hypotenuse

      1. Enter leg a

        Type the length of the first leg into the field labeled a. You can use any number, including decimals.

      2. Enter leg b

        Type the length of the second leg into the field labeled b. If both legs are the same length, the triangle is an isosceles right triangle (45-45-90).

      3. Choose a unit and precision

        Select meters, centimeters, feet, or inches from the unit dropdown. Adjust decimal places if you need more or less precision in the result.

      4. Read the hypotenuse

        The value of c appears instantly. Click "Show calculation steps" to see the full working: the formula, the substitution, and the square root evaluated step by step.

      The calculator uses the formula c = √(a² + b²) for every calculation. No rounding happens until the final step, so intermediate values stay as precise as your browser's floating-point arithmetic allows.

      Examples

      Hypotenuse Examples with Full Working

      Click any example to load it into the calculator above.

      3-4-5 triangle

      The classic introductory example with an exact whole-number hypotenuse.

      Basic

      5-12-13 triangle

      A clean benchmark for checking accuracy with another integer result.

      Basic

      Screen diagonal

      Turn width and height into a diagonal measurement for a real-world display problem.

      Intermediate

      FAQ

      Frequently Asked Questions