Hypotenuse Calculator: Find c or a Missing Leg

This hypotenuse calculator finds the long side of a right triangle from the two legs using the Pythagorean theorem, c = √(a² + b²). It also works in reverse to find a missing leg when you know the hypotenuse. Use it for homework, roof rafters, ramps, TV screen sizes and squaring a deck corner.

Pythagorean Theorem & Right Triangle Solver

Calculated Result

0.00

Pythagorean Triple Check

Checking...

This hypotenuse calculator finds the long side of a right triangle from its two legs, which is handy for rafters, ramps, ladders and stair stringers measured in feet. It can also solve backward for a missing leg, and it tells you whether your sides form a whole-number Pythagorean triple.

How to use the Hypotenuse Calculator (Reverse Solve)

  1. In Calculation Mode, keep Find Hypotenuse (c), or choose Find Leg (a) or Find Leg (b) to solve in reverse.
  2. Set Side Unit to Feet (ft) for construction work, or Standard Units for anything else. The unit is a label; the math is the same.
  3. Enter the two known sides. For feet and inches, type decimal feet (inches ÷ 12), so 6 ft 3 in = 6.25 ft.
  4. Press Solve Right Triangle to see the result to two decimals, the triple check and a sketch of the triangle.

Formula

c = √(a² + b²)
a = √(c² − b²) b = √(c² − a²)
Feet and inches to feet: ft + in ÷ 12

a and b are the legs that meet at the right angle, and c is the hypotenuse opposite it. In reverse modes the hypotenuse must be longer than the known leg, or the tool shows an error.

Example

A ramp rises 4 ft 6 in over a run of 6 ft. Convert first: 4 ft 6 in = 4.5 ft. Then c = √(4.5² + 6²) = √(20.25 + 36) = √56.25 = 7.50 ft. The 0.5 ft part × 12 = 6 in, so the ramp surface is 7 ft 6 in long.

Frequently asked questions

How do I calculate the hypotenuse?

Square both legs, add them, and take the square root: c = √(a² + b²). For legs of 6 ft and 8 ft, c = √(36 + 64) = √100 = 10 ft.

How do I enter feet and inches?

Convert to decimal feet first by dividing the inches by 12 and adding them to the feet: 5 ft 9 in = 5 + 9 ÷ 12 = 5.75 ft. Convert the answer back by multiplying its decimal part by 12.

What is the 3-4-5 rule in construction?

A triangle with sides 3, 4 and 5 always has a right angle, because 3² + 4² = 5². Builders measure 3 ft along one wall and 4 ft along the other, then check that the diagonal is 5 ft to confirm a square corner. Multiples like 6-8-10 work too.

Can I find a missing leg instead of the hypotenuse?

Yes. Choose Find Leg (a) or Find Leg (b), enter the hypotenuse and the other leg, and the tool uses a = √(c² − b²). For c = 13 and b = 12, a = √(169 − 144) = 5.

For six-decimal results plus the triangle's area, try the Pythagorean Theorem Calculator.

Find the hypotenuse of a right triangle

How to use it

  1. Choose whether you want the hypotenuse or a missing leg.
  2. Pick the unit, such as inches or feet.
  3. Enter the two sides you already know.
  4. Read the missing side and the steps shown below it.

More questions

What is the formula for the hypotenuse?

c = √(a² + b²). Square both legs, add them and take the square root.

What is the hypotenuse of a 3 and 4 triangle?

5, because 3² + 4² = 9 + 16 = 25, and √25 = 5.

How do I find a missing leg?

Use a = √(c² − b²). Square the hypotenuse, subtract the square of the known leg and take the square root.

Related tools: Pythagorean Theorem Calculator, Right Triangle Calculator, Pythagorean Triple Calculator.