The Hypotenuse Calculator finds the length of the hypotenuse, the longest side of a right triangle, from the values you already have. Enter two legs, one leg with an angle, or one leg with the area, and the calculator returns the hypotenuse as a decimal and in simplest radical form, with each step of the formula written out. Students use it to check trigonometry homework, and builders use it for ladder lengths, ramps, rafters and diagonal bracing. The tool has 5 parts: 5 input modes, fields that accept fractions, roots, feet-inches and mixed units, a scaled diagram with both acute angles marked, a result panel with area, perimeter and angles, and a step-by-step working list.
How to Use the Hypotenuse Calculator
To use the Hypotenuse Calculator, choose what you know, type the values and read the hypotenuse c. The answer updates with every keystroke.
- Pick a mode. "Two legs" uses the Pythagorean theorem. "Leg + angle" uses sine or cosine. "Leg + area" finds the second leg first. "45-45-90 / 30-60-90" applies the special-triangle ratios. "Two points" finds the distance between 2 coordinates.
- Enter the known values. Type decimals (2.5), fractions (3/4), roots (2√3) or feet-inches (5' 6"). Angles accept degrees (35), degrees and minutes (35°30') and radians (0.6 rad).
- Choose a result unit. Lengths typed with a unit, such as 2 ft or 30 cm, convert to the result unit before the calculation runs, so one leg in feet and the other in centimeters works.
- Read the result. The hypotenuse appears as a decimal, an exact root and, in feet or inches, as feet-inches to the nearest 1/16 inch. The panel lists leg a, leg b, both angles, the area, the perimeter and the altitude to the hypotenuse.
What Is the Hypotenuse of a Right Triangle?
The hypotenuse of a right triangle is the side opposite the 90° angle, and it is the longest side of the triangle. The other two sides meet at the right angle and are called the legs, leg a and leg b. The word comes from the ancient Greek hypoteinousa, "stretching under", the side that stretches under the right angle.
Every right triangle has exactly one hypotenuse. The Pythagorean theorem ties the hypotenuse to the legs with a² + b² = c², so c² is always larger than a² or b² alone.
How to Identify the Hypotenuse, Opposite and Adjacent Sides
To identify the 3 sides, find the right angle first and then pick one acute angle as the reference angle. The sides get their names from their position:
- Hypotenuse The side across from the 90° angle. The hypotenuse never touches the right angle.
- Opposite side The leg across from the reference angle. The opposite side does not touch the reference angle.
- Adjacent side The leg that touches the reference angle and is not the hypotenuse.
The opposite and adjacent labels swap with the reference angle. Seen from angle β, leg b becomes the opposite side and leg a becomes the adjacent side, while the hypotenuse keeps its name.
Hypotenuse Formulas: How to Find the Longest Side
There are 4 hypotenuse formulas, one for each set of known values:
| Known values | Hypotenuse formula |
|---|---|
| 2 sides (leg a, leg b) | c = √(a² + b²) |
| 1 side and opposite angle | c = a ÷ sin α |
| 1 side and adjacent angle | c = a ÷ cos β |
| 1 side and the area | c = √(a² + (2A ÷ a)²) |
How to Find the Hypotenuse with Two Sides
To find the hypotenuse with two sides, square both legs, add the squares and take the square root of the sum.
Legs of 6 in and 8 in: c = √(36 + 64) = √100 = 10 in
The Pythagorean theorem gives this hypotenuse formula directly. The formula works for any 2 legs, whole numbers or not: legs of 2 and 3 give c = √13 ≈ 3.6056.
How to Find the Hypotenuse with One Side and an Angle
To find the hypotenuse with one side and an angle, divide the leg by the sine of the opposite angle or by the cosine of the adjacent angle.
Both formulas come from SOH and CAH: sin = opposite ÷ hypotenuse, cos = adjacent ÷ hypotenuse.
The Law of Sines gives the same result: a ÷ sin α = c ÷ sin 90°, and sin 90° = 1, so c = a ÷ sin α. For 30°, 45° and 60° the calculator prints an exact answer. A 7 cm leg next to a 45° angle gives c = 7√2 cm, about 9.8995 cm.
How to Find the Hypotenuse with Area and One Side
To find the hypotenuse with the area and one side, find the second leg from the area formula, then apply the Pythagorean theorem.
Area 30 cm² and leg 5 cm: b = 60 ÷ 5 = 12 cm, c = √(25 + 144) = 13 cm
How to Calculate the Hypotenuse of Special Right Triangles
To calculate the hypotenuse of a special right triangle, multiply one leg by a fixed ratio. There are 2 special right triangles, the 45-45-90 triangle and the 30-60-90 triangle, and both skip the square-and-add steps.
Hypotenuse of a 45-45-90 Triangle
The hypotenuse of a 45-45-90 triangle equals one leg times √2, about 1.4142 times the leg. A 45-45-90 triangle is an isosceles right triangle: the 2 legs are equal and the side ratio is 1 : 1 : √2.
A leg of 7 in gives c = 7√2 ≈ 9.8995 in. The diagonal of any square follows the same rule: a 10 m square has a 10√2 ≈ 14.1421 m diagonal.
Hypotenuse of a 30-60-90 Triangle
The hypotenuse of a 30-60-90 triangle is twice the short leg. The short leg sits opposite the 30° angle, and the side ratio is 1 : √3 : 2.
A short leg of 5 cm gives c = 10 cm. With the long leg L, the hypotenuse is c = 2L ÷ √3 = 2L√3 ÷ 3: a long leg of 6 cm gives c = 4√3 ≈ 6.9282 cm. An equilateral triangle split down the middle produces two 30-60-90 triangles, and the hypotenuse of each half equals the side of the equilateral triangle.
Hypotenuse Calculation Examples with Step-by-Step Solutions
The 4 examples below use each method once: two legs, trigonometry, area and mixed units. The steps match the working panel of the calculator.
Example 1: Finding the Hypotenuse from Two Legs
A right triangle has legs of 9 m and 40 m. Find the hypotenuse.
- Write the formula: c = √(a² + b²).
- Square the legs: 9² = 81 and 40² = 1,600.
- Add the squares: 81 + 1,600 = 1,681.
- Take the square root: c = √1,681 = 41 m.
The hypotenuse is 41 m (134.5 ft). 9-40-41 is a Pythagorean triple, so the answer is a whole number.
Example 2: Finding the Hypotenuse Using Trigonometry
A ladder must reach a roof edge 10 ft high, and the ladder makes a 75.5° angle with the ground. Find the ladder length.
- Label the triangle: leg a = 10 ft (the wall), α = 75.5° (opposite the wall), c = the ladder.
- Choose the ratio: α is opposite leg a, so use c = a ÷ sin α.
- Find the sine: sin 75.5° ≈ 0.968148.
- Divide: c = 10 ÷ 0.968148 ≈ 10.33 ft.
The ladder is about 10.33 ft (3.15 m) long. The foot of the ladder sits 10 ÷ tan 75.5° ≈ 2.59 ft (0.79 m) from the wall.
Example 3: Finding the Hypotenuse from Area and a Leg
A right triangle has an area of 54 cm² and one leg of 9 cm. Find the hypotenuse.
- Find the second leg: b = 2 × 54 ÷ 9 = 12 cm.
- Square the legs: 9² = 81 and 12² = 144.
- Add the squares: 81 + 144 = 225.
- Take the square root: c = √225 = 15 cm.
The hypotenuse is 15 cm (5.91 in). The triangle is 9-12-15, the 3-4-5 triple scaled by 3.
Example 4: Calculating the Hypotenuse with Different Units
One leg measures 2 ft and the other measures 30 cm. Find the hypotenuse in centimeters.
- Convert to one unit: 2 ft = 24 in = 24 × 2.54 = 60.96 cm.
- Square the legs: 60.96² = 3,716.1216 and 30² = 900.
- Add the squares: 3,716.1216 + 900 = 4,616.1216.
- Take the square root: c = √4,616.1216 ≈ 67.9420 cm.
The hypotenuse is about 67.94 cm (26.75 in, or 2′ 2 3/4″). Type "2 ft" and "30 cm" straight into the calculator with the result unit set to cm and the conversion happens on its own.
Exact Radical Form vs. Decimal Hypotenuse Length
Exact radical form keeps the square root unevaluated, such as 2√5, while a decimal length rounds the root, such as 4.4721. Exact form carries zero error, and decimals are easier to measure and cut.
| Legs a, b | c² = a² + b² | Exact form | Decimal (4 places) |
|---|---|---|---|
| 1, 1 | 2 | √2 | 1.4142 |
| 1, 2 | 5 | √5 | 2.2361 |
| 2, 4 | 20 | 2√5 | 4.4721 |
| 3, 6 | 45 | 3√5 | 6.7082 |
| 4, 6 | 52 | 2√13 | 7.2111 |
| 5, 5 | 50 | 5√2 | 7.0711 |
| 6, 8 | 100 | 10 | 10 |
To simplify a root, pull out the largest perfect-square factor: √52 = √(4 × 13) = 2√13. Keep the exact form in algebra and multi-step problems, and switch to decimals for measuring. Rounding early adds error: √2 rounded to 1.41 and multiplied by 100 gives 141, while the true value is 141.42, a 0.42 gap. The Decimals menu in the calculator sets 0 to 10 places.
Real-Life Applications of Hypotenuse Calculations
Any slope, brace or diagonal that spans a right angle is a hypotenuse. There are 2 common groups of real-life hypotenuse calculations: lengths that lean, such as ladders and ramps, and diagonals that cross a rectangle, such as rafters, bracing and room layouts.
Finding the Length of a Ladder or Ramp
To find the length of a ladder, treat the wall height as leg a, the distance from the wall as leg b and the ladder as the hypotenuse. The 4:1 ladder rule places the foot 1 ft out for every 4 ft of height, about a 76° angle.
Ladder placement
Ramps follow the same math. The Americans with Disabilities Act (ADA) limits a ramp to a 1:12 slope, so a 24 in (61 cm) rise needs a 288 in run, and the ramp surface measures √(288² + 24²) ≈ 289.0 in (24.08 ft or 7.34 m).
Calculating Diagonal Distances in Construction
There are 4 everyday construction diagonals that the hypotenuse formula solves:
- Roof rafters. A 12 ft run with a 5 ft rise (a 5/12 roof pitch) needs a 13 ft (3.96 m) rafter before the overhang.
- Squaring a foundation. Marks at 3 ft and 4 ft along two walls must sit 5 ft apart for a 90° corner; larger slabs use 6-8-10 or 9-12-15.
- Room diagonals. A 12 ft × 16 ft room has a 20 ft (6.10 m) diagonal, and equal diagonals confirm a square layout.
- Stair stringers. A total rise of 98 in and a total run of 136.5 in need a stringer of √(98² + 136.5²) ≈ 168.04 in (14.0 ft or 4.27 m).
Common Mistakes When Calculating the Hypotenuse
There are 7 common mistakes when calculating the hypotenuse of a right triangle:
- Using a non-right triangle. c = √(a² + b²) holds only with a 90° angle. Other triangles need the law of cosines.
- Mixing units. 2 ft and 30 cm cannot go into one formula until both are in feet or both are in centimeters.
- Swapping sine and cosine. Use sin with the angle opposite the known leg and cos with the angle next to the leg.
- Leaving the calculator in radian mode. sin 30 in radians is −0.988, not 0.5, which gives a negative length.
- Adding before squaring. (3 + 4)² = 49, while 3² + 4² = 25.
- Forgetting the square root. c² = 169 means c = 13, not 169.
- Rounding in the middle. Keep exact values such as 2√13 until the final line.
The Hypotenuse Calculator avoids 6 of these 7 mistakes on its own: it converts mixed units, picks sine or cosine from the angle position, reads every angle in degrees unless you type rad, squares before adding, takes the square root and keeps the exact radical until the end. For a missing leg instead of the hypotenuse, open the Pythagorean theorem calculator.