Quick answer: The hypotenuse is the longest side of a right triangle, opposite the 90° angle. With both legs known, c = √(a² + b²), so legs of 3 and 4 give c = √25 = 5. This hypotenuse calculator also finds c from one leg plus an angle, the area or the perimeter, and shows the working.

What Is the Hypotenuse of a Right Triangle?
A hypotenuse calculator finds the length of the longest side of a right triangle from the other measurements you already have. Most people know the two legs, the sides that meet at the square corner, and only need the classic square root of a² + b². Real problems are often less tidy. A roofer knows the run of a rafter and the roof angle, a geometry worksheet gives one leg and the area, and a puzzle question gives one side and the perimeter. Each of those still has exactly one hypotenuse, and this calculator works it out directly.
Along with c, it reports both legs, both acute angles, the area and the perimeter, then draws the triangle to scale so you can see at a glance whether the answer looks sensible. If you need to solve for a missing leg instead, use the Pythagorean theorem calculator, which runs the formula in both directions and checks whether three sides form a right triangle.
How Do You Find the Longest Side from Two Legs?

- Choose what you know: two legs, one leg and an angle, one leg and the area, or one leg and the perimeter.
- Type the known leg. In the two legs mode, type leg a and leg b.
- Enter the second value. For an angle, say whether it is opposite the known leg or next to it.
- Pick a unit and the number of decimal places if you want them shown in the answer.
- Read the hypotenuse, the working line and the other sides and angles, then copy the result.
Every value updates as you type, so you can test a few options quickly, for example how the diagonal of a frame changes as its width grows.
What Is the Hypotenuse Formula?
The hypotenuse formula comes from the Pythagorean theorem: the square on the hypotenuse equals the sum of the squares on the two legs. Euclid proved it as Proposition 47 of Book I of the Elements, and you can read the proof and its diagram in Clark University's edition of Euclid's Elements. The other three modes rearrange that idea with trigonometry or algebra.
Leg and opposite angle: c = a ÷ sin θ Leg and adjacent angle: c = a ÷ cos θ
Leg and area: b = 2 × area ÷ a, then c = √(a² + b²)
Leg and perimeter: s = P − a, then c = (s + a² ÷ s) ÷ 2
Worked example with two legs: a TV screen is 47.1 inches wide and 26.5 inches tall. The diagonal is √(47.1² + 26.5²) = √(2,218.41 + 702.25) = √2,920.66 = 54.04 inches, which is why it is sold as a 55 inch set.
Worked example with an angle: a ladder must reach 12 feet up a wall and make a 75° angle with the ground. The 12 feet is opposite the 75° angle, so c = 12 ÷ sin 75° = 12 ÷ 0.9659 = 12.42 feet of ladder.
Worked example with the perimeter: one leg is 5 and the perimeter is 30. Then s = 30 − 5 = 25, and c = (25 + 25 ÷ 25) ÷ 2 = (25 + 1) ÷ 2 = 13. The other leg is 25 − 13 = 12, giving the 5, 12, 13 triangle.
What Are Common Hypotenuse Values?

| Leg a | Leg b | Hypotenuse c | Where you meet it |
|---|---|---|---|
| 3 | 4 | 5 | The 3-4-5 rule for squaring a deck or wall corner |
| 5 | 12 | 13 | Common test question triple |
| 8 | 15 | 17 | Another whole number triple |
| 1 | 1 | 1.414 | Diagonal of a square, √2 |
| 1 | 1.732 | 2 | 30-60-90 triangle |
| 12 ft | 16 ft | 20 ft | Diagonal check for a 12 by 16 room |
Whole number sets such as 3, 4, 5 are called Pythagorean triples, and any multiple of one is also a triple, so 6, 8, 10 and 9, 12, 15 work too. Two special triangles are worth remembering: in a 45-45-90 triangle the hypotenuse is the leg times √2, and in a 30-60-90 triangle it is exactly twice the short leg. When the angles are not special, the right triangle calculator solves every side and angle from any two values.
Which Mistakes Give the Wrong Hypotenuse?
The most common error is adding the legs before squaring them. (3 + 4)² is 49, not 25, so square each leg first, add, and only then take the square root. The second is forgetting the square root at the end, which leaves you with c² instead of c. A quick sense check catches both: the hypotenuse must be longer than either leg but shorter than the two legs added together.
With angles, make sure your calculator is in degrees, and check whether the angle sits opposite the leg you know or next to it, because that decides whether you divide by sine or cosine. Finally, the formula only works for right triangles. For any other shape use the general triangle calculator, which applies the law of cosines.
Related Tools
- Pythagorean Theorem Calculator
- Right Triangle Calculator
- Triangle Calculator
- Area of a Triangle Calculator
- Radical Calculator
Prefer to work it out by hand? Follow how to find the hypotenuse of a right triangle, step by step.
Frequently asked questions
How do you find the hypotenuse with two sides?
Square both legs, add the results and take the square root. For legs of 6 and 8: 36 + 64 = 100, and √100 = 10.
How do you find the hypotenuse with one side and an angle?
If the angle is opposite the known side, divide the side by the sine of the angle. If the angle is next to the known side, divide by the cosine. A side of 10 opposite 30° gives 10 ÷ 0.5 = 20.
Is the hypotenuse always the longest side?
Yes. It sits opposite the 90° angle, the largest angle in the triangle, so it is always longer than each leg.
Can the hypotenuse be shorter than a leg?
No. If your answer is shorter than a leg, a value was entered in the wrong box or the square root was skipped somewhere.
Do non-right triangles have a hypotenuse?
No. The word only applies to right triangles. In other triangles you simply have the longest side, which you find with the law of cosines.
What is the hypotenuse of a 45-45-90 triangle?
It is the leg length times √2, about 1.414. A leg of 7 gives a hypotenuse of 9.899.