Base and Height from Hypotenuse and Angle (Right Triangle)

Base and Height from Hypotenuse and Angle (Right Triangle)

Growing AI Skill PRO

Enter Calculation

Formula

b=ccos⁡θ,h=csin⁡θwhere{c=Hypotenuseθ=Degrees+Minutes60+Seconds3600\begin{gathered} b = c \cos\theta, \quad h = c \sin\theta \\[1.5em] \text{where}\quad \left\{ \begin{aligned} c &= \text{Hypotenuse} \\ \theta &= \text{Degrees} + \frac{\text{Minutes}}{60} + \frac{\text{Seconds}}{3600} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Base a (adjacent side)
8.6602540378
same length unit as hypotenuse
Height b (opposite side) 5
Angle (decimal degrees) 30

Report an error on this page

What this calculator does

This tool solves a right triangle for its two legs when you know the hypotenuse and the inclination angle. Picture a right triangle whose longest side (the hypotenuse, \(c\)) makes an angle theta with the horizontal base. The base \(a\) sits adjacent to theta, the height \(b\) is opposite to theta, and the right angle is between \(a\) and \(b\). Given \(c\) and theta, the calculator returns both legs in the same length unit you used for the hypotenuse.

How to use it

Enter the hypotenuse \(c\) as a plain number (any length unit). Enter the angle in decimal degrees, for example 30. If your angle is given in degrees-minutes-seconds, fill the optional Minutes and Seconds fields too; the calculator converts them with \(\text{degDecimal} = \text{degrees} + \frac{\text{minutes}}{60} + \frac{\text{seconds}}{3600}\). For a standard right triangle keep theta between 0 and 90 degrees.

The formula explained

The defining trigonometric ratios are \(\cos\theta = a / c\) and \(\sin\theta = b / c\). Rearranging gives the two outputs directly:

$$a = c \cdot \cos\theta, \quad b = c \cdot \sin\theta$$

The angle is first converted to radians (\(\text{thetaRad} = \text{degDecimal} \cdot \pi / 180\)) before the trig functions are applied. At theta = 0 the triangle flattens so \(a = c\) and \(b = 0\); at theta = 90 it stands up so \(a = 0\) and \(b = c\).

Advertisement
Right triangle showing hypotenuse c, angle theta, base a, and height b
The base a is adjacent to angle theta and the height b is opposite it, with hypotenuse c.

Worked example

Take \(c = 10\) and theta = 30 degrees. In radians that is \(0.5235987756\). Then

$$a = 10 \cdot \cos(30°) = 10 \cdot 0.8660254038 = 8.660254038$$$$b = 10 \cdot \sin(30°) = 10 \cdot 0.5 = 5.0$$

So the base is about 8.66 and the height is exactly 5, in the same unit as the hypotenuse.

Sine and Cosine Values for Common Angles

For a right triangle with hypotenuse \(c\) and inclination angle \(\theta\), the base (adjacent leg) is \(a = c\cos\theta\) and the height (opposite leg) is \(b = c\sin\theta\). The table gives exact forms and decimals to 4 places for common angles, and the legs as multiples of \(c\).

Angle θ sin θ (exact) sin θ cos θ (exact) cos θ Base a = c·cos θ Height b = c·sin θ
0° 0 0.0000 1 1.0000 1.0000·c 0
15° (√6 − √2)/4 0.2588 (√6 + √2)/4 0.9659 0.9659·c 0.2588·c
30° 1/2 0.5000 √3/2 0.8660 0.8660·c 0.5000·c
45° √2/2 0.7071 √2/2 0.7071 0.7071·c 0.7071·c
60° √3/2 0.8660 1/2 0.5000 0.5000·c 0.8660·c
75° (√6 + √2)/4 0.9659 (√6 − √2)/4 0.2588 0.2588·c 0.9659·c
90° 1 1.0000 0 0.0000 0 1.0000·c

Note that sin θ = cos(90° − θ), so the base and height values swap between complementary angles such as 15° and 75°. At 0° and 90° the triangle degenerates into a line segment.

Advertisement

Comparing Results for Different Angles

Here the hypotenuse is fixed at \(c = 10\) (any unit) while the angle changes. Each value is \(a = 10\cos\theta\) and \(b = 10\sin\theta\), rounded to 3 decimals. For example, at 30°: \(a = 10 \times 0.8660 = \)8.660 and \(b = 10 \times 0.5 = 5.000\).

Angle θ Base a = 10·cos θ Height b = 10·sin θ Which leg dominates
10° 9.848 1.736 a > b (base much longer; shallow triangle)
30° 8.660 5.000 a > b
45° 7.071 7.071 a = b (isosceles right triangle)
60° 5.000 8.660 b > a
80° 1.736 9.848 b > a (height much longer; steep triangle)

As θ increases from 0° to 90°, the base shrinks and the height grows. They are equal only at 45°, and the values at 10° and 80° are mirror images of each other. As a check, \(a^2 + b^2 = c^2\): for 30°, \(8.660^2 + 5.000^2 \approx 75.00 + 25.00 = 100\).

FAQ

Can I use any length unit? Yes. No conversion is done, so if \(c\) is in meters the outputs are in meters; if it is in feet they are in feet.

What if I only have decimal degrees? Leave Minutes and Seconds at 0 and just enter the decimal value, such as 5.25.

What happens outside 0 to 90 degrees? The math still runs through cosine and sine, but \(a\) or \(b\) may become negative and the right-triangle leg interpretation is lost, so keep the angle within 0 to 90 degrees for meaningful sides.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators