Skip to main content

Trigonometry

How to Find a Missing Side of a Right Triangle

Find a missing side of a right triangle: Pythagorean theorem for two sides, sin, cos or tan for one side and an angle, plus area and special-triangle shortcuts.

Right triangle with one side marked as unknown and the opposite, adjacent and hypotenuse sides labelled relative to an acute angle

To find a missing side of a right triangle, look at what you already know. With two sides, use the Pythagorean theorem: c = √(a² + b²) for the hypotenuse, or a = √(c² − b²) for a leg. With one side and an acute angle, use sine, cosine or tangent, chosen by where the known side and the missing side sit relative to that angle. A known leg and the area give the other leg from 2 × Area ÷ leg, and the 30-60-90 and 45-45-90 triangles have ratio shortcuts. You can check every answer in the right triangle calculator, which solves the whole triangle from any two values.

You knowMissing sideFormula
Both legs a and bHypotenuse cc = √(a² + b²)
Hypotenuse c and leg bLeg aa = √(c² − b²)
Hypotenuse and an angleOpposite legopposite = hypotenuse × sin θ
Hypotenuse and an angleAdjacent legadjacent = hypotenuse × cos θ
Adjacent leg and an angleOpposite legopposite = adjacent × tan θ
Opposite leg and an angleHypotenusehypotenuse = opposite ÷ sin θ
Adjacent leg and an angleHypotenusehypotenuse = adjacent ÷ cos θ
One leg and the areaOther legother leg = 2 × Area ÷ leg
Any side of a 30-60-90The other twosides in the ratio 1 : √3 : 2
Any side of a 45-45-90The other twosides in the ratio 1 : 1 : √2

For area, perimeter, the altitude and the radii in one place, keep the right triangle formula sheet open next to this guide.

Step 1: Name the sides before you calculate

Every method starts with the same labels. The hypotenuse is the side opposite the 90° angle and is always the longest side. The other two sides are the legs. When an acute angle θ is involved, the legs get two more names that depend on θ: the opposite leg sits across from θ, and the adjacent leg touches θ and is not the hypotenuse.

Figure 1

opposite adjacent hypotenuse θ
Labels relative to the angle θ. The opposite leg faces θ, the adjacent leg touches it, and the hypotenuse faces the right angle.

The opposite and adjacent labels swap if you switch to the other acute angle, while the hypotenuse keeps its name. A quick label check prevents the most common errors in every method below. The SOHCAHTOA guide covers the naming rules in more depth.

When you know two sides: the Pythagorean theorem

To find a missing side from two known sides, use the Pythagorean theorem, a² + b² = c². The one decision is whether the missing side is the hypotenuse or a leg.

Missing hypotenuse: square, add, take the root

c = √(a² + b²)

Add the squares of the two legs, then take the square root.

The answer is always longer than either leg. If your result is shorter than a known leg, a value went into the wrong place.

Missing leg: square, subtract, take the root

a = √(c² − b²)

Subtract the square of the known leg from the square of the hypotenuse, never the other way round.

The hypotenuse must be longer than the known leg. If c² − b² comes out negative or zero, the two numbers cannot belong to one right triangle. The Pythagorean theorem calculator shows each of these steps and gives the answer in simplest radical form.

Spot a triple before you square

Some side pairs belong to a Pythagorean triple, so the third side is a whole number you can recognise at a glance. Legs of 9 and 12 are 3-4-5 scaled by 3, so the hypotenuse is 15. A hypotenuse of 26 and a leg of 10 are 5-12-13 scaled by 2, so the other leg is 24. The Pythagorean triples list holds the common sets.

When you know one side and an acute angle: sine, cosine or tangent

To find a missing side from one side and an acute angle, choose the trigonometric ratio that links the side you have with the side you want. There are 3 ratios, and each one connects a different pair of sides:

RatioConnectsUse it when you have and want
sin θ = opposite ÷ hypotenuseopposite and hypotenuseopposite and hypotenuse
cos θ = adjacent ÷ hypotenuseadjacent and hypotenuseadjacent and hypotenuse
tan θ = opposite ÷ adjacentopposite and adjacentthe two legs

How to pick the ratio in 3 checks

  1. Label the known side as opposite, adjacent or hypotenuse relative to θ.
  2. Label the missing side the same way.
  3. Pick the ratio whose two sides are exactly those two. The third side is never part of the calculation.

Once the ratio is chosen, the missing side is either a multiplication or a division:

  • Missing side on top of the ratio (opposite in sin or tan, adjacent in cos): multiply. For example, opposite = hypotenuse × sin θ.
  • Missing side on the bottom of the ratio (hypotenuse in sin or cos, adjacent in tan): divide. For example, hypotenuse = opposite ÷ sin θ.

Set the calculator to degrees before using these formulas. sin 35 in radian mode is about −0.4282, which gives a negative length.

The other acute angle comes free

The two acute angles of a right triangle always add to 90°. If a problem gives one acute angle, the other is 90° minus it, and switching to that angle sometimes turns a division into a multiplication. Finding an angle from two sides, the reverse task, is covered in the guide to finding an angle with inverse trig.

When you know one leg and the area

To find a missing side from one leg and the area, use the area formula first. The area of a right triangle is half the product of its legs, so the other leg is 2 × Area divided by the known leg.

Area = ½ × a × bb = 2 × Area ÷ ac = √(a² + b²)

Area 27 cm² and leg 6 cm: b = 54 ÷ 6 = 9 cm, then c = √(36 + 81) = √117 ≈ 10.8167 cm.

The method only works when the known length is a leg. The hypotenuse is not the base or the height of the triangle, so the area does not give a second side from the hypotenuse alone without solving a quadratic.

When the triangle is a special right triangle

To find a missing side of a 30-60-90 or 45-45-90 triangle, use the fixed side ratio instead of trigonometry. One known side is enough.

Figure 2

1 √3 2 30° 60° 30-60-90 √2 √2 2 45° 45° 45-45-90
With a hypotenuse of 2, the 30-60-90 legs are 1 and √3, and the 45-45-90 legs are both √2.
  • 30-60-90: short leg x, long leg x√3, hypotenuse 2x. A hypotenuse of 18 gives a short leg of 9 and a long leg of 9√3 ≈ 15.5885.
  • 45-45-90: legs x and x, hypotenuse x√2. A hypotenuse of 10 gives legs of 10 ÷ √2 = 5√2 ≈ 7.0711.

The special right triangles guide explains where the ratios come from, and the 30-60-90 and 45-45-90 calculators solve them from any one value.

Worked examples

Example 1 Missing hypotenuse, no triple

Given
A right triangle with legs of 6 m and 9 m
Find
The hypotenuse c
Formula
c = √(a² + b²)
Substitution
c = √(6² + 9²)
Calculation
c = √(36 + 81) = √117 = 3√13

Answer c ≈ 10.8167 m

The exact form 3√13 comes from 117 = 9 × 13. Keep it if the next step uses c again.

Example 2 Missing leg with decimals

Given
Hypotenuse 13.5 cm, one leg 8 cm
Find
The other leg a
Formula
a = √(c² − b²)
Substitution
a = √(13.5² − 8²)
Calculation
a = √(182.25 − 64) = √118.25

Answer a ≈ 10.8743 cm

Check: 10.8743 is shorter than 13.5, as a leg must be.

Example 3 Hypotenuse and an angle

Given
Hypotenuse 14 m and an acute angle of 35°
Find
The leg opposite the 35° angle and the leg adjacent to it
Formula
opposite = hypotenuse × sin θ, adjacent = hypotenuse × cos θ
Substitution
opposite = 14 × sin 35°, adjacent = 14 × cos 35°
Calculation
opposite = 14 × 0.573576; adjacent = 14 × 0.819152

Answer opposite ≈ 8.0301 m, adjacent ≈ 11.4681 m

Verify with the Pythagorean theorem: √(8.0301² + 11.4681²) ≈ 14.0000.

Example 4 Adjacent leg and an angle

Given
A leg of 9 ft next to an angle of 52°
Find
The opposite leg and the hypotenuse
Formula
opposite = adjacent × tan θ, hypotenuse = adjacent ÷ cos θ
Substitution
opposite = 9 × tan 52°, hypotenuse = 9 ÷ cos 52°
Calculation
opposite = 9 × 1.279942; hypotenuse = 9 ÷ 0.615661

Answer opposite ≈ 11.5195 ft, hypotenuse ≈ 14.6184 ft

The hypotenuse needed a division, since it sits on the bottom of cos θ = adjacent ÷ hypotenuse.

Example 5 One leg and the area

Given
A leg of 6 cm and an area of 27 cm²
Find
The other leg and the hypotenuse
Formula
b = 2 × Area ÷ a, then c = √(a² + b²)
Substitution
b = 2 × 27 ÷ 6
Calculation
b = 9; c = √(36 + 81) = √117

Answer b = 9 cm, c ≈ 10.8167 cm

Example 6 Special right triangle

Given
A 30-60-90 triangle with a hypotenuse of 18 in
Find
Both legs
Formula
short leg = hypotenuse ÷ 2, long leg = short leg × √3
Substitution
short leg = 18 ÷ 2
Calculation
short leg = 9; long leg = 9√3

Answer 9 in and 9√3 ≈ 15.5885 in

A practical case: how high a ladder reaches

A 5 m ladder stands with its foot 1.4 m from a wall. The ladder is the hypotenuse and the ground distance is a leg, so the height up the wall is the missing leg.

Figure 3

4.8 m 1.4 m ladder 5 m 73.7°
A 5 m ladder with its foot 1.4 m out reaches √(5² − 1.4²) = √23.04 = 4.8 m up the wall.

The working is a² = 5² − 1.4² = 25 − 1.96 = 23.04, so a = 4.8 m. The sides 1.4, 4.8 and 5 are the 7-24-25 triple scaled by 0.2. The hypotenuse calculator runs the same problem the other way, from height and base to ladder length.

Try It Yourself

A wheelchair ramp rises 0.6 m, and its sloping surface is 7.5 m long. Find the horizontal run of the ramp, and the angle it makes with the ground.

Show the answer

The run is about 7.4760 m and the angle is about 4.59°. Run = √(7.5² − 0.6²) = √(56.25 − 0.36) = √55.89 ≈ 7.4760 m. Angle = sin⁻¹(0.6 ÷ 7.5) = sin⁻¹(0.08) ≈ 4.5886°. Enter a leg of 0.6 and a hypotenuse of 7.5 in the right triangle calculator to confirm both values.

Mistakes that give the wrong missing side

  1. Adding when the missing side is a leg. Only the hypotenuse uses c = √(a² + b²). A missing leg always uses subtraction.
  2. Subtracting in the wrong order. a = √(c² − b²); b² − c² is negative and has no real square root.
  3. Choosing the ratio by habit. Pick sin, cos or tan from the two sides involved, not from the first ratio that comes to mind.
  4. Multiplying when the missing side is on the bottom. If the unknown is the hypotenuse in sin or cos, divide.
  5. Using radian mode. All the formulas here expect degrees unless the angle is given in radians.
  6. Rounding early. Rounding a first side before finding the second compounds the error; keep full values until the last line.
  7. Using area with the hypotenuse. 2 × Area ÷ side gives the other leg only when the known side is a leg.

Practice questions

  1. A right triangle has legs of 10 and 24. Find the hypotenuse.
  2. A right triangle has a hypotenuse of 41 and a leg of 9. Find the other leg.
  3. A right triangle has a hypotenuse of 30 cm and an acute angle of 22°. Find the leg opposite that angle.
  4. A 45-45-90 triangle has legs of 7. Find the hypotenuse.
  5. A right triangle has a leg of 8 and an area of 30. Find the other leg and the hypotenuse.

Answer key

  1. 26. √(10² + 24²) = √(100 + 576) = √676 = 26 (5-12-13 scaled by 2).
  2. 40. √(41² − 9²) = √(1681 − 81) = √1600 = 40.
  3. About 11.2382 cm. opposite = 30 × sin 22° = 30 × 0.374607 ≈ 11.2382.
  4. 7√2 ≈ 9.8995. The hypotenuse of a 45-45-90 triangle is a leg times √2.
  5. 7.5 and about 10.9659. Other leg = 2 × 30 ÷ 8 = 7.5; hypotenuse = √(64 + 56.25) = √120.25 ≈ 10.9659.

More mixed problems are collected in the right triangle trigonometry practice set, and the textbook treatment of these ratios is in OpenStax Algebra and Trigonometry, Section 7.2 .

Frequently Asked Questions

How do you find the missing side of a right triangle with two sides?

Use the Pythagorean theorem. For a missing hypotenuse, c = √(a² + b²); for a missing leg, a = √(c² − b²). Legs of 6 and 8 give a hypotenuse of √100 = 10.

How do you find a missing side with one side and an angle?

Use sine, cosine or tangent. Label the known side and the missing side as opposite, adjacent or hypotenuse relative to the angle, pick the ratio that contains exactly those two, then multiply or divide. A hypotenuse of 10 and an angle of 30° give an opposite leg of 10 × sin 30° = 5.

Can you find a missing side with only one side?

Only for special right triangles. A general right triangle needs a second value, such as another side, an acute angle or the area. A 45-45-90 or 30-60-90 triangle needs just one side, since its ratios are fixed.

Which formula finds the hypotenuse from an angle?

Divide a known leg by sine or cosine. With the opposite leg, hypotenuse = opposite ÷ sin θ; with the adjacent leg, hypotenuse = adjacent ÷ cos θ.

Why is my missing leg longer than the hypotenuse?

A leg can never be longer than the hypotenuse, so the inputs are swapped or the wrong ratio was used. Check that the side you called the hypotenuse is opposite the right angle, and that you subtracted squares instead of adding them.