Right Triangle Legs from Hypotenuse and Angle Calculator

Right Triangle Legs from Hypotenuse and Angle Calculator

Popular AI Skill PRO

Enter Calculation

Formula

a=Hypotenuse (c)·sin⁡(Angle θ)b=Hypotenuse (c)·cos⁡(Angle θ)\begin{gathered} a = \text{Hypotenuse (c)} \cdot \sin\!\left({{\text{Angle }\theta}}\right) \\[1em] b = \text{Hypotenuse (c)} \cdot \cos\!\left({{\text{Angle }\theta}}\right) \end{gathered}
Usage stats

Advertisement

Results

Opposite Leg (a)
5
Opposite leg (a) 5
Adjacent leg (b) 8.6603

Report an error on this page

What This Calculator Does

In any right triangle, the longest side is the hypotenuse (c), which sits opposite the 90° corner. The other two sides are the legs. If you know the hypotenuse and one of the acute angles, basic trigonometry lets you find both legs exactly. This tool computes the leg opposite your angle (a) and the leg adjacent to it (b) in one step.

How to Use It

Enter the hypotenuse length (c) in any consistent unit and the acute angle θ in degrees (between 0° and 90°). The calculator returns the opposite leg and the adjacent leg in the same units as the hypotenuse. The angle θ is measured at the vertex where the adjacent leg meets the hypotenuse.

The Formula Explained

By the definitions of sine and cosine in a right triangle, \(\sin\theta = \text{opposite} / \text{hypotenuse}\) and \(\cos\theta = \text{adjacent} / \text{hypotenuse}\). Rearranging gives the two formulas this calculator uses:

$$\begin{gathered} a = \text{Hypotenuse (c)} \cdot \sin\!\left(\text{Angle }\theta\right) \\[1em] b = \text{Hypotenuse (c)} \cdot \cos\!\left(\text{Angle }\theta\right) \end{gathered}$$

\(a = c \cdot \sin\theta\) (the leg opposite the angle)
\(b = c \cdot \cos\theta\) (the leg next to the angle)

The angle is converted from degrees to radians internally because the trigonometric functions operate in radians.

Advertisement
Right triangle with hypotenuse c, angle theta, opposite leg a and adjacent leg b labeled
The opposite leg equals c·sinθ and the adjacent leg equals c·cosθ.

Worked Example

Suppose the hypotenuse is 10 and the angle is 30°. Then $$a = 10 \cdot \sin 30° = 10 \cdot 0.5 = 5,$$ and $$b = 10 \cdot \cos 30° = 10 \cdot 0.8660 = 8.6603.$$ The two legs are 5 and about 8.66, which together with the hypotenuse satisfy \(5^2 + 8.66^2 \approx 100 = 10^2\).

Right triangle example with hypotenuse 10 and angle 30 degrees showing computed legs
Worked example: with c = 10 and θ = 30°, a = 5 and b ≈ 8.66.

Sine and Cosine Values for Common Angles

For a right triangle with hypotenuse \(c\) and acute angle \(\theta\), the leg opposite \(\theta\) is \(a = c\sin\theta\) and the leg adjacent to \(\theta\) is \(b = c\cos\theta\). The table gives each leg as a multiple of the hypotenuse. Multiply the factor by your own \(c\) to get the leg length.

Angle θ sin θ (exact) sin θ (decimal) cos θ (exact) cos θ (decimal) Opposite a Adjacent b
0° 0 0 1 1 0·c 1·c
15° (√6 − √2)/4 ≈ 0.2588 (√6 + √2)/4 ≈ 0.9659 ≈ 0.2588·c ≈ 0.9659·c
30° 1/2 0.5 √3/2 ≈ 0.8660 0.5·c ≈ 0.8660·c
45° √2/2 ≈ 0.7071 √2/2 ≈ 0.7071 ≈ 0.7071·c ≈ 0.7071·c
60° √3/2 ≈ 0.8660 1/2 0.5 ≈ 0.8660·c 0.5·c
75° (√6 + √2)/4 ≈ 0.9659 (√6 − √2)/4 ≈ 0.2588 ≈ 0.9659·c ≈ 0.2588·c
90° 1 1 0 0 1·c 0·c

The values at 0° and 90° are limiting cases. They describe a degenerate triangle with one leg of length zero, not a true right triangle.

Advertisement

Leg Lengths for Different Angles (Hypotenuse = 10)

The hypotenuse is fixed at \(c = 10\) (any unit). Only the angle changes.

Angle θ Opposite a = 10·sin θ Adjacent b = 10·cos θ a² + b²
10° 1.736 9.848 100
30° 5 8.660 100
45° 7.071 7.071 100
60° 8.660 5 100
80° 9.848 1.736 100

Notes:

  • The legs swap when \(\theta\) is replaced by \(90^\circ - \theta\), because \(\sin\theta = \cos(90^\circ - \theta)\). For example, the 30° and 60° rows contain the same two lengths in opposite order, and so do the 10° and 80° rows.
  • In every row \(a^2 + b^2 = 100 = c^2\), as the Pythagorean theorem requires. This follows from \(\sin^2\theta + \cos^2\theta = 1\).
  • At 45° the triangle is isosceles and both legs are equal.

FAQ

Which leg is "opposite"? The opposite leg is the side that does not touch the angle θ — it faces it across the triangle. The adjacent leg shares the vertex with θ.

What units does it use? Any unit works; the legs come out in the same unit as the hypotenuse you entered.

Can the angle be 0° or 90°? At 0° the opposite leg is 0; at 90° the adjacent leg is 0. These are degenerate cases but the formulas still hold.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators