Hypotenuse Calculator
Type the two legs and get the hypotenuse, as an exact root and a decimal. The steps show c = √(a² + b²) with your numbers.
https://flxcode.com/hypotenuse-calculator/
Solved.
- Hypotenuse c
- √106 ≈ 10.2956
- Area
- 22.5
- Perimeter
- 24.2956
- Angle opposite a
- 29.0546°
- Angle opposite b
- 60.9454°
- Height to the hypotenuse
- 4.3708
The steps, with your numbers
- c = √(a² + b²)
- c = √(5² + 9²) = √(25 + 81) = √106
- c = √106 ≈ 10.2956
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
How the hypotenuse is found
c = √(a² + b²)
- Square each leg.
- Add the two squares.
- Take the square root of the sum.
That comes from the Pythagorean theorem, a² + b² = c². The longest side is always the one you are solving for here. If you know the hypotenuse and one leg instead, leave the other leg empty. The tool then subtracts instead of adding.
Hypotenuse for some common legs
| Leg a | Leg b | Hypotenuse c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
| 1 | 1 | √2 ≈ 1.4142 |
| 1 | 2 | √5 ≈ 2.2361 |
| 2 | 3 | √13 ≈ 3.6056 |
| 6 | 9 | 3√13 ≈ 10.8167 |
| 9 | 40 | 41 |
| 10 | 10 | 10√2 ≈ 14.1421 |
The first four are whole-number triples. Roots like 3√13 and 10√2 appear when the sum is not a perfect square but has a square factor.
From one leg and an angle
If the angle is known instead of the second leg, use sine or cosine. The leg across from the angle goes with sine, the one next to it goes with cosine.
| You know | Formula | Hypotenuse |
|---|---|---|
| Leg 10 next to a 40° angle | c = 10 / cos 40° | 13.0541 |
| Leg 10 across from a 40° angle | c = 10 / sin 40° | 15.5572 |
| Leg 12 across from a 30° angle | c = 12 / sin 30° = 2 × 12 | 24 |
| Leg 7 with a 45° angle | c = 7 × √2 | 9.8995 |
Two jobs
A ramp rises 4 ft over a run of 12 ft. The ramp surface is 4√10 ≈ 12.6491 ft long, about 12.65. A square tile 1 ft on a side has a diagonal of √2 ≈ 1.4142 ft, about 1.414. The rise over run is 4 / 12, a slope of 1/3, which the slope calculator turns into an angle and a percent grade.
Numbers this uses
- No constants for the legs-to-hypotenuse step. It is exact, on fractions, so decimals like 0.1 do not pick up noise.
- Rounding happens once, at the end, to the "Decimals" you choose (default 4).
- A leg across from an angle: sin = leg / hypotenuse. A leg next to it: cos = leg / hypotenuse. Both from the definitions of sine and cosine in a right triangle.
- √2 = 1.41421356, √3 = 1.73205081, the values for the 45° and 30°-60° shortcuts.
Related
The Pythagorean theorem calculator covers legs and checking whether a triangle is right-angled, with a table of whole-number triples. For any triangle, not just a right one, use the triangle calculator.
Nothing you type is uploaded. We count events without cookies (details).
FAQ
What is the hypotenuse?
The longest side of a right triangle, the one across from the 90° angle. The other two sides are called legs. The hypotenuse is always longer than either leg.
How do I calculate the hypotenuse?
Square both legs, add them, and take the square root: c = √(a² + b²). For legs 5 and 9, that is √(25 + 81) = √106 = 10.2956. Type both legs into the tool and leave c empty.
How do I find the hypotenuse with only one side and an angle?
Divide the known leg by the sine or cosine. If the leg is across from the angle, c = leg / sin(angle). If it is next to the angle, c = leg / cos(angle). The table on this page has examples. You can also turn it into two legs first, with the triangle calculator.
Why is my answer a square root instead of a number?
Most pairs of legs give a hypotenuse that is not a whole number. The exact answer is the root itself, √106, and the tool shows it beside the decimal. When the number under the root has a square factor, the tool simplifies it, so √20 appears as 2√5.
What is the hypotenuse of a 45-45-90 triangle?
The leg times √2, about 1.4142 times the leg. With both legs equal to 1, the hypotenuse is √2. That is also the diagonal of a square with side 1.
What is the hypotenuse of a 30-60-90 triangle?
Twice the shortest leg, the one across from the 30° angle. If that leg is 5, the hypotenuse is 10, and the other leg is 5√3.
Can the hypotenuse be shorter than a leg?
No. If the tool gets a "hypotenuse" that is not longer than a leg, it says so. Check that you put the longest side in the c box, or leave c empty so the tool finds it.
Are my numbers uploaded or saved?
No. The maths runs in your browser. What you type is not put in the address bar, not stored and not counted.
More from FLXCode
Pythagorean Theorem CalculatorNew
Find the missing side of a right triangle, or test if three sides make one. Exact roots and the steps.
Triangle CalculatorNew
Solve any triangle from three values: sides, angles, area and more, drawn to scale with the steps.
Slope CalculatorNew
Slope, angle, percent grade, distance, midpoint and y = mx + b from two points. Handles vertical lines.
Area CalculatorNew
Area of a rectangle, triangle, circle, trapezoid, parallelogram, ellipse, sector or polygon, with the formula.