Skip to main content

Free online calculator

Hypotenuse Calculator

Find the longest side of a right triangle from whatever you know.

Use two legs, a leg and an angle, a leg and the area, a special triangle, or two points on a grid. Mix units such as feet and centimeters, and get the exact root, the decimal and every step.

What do you know?

Known values

Quick examples

Type decimals, fractions (3/4), roots (2√3) or feet-inches (5' 6"). Add a unit to any length (30 cm, 2 ft) to mix units - the answer converts to the result unit.

Hypotenuse c

-

How c was found

  1. Enter your values to see the working.

Every value is calculated in your browser. Nothing you type is uploaded, logged or stored.

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.

  1. 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.
  2. 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).
  3. 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.
  4. 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.
opposite adjacent hypotenuse α
Seen from angle α, leg a is the opposite side and leg b is the adjacent side. The hypotenuse c stays the same for both acute angles.

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 valuesHypotenuse formula
2 sides (leg a, leg b)c = √(a² + b²)
1 side and opposite anglec = a ÷ sin α
1 side and adjacent anglec = a ÷ cos β
1 side and the areac = √(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.

c = √(a² + b²)

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.

c = a ÷ sin α (α opposite leg a)c = a ÷ cos β (β next to leg a)

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 = ½ × a × bb = 2 × Area ÷ ac = √(a² + b²)

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.

x x x√2 45° 45°
A 45-45-90 triangle. Both legs equal x, so c = √(x² + x²) = x√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.

x (short) x√3 (long) 2x 30° 60°
A 30-60-90 triangle. The hypotenuse is 2x, double the short leg.

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.

  1. Write the formula: c = √(a² + b²).
  2. Square the legs: 9² = 81 and 40² = 1,600.
  3. Add the squares: 81 + 1,600 = 1,681.
  4. 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.

  1. Label the triangle: leg a = 10 ft (the wall), α = 75.5° (opposite the wall), c = the ladder.
  2. Choose the ratio: α is opposite leg a, so use c = a ÷ sin α.
  3. Find the sine: sin 75.5° ≈ 0.968148.
  4. 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.

  1. Find the second leg: b = 2 × 54 ÷ 9 = 12 cm.
  2. Square the legs: 9² = 81 and 12² = 144.
  3. Add the squares: 81 + 144 = 225.
  4. 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.

  1. Convert to one unit: 2 ft = 24 in = 24 × 2.54 = 60.96 cm.
  2. Square the legs: 60.96² = 3,716.1216 and 30² = 900.
  3. Add the squares: 3,716.1216 + 900 = 4,616.1216.
  4. 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, bc² = a² + b²Exact formDecimal (4 places)
1, 12√21.4142
1, 25√52.2361
2, 4202√54.4721
3, 6453√56.7082
4, 6522√137.2111
5, 5505√27.0711
6, 81001010

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

16 ft 4 ft c ≈ 16.49 ft 76.0°
A ladder reaching 16 ft up a wall with its foot 4 ft out needs c = √(256 + 16) = √272 ≈ 16.49 ft (5.03 m).

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:

  1. 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.
  2. 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.
  3. Room diagonals. A 12 ft × 16 ft room has a 20 ft (6.10 m) diagonal, and equal diagonals confirm a square layout.
  4. 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:

  1. Using a non-right triangle. c = √(a² + b²) holds only with a 90° angle. Other triangles need the law of cosines.
  2. Mixing units. 2 ft and 30 cm cannot go into one formula until both are in feet or both are in centimeters.
  3. Swapping sine and cosine. Use sin with the angle opposite the known leg and cos with the angle next to the leg.
  4. Leaving the calculator in radian mode. sin 30 in radians is −0.988, not 0.5, which gives a negative length.
  5. Adding before squaring. (3 + 4)² = 49, while 3² + 4² = 25.
  6. Forgetting the square root. c² = 169 means c = 13, not 169.
  7. 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.

Frequently Asked Questions

Can you find the hypotenuse with only one side?

No, one side alone does not fix the hypotenuse of a general right triangle. A second value is needed: the other leg, an acute angle or the area. Two special right triangles are the exception: a 45-45-90 triangle has c = leg × √2, and a 30-60-90 triangle has c = 2 × the short leg.

Is the hypotenuse always the longest side of a triangle?

Yes, the hypotenuse is always the longest side of a right triangle. The hypotenuse sits opposite the 90° angle, the largest angle in the triangle, and the longest side always faces the largest angle. Triangles without a right angle have no hypotenuse at all.

How do you find the hypotenuse without an angle?

To find the hypotenuse without an angle, use the Pythagorean theorem with the two legs: c = √(a² + b²). Legs of 8 cm and 15 cm give c = √(64 + 225) = √289 = 17 cm. One leg and the area work too: the other leg is 2 × Area ÷ a.

How do you calculate the hypotenuse using sine or cosine?

To calculate the hypotenuse using sine or cosine, divide the known leg by the sine of the angle opposite the leg, or by the cosine of the angle next to the leg. A 10 cm leg opposite a 30° angle gives c = 10 ÷ sin 30° = 10 ÷ 0.5 = 20 cm. A 12 cm leg next to a 35° angle gives c = 12 ÷ cos 35° ≈ 14.6493 cm.

Can a hypotenuse be a decimal or irrational number?

Yes, most hypotenuse lengths are irrational numbers. Only Pythagorean triples such as 3-4-5 give whole numbers. Legs of 1 and 1 give c = √2 ≈ 1.4142, a decimal that never ends or repeats. The calculator shows both the exact root and the rounded decimal.

Can a non-right triangle have a hypotenuse?

No, only a right triangle has a hypotenuse. Acute and obtuse triangles have a longest side, but that side is not called the hypotenuse and a² + b² = c² does not hold for it. The law of cosines, c² = a² + b² − 2ab·cos C, finds that side instead.

How do you find a missing leg when the hypotenuse is known?

To find a missing leg, subtract the square of the known leg from the square of the hypotenuse and take the square root: b = √(c² − a²). A hypotenuse of 13 and a leg of 5 give b = √(169 − 25) = √144 = 12. The Pythagorean theorem calculator solves for either leg with the working shown.