To find the hypotenuse, square both legs, add the results and take the square root: c = √a2 + b2. For legs 6 and 8 that is √36 + 64 = √100 = 10. The hypotenuse is the side across from the right angle, and it is always the longest of the three sides.
How to use the hypotenuse calculator
- Choose what you know. Legs, with both legs given, is the usual case. Pick Leg + angle when a problem gives one leg and an acute angle, or Area + leg when it gives the triangle's area.
- Enter the numbers. The legs are the two sides that form the right angle. In leg + angle mode, say whether the angle is opposite the leg or next to it; the drawing marks the angle so you can check you picked the right one.
- Read the answer. You get c as an exact value when there is a tidy one (such as 3√13), the rounded decimal, every step of the working, the other measurements and a drawing to scale.
Units are labels only, so both lengths must already be in the same unit. The page address updates as you type, which lets you bookmark or share a calculation, for example leg 5 with a 30° angle opposite it.
Hypotenuse formulas for each mode
From two legs
This is the Pythagorean theorem formula solved for c:
c = √a2 + b2Square first, add second, take the root last. The order matters: √a2 + b2 is not the same as a + b, one of the slips listed on the common mistakes page.
From one leg and an acute angle
If you know leg a and the angle A across from it, the sine ratio links them: sinA = a/c. If the known angle B sits next to leg a, use cosine instead: cosB = a/c. Either way, rearrange for c:
c = a over sinA c = a over cosBThe calculator then finds the other leg with the tangent and checks all three sides with a2 + b2 = c2. For when to reach for trigonometry instead of the theorem, see Pythagorean theorem or trigonometry?
From the area and one leg
In a right triangle the two legs are a base and its height, so the area is 1 over 2ab. Solve that for the missing leg, then use the theorem:
b= 2 · Area over ac= √a2 + b2Worked examples
Example 1: two whole-number legs
The legs are 9 cm and 12 cm.
c2= 92 + 122 = 81 + 144 = 225c= √225 = 15The hypotenuse is 15 cm. This is the 3-4-5 triangle scaled up by 3.
Example 2: an answer that is a radical
The legs are 4 and 7.
c2= 42 + 72 = 16 + 49 = 65c= √65 ≈ 8.062365 has no square factor except 1, so √65 is already in simplest form. Rounded to the nearest hundredth, c ≈ 8.06.
Example 3: a leg and the angle opposite it
Leg a = 5, and the angle across from it is A = 30°.
c = 5 over sin30° = 5 over 0.5 = 10The hypotenuse is 10, twice the short leg, as in every 30-60-90 triangle. The other leg is 5√3 ≈ 8.6603.
Example 4: a leg and the angle next to it
Leg a = 8, and the angle beside it is B = 40°. Since cos40° ≈ 0.7660:
c = 8 over cos40° ≈ 10.4433c ≈ 10.44. Check: the other leg is 8tan40° ≈ 6.7128, and 82 + 6.71282 ≈ 109.06, which matches 10.44332 ≈ 109.06.
Example 5: the area and one leg
A right triangle has an area of 30 square units and one leg of 5 units.
b= 2 · 30 over 5 = 12c= √52 + 122 = √169 = 13The hypotenuse is 13 units: the 5-12-13 triangle.
Common leg pairs and their hypotenuses
These pairs come up again and again in homework. The whole-number rows are Pythagorean triples; the others have radical answers, shown in simplest form and rounded to four decimal places.
| Leg a | Leg b | Exact c | Decimal c |
|---|---|---|---|
| 1 | 1 | √2 | 1.4142 |
| 1 | 2 | √5 | 2.2361 |
| 1 | 3 | √10 | 3.1623 |
| 2 | 3 | √13 | 3.6056 |
| 3 | 3 | 3√2 | 4.2426 |
| 2 | 4 | 2√5 | 4.4721 |
| 3 | 4 | 5 | 5 |
| 5 | 5 | 5√2 | 7.0711 |
| 4 | 7 | √65 | 8.0623 |
| 6 | 8 | 10 | 10 |
| 6 | 9 | 3√13 | 10.8167 |
| 5 | 12 | 13 | 13 |
| 10 | 10 | 10√2 | 14.1421 |
| 9 | 12 | 15 | 15 |
| 8 | 15 | 17 | 17 |
| 7 | 24 | 25 | 25 |
| 20 | 21 | 29 | 29 |
| 9 | 40 | 41 | 41 |
To simplify a radical like √117 = 3√13 yourself, pull out the largest square factor (here 117 = 9 · 13). The square root simplifier shows the factor steps.
Check the answer: the shortcut rule
The hypotenuse is the straight path across the corner, so it can never be longer than walking along both legs, and it can never be shorter than the longer leg:
max(a, b) < c < a + bTwo quick estimates catch most typing slips:
- Equal legs: c = a√2 ≈ 1.414a, so legs of 10 give about 14.14. This is the 45-45-90 triangle.
- One leg much longer than the other: c is only a little more than the long leg, roughly b + a2 over 2b. For legs 3 and 40 the estimate is 40 + 9 over 80 = 40.1125; the exact answer is √1609 ≈ 40.1123.
Degrees, radians and special angles
In leg + angle mode, this calculator always works in degrees. A handheld calculator may not: in radian mode, sin30 means the sine of 30 radians, about −0.988, so 5 ÷ sin30 comes out near −5.06. A negative length is the giveaway. Switch the calculator to degree mode (DEG) and you get 10.
Three angles give exact answers you can find without a calculator. With leg a = 1 and the angle A opposite it:
| Angle A | Exact c | Decimal c | Why |
|---|---|---|---|
| 30° | 2 | 2 | sin30° = 1 over 2: the hypotenuse is twice the short leg |
| 45° | √2 | 1.4142 | sin45° = √2 over 2: both legs are equal |
| 60° | 2√3 over 3 | 1.1547 | sin60° = √3 over 2: here a is the long leg |
For any other leg length, multiply the row by that length. The special right triangle calculator handles these cases from any starting side.
Frequently asked questions
What is the hypotenuse of a right triangle?
It is the side opposite the 90° angle. It is always the longest side, and it is the c in a2 + b2 = c2. The other two sides, which meet at the right angle, are the legs.
Can I find the hypotenuse if I only know one side?
Not from one length alone, because infinitely many right triangles share a leg of 5. You need one more fact: the other leg, an acute angle, the area or the perimeter. This calculator handles the first three.
How do I find the hypotenuse of a 45-45-90 triangle?
Multiply a leg by √2. With legs of 7, c = 7√2 ≈ 9.8995, the same as √72 + 72 = √98.
Can the legs be decimals or square roots?
Yes. Type 2.5, 3/4 or sqrt(5) directly. Legs of √5 and 2 give c = √5 + 4 = 3, a whole number, and legs of 1.5 and 2 give exactly 2.5.
Is the hypotenuse always longer than both legs?
Always. Since c2 = a2 + b2 and both squares are positive, c2 is bigger than a2 and bigger than b2, so c is longer than either leg. An answer shorter than a leg means a number went into the wrong box.
Keep exploring
- CalculatorsMissing Side Calculator (Find a Leg)Find the missing side of a right triangle from the hypotenuse and one leg. Enter b and c to get a, or a and c to get b, with steps, exact radicals and a check.
- CalculatorsRight Triangle Calculator and SolverRight triangle solver: enter any two values, such as two sides or a side and an angle, to get all three sides, both angles, area, perimeter, altitude and radii.
- CalculatorsPythagorean Theorem CalculatorFree Pythagorean theorem calculator. Enter any two sides of a right triangle to find the third, with step-by-step working, exact radical answers and a drawing.
- LearnThe Hypotenuse: What It Is and How to Find ItWhat the hypotenuse of a right triangle is, why it is always the longest side, and how to find it with c = √(a² + b²): five worked examples plus a trig method.
- PracticeFinding the Hypotenuse WorksheetFree printable finding the hypotenuse worksheet: 16 right triangles in varied orientations, from 3-4-5 triples to radicals and decimals, with worked answers.
- CalculatorsSpecial Right Triangle CalculatorSolve any 30-60-90 or 45-45-90 triangle from one side. Get the other sides in exact radical form and as decimals, plus area, perimeter and steps.