Hypotenuse Calculator

Quick answerThe hypotenuse is the longest side of a right triangle, opposite the right angle. Find it with the Pythagorean theorem: c = √(a² + b²). For legs of 3 and 4, c = √(9 + 16) = √25 = 5.

Use any units, as long as both sides use the same ones. When finding a leg, put the hypotenuse in the first box.

Hypotenuse c = 5

  • Pythagorean triple: yes
  • Area: 6
  • Perimeter: 12
Right triangle with legs 3 and 4 and hypotenuse 5a = 3b = 4c = 5a² + b² = c²3² + 4² = 5²

Step-by-step solution

  1. Use the Pythagorean theorem for a right triangle: a² + b² = c².
  2. Square both legs: 3² = 9 and 4² = 16.
  3. Add them: 9 + 16 = 25.
  4. Take the square root: c = √25 = 5.

Example shown: the default numbers above. Change them and press Calculate.

What you get when you use this calculator

Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.

What you get from the Hypotenuse Calculator. Two sides of a right triangle → Pythagorean theorem a² + b² = c² → The third side with a labelled triangleWhat you get from the Hypotenuse CalculatorYOU ENTERTwo sides of a righttriangleTHE CALCULATORPythagorean theorema² + b² = c²YOU GETThe third side witha labelled triangle

How to use the Hypotenuse Calculator

  1. Type your numbers into the boxes above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

Hypotenusec = √(a² + b²)
Missing lega = √(c² − b²)

Worked examples

Example 1: legs 3 and 4

Hypotenuse c = 5

  1. Use the Pythagorean theorem for a right triangle: a² + b² = c².
  2. Square both legs: 3² = 9 and 4² = 16.
  3. Add them: 9 + 16 = 25.
  4. Take the square root: c = √25 = 5.

Example 2: legs 5 and 12

Hypotenuse c = 13

  1. Use the Pythagorean theorem for a right triangle: a² + b² = c².
  2. Square both legs: 5² = 25 and 12² = 144.
  3. Add them: 25 + 144 = 169.
  4. Take the square root: c = √169 = 13.

Example 3: hypotenuse 13, leg 5

Missing leg a = 12

Show the steps
  1. Rearrange a² + b² = c² to find a leg: a² = c² − b².
  2. Square the hypotenuse and the known leg: 13² = 169 and 5² = 25.
  3. Subtract: 169 − 25 = 144.
  4. Take the square root: a = √144 = 12.

Example 4: legs 1 and 1

Hypotenuse c = 1.414214

Show the steps
  1. Use the Pythagorean theorem for a right triangle: a² + b² = c².
  2. Square both legs: 1² = 1 and 1² = 1.
  3. Add them: 1 + 1 = 2.
  4. Take the square root: c = √2 = 1.414214 (exact form √2).

Practice problems

Try each one on paper first, then open the answer.

Problem 1: legs 8 and 15

Hypotenuse c = 17

Problem 2: legs 6 and 9

Hypotenuse c = 10.816654

Problem 3: hypotenuse 25, leg 7

Missing leg a = 24

Frequently asked questions

What is the hypotenuse?

The side opposite the right angle. It is always the longest side of a right triangle.

What is a Pythagorean triple?

Three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17.

Does the Pythagorean theorem work for any triangle?

Only for right triangles. For other triangles use the law of cosines.

Related calculators

Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.