Hypotenuse Calculator

Find the hypotenuse from two legs, a leg and an angle, or a special right triangle
hypotenuse of a right triangle with legs 9 and 12
hypotenuse when the opposite side is 7 and the angle is 40 degrees
30-60-90 triangle with short leg 6
missing leg when the hypotenuse is 26 and one leg is 10

What the Hypotenuse Is

The hypotenuse is the side opposite the right angle in a right triangle, and it is always the longest side. Everything below assumes the triangle genuinely has a 90°90° angle — none of it applies otherwise.

From two legs (Pythagorean theorem)

c=a2+b2c = \sqrt{a^2 + b^2}

From a leg and an acute angle

c=oppositesinθ=adjacentcosθc = \frac{\text{opposite}}{\sin\theta} = \frac{\text{adjacent}}{\cos\theta}

From the hypotenuse back to a leg (the hypotenuse-leg case)

a=c2b2a = \sqrt{c^2 - b^2}

Notice the subtraction: going from the hypotenuse reverses the operation. If c2b2c^2 - b^2 comes out negative, the numbers do not describe a real triangle — you have mislabelled which side is the hypotenuse.

Special Right Triangles and Angles

Two triangles appear often enough that the arithmetic is worth skipping.

45-45-90 (isosceles right triangle)

The legs are equal and

c=a2,a=c2=c22c = a\sqrt{2}, \qquad a = \frac{c}{\sqrt{2}} = \frac{c\sqrt{2}}{2}

Side ratio 1:1:21 : 1 : \sqrt{2}.

30-60-90

With the short leg (opposite 30°30°) called ss:

short leg=s,long leg=s3,hypotenuse=2s\text{short leg} = s, \quad \text{long leg} = s\sqrt{3}, \quad \text{hypotenuse} = 2s

Side ratio 1:3:21 : \sqrt{3} : 2. The hypotenuse is exactly twice the short leg — never twice the long leg.

Choosing a method

You knowUse
Both legsc=a2+b2c = \sqrt{a^2+b^2}
One leg + one acute anglesin\sin or cos\cos
Hypotenuse + one lega=c2b2a = \sqrt{c^2-b^2}
A 45°45° or 30°/60°30°/60° triangleThe ratio shortcuts above

Common integer triples worth recognising: 3-4-53\text{-}4\text{-}5, 5-12-135\text{-}12\text{-}13, 8-15-178\text{-}15\text{-}17, 7-24-257\text{-}24\text{-}25, and any multiple of them.

Common Mistakes to Avoid

  • Adding before squaring: ca+bc \neq a + b. Square each leg first, add, then take the square root once at the end.
  • Treating a leg as the hypotenuse: the hypotenuse sits opposite the right angle and must be longer than either leg. If your answer is smaller than a given side, you solved the wrong case.
  • Using the theorem on a non-right triangle: without a 90°90° angle you need the Law of Cosines.
  • Multiplying by sin\sin when you should divide: with the opposite side known, c=a/sinθc = a/\sin\theta. Multiplying shrinks the triangle instead of growing it.
  • Mixing up the 30-60-90 legs: the 3\sqrt{3} belongs to the long leg, opposite the 60°60° angle.

Examples

Step 1: Apply c=a2+b2c = \sqrt{a^2 + b^2}
Step 2: a2=81a^2 = 81 and b2=144b^2 = 144
Step 3: a2+b2=81+144=225a^2 + b^2 = 81 + 144 = 225
Step 4: c=225=15c = \sqrt{225} = 15 (this is the 3-4-53\text{-}4\text{-}5 triple scaled by 33)
Answer: c=15c = 15

Step 1: Opposite and hypotenuse are linked by sine: sin40°=7c\sin 40° = \frac{7}{c}
Step 2: Rearrange: c=7sin40°c = \frac{7}{\sin 40°}
Step 3: sin40°0.6428\sin 40° \approx 0.6428
Step 4: c70.642810.89c \approx \frac{7}{0.6428} \approx 10.89
Answer: c10.89c \approx 10.89

Step 1: The short leg is opposite the 30°30° angle, so s=6s = 6
Step 2: Hypotenuse: c=2s=12c = 2s = 12
Step 3: Long leg: s3=6310.39s\sqrt{3} = 6\sqrt{3} \approx 10.39
Step 4: Check with the Pythagorean theorem: 62+(63)2=36+108=144=1226^2 + (6\sqrt{3})^2 = 36 + 108 = 144 = 12^2
Answer: Hypotenuse =12= 12, long leg =6310.39= 6\sqrt{3} \approx 10.39

Frequently Asked Questions

One side alone is not enough — you also need an acute angle or a second side. With a side and an angle, divide the opposite side by sin of the angle, or the adjacent side by cos of the angle.

No. Since c^2 = a^2 + b^2 and both legs are positive, c is strictly greater than each leg. If your result is shorter than a given side, you have almost certainly used the leg formula when you needed the hypotenuse formula, or vice versa.

It is a congruence rule: two right triangles with equal hypotenuses and one pair of equal legs are congruent. Numerically it means the third side is forced, and you can recover it with a = sqrt(c^2 - b^2).

In a 45-45-90 triangle the hypotenuse is always leg times sqrt(2); in a 30-60-90 triangle it is always twice the short leg. Because the ratios are fixed, you get an exact answer with one multiplication instead of a square root, and no calculator is needed.

Related Solvers

Related Guides

Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving