Right Triangle Hypotenuse and Height from Base and Slope Angle

Right Triangle Hypotenuse and Height from Base and Slope Angle

Growing AI Skill PRO

Enter Calculation

Formula

c=Base acos⁡θ,h=Base a·tan⁡θwhereθ=Angle (deg)×π180\begin{gathered} c = \frac{{{\text{Base } a}}}{\cos\theta}, \qquad h = {{\text{Base } a}} \cdot \tan\theta \\[1.5em] \text{where}\quad \theta = \text{Angle (deg)} \times \frac{\pi}{180} \end{gathered}
Usage stats

Advertisement

Results

Hypotenuse c
20
same length unit as base a
Height b (opposite side) 17.320508
Base a (adjacent side) 10
Angle θ 60°

Report an error on this page

What this calculator does

This tool solves a right triangle when you know the base a (the side adjacent to the angle) and the slope angle theta measured between the base and the hypotenuse. It returns the hypotenuse c and the height b (the side opposite the angle). It is pure trigonometry and works in any consistent length unit (mm, cm, m, inches) and in any country.

How to use it

Enter the base length and the angle in decimal degrees, then read off the hypotenuse and height. Common uses include woodworking and DIY layout, road and ramp slope/incline calculations, CNC V-cutting depths, and line-of-sight estimates. If your angle is given in degrees-minutes-seconds, convert it first: \(\text{decimal degrees} = \text{degrees} + \text{minutes}/60 + \text{seconds}/3600\) (for example \(5\deg\ 12\min\ 6\sec = 5 + 12/60 + 6/3600 = 5.2017\) degrees).

The formula explained

In a right triangle the right angle sits between base a and height b. The angle theta is between a and the hypotenuse c. So a is adjacent to theta and b is opposite it, giving the standard relations \(\cos\theta = a / c\), \(\sin\theta = b / c\), and \(\tan\theta = b / a\). Rearranging gives the working formulas:

$$c = \frac{a}{\cos\theta} \qquad \text{and} \qquad b = a \cdot \tan\theta$$ The angle is converted to radians with \(\theta_{\text{rad}} = \theta \times \frac{\pi}{180}\) before evaluating the trig functions.

Advertisement
Right triangle with base a, height b, hypotenuse c, and slope angle theta at the base
The base a and slope angle theta determine the hypotenuse c and height b.

Worked example

With \(a = 1\) and \(\theta = 30\) degrees: \(\cos 30\degree = 0.8660254\), so $$c = \frac{1}{0.8660254} = 1.154701.$$ \(\tan 30\degree = 0.5773503\), so $$b = 1 \cdot 0.5773503 = 0.577350.$$ With \(a = 10\) and \(\theta = 45\) degrees: $$c = \frac{10}{\cos 45\degree} = 14.142136 \qquad \text{and} \qquad b = 10 \cdot \tan 45\degree = 10.$$

Trig Factors for Common Angles

For a right triangle with base \(a\) and slope angle \(\theta\), the hypotenuse is \(c = a \times \frac{1}{\cos\theta}\) and the height is \(b = a \times \tan\theta\). The table gives the factors for a base of 1, so multiply them by your base.

Angle θ (deg) cos θ tan θ 1/cos θ (hypotenuse per unit base) tan θ (height per unit base)
5 0.996195 0.087489 1.003820 0.087489
10 0.984808 0.176327 1.015427 0.176327
15 0.965926 0.267949 1.035276 0.267949
20 0.939693 0.363970 1.064178 0.363970
30 0.866025 0.577350 1.154701 0.577350
35 0.819152 0.700208 1.220775 0.700208
40 0.766044 0.839100 1.305407 0.839100
45 0.707107 1.000000 1.414214 1.000000
50 0.642788 1.191754 1.555724 1.191754
60 0.500000 1.732051 2.000000 1.732051
70 0.342020 2.747477 2.923804 2.747477
75 0.258819 3.732051 3.863703 3.732051
80 0.173648 5.671282 5.758770 5.671282
85 0.087156 11.430052 11.473713 11.430052

The calculator converts degrees to radians first, using \(\theta_{\text{rad}} = \theta_{\text{deg}} \times \frac{\pi}{180}\).

Slope Angle Scenarios (Base = 10)

The table fixes the base at \(a = 10\) and varies the slope angle. Results are rounded to 4 decimals.

Angle θ (deg) Hypotenuse c = 10 / cos θ Height b = 10 · tan θ
5 10.0382 0.8749
15 10.3528 2.6795
30 11.5470 5.7735
45 14.1421 10
60 20 17.3205
75 38.6370 37.3205
85 114.7371 114.3005

Worked check for 30°: \(c = \frac{10}{\cos 30^\circ} = \frac{10}{0.866025} = 11.5470\) and \(b = 10 \times \tan 30^\circ = 10 \times 0.577350 = 5.7735\).

Advertisement

Interpreting Your Result

  • c is the sloped length along the incline, such as a ramp surface, a roof rafter or a guy cable.
  • b is the vertical rise over the horizontal base \(a\).
  • The ratio \(b/a = \tan\theta\) is the slope gradient, and the percent grade is \(100 \times \tan\theta\). For example, 5° is about 8.75% grade, 15° about 26.8%, and 30° about 57.7%.
  • 45° equals exactly 100% grade, because the rise equals the base. Beyond that the rise is larger than the base.
  • As θ approaches 90°, \(\cos\theta\) approaches 0 and \(\tan\theta\) grows without bound, so both c and b become very large. At exactly 90° the calculation is undefined. Small angle errors near 85° or more change the results a lot.

Sanity checks: c must always be larger than both a and b, and it must satisfy \(c^2 = a^2 + b^2\). For \(a = 10\) and \(\theta = 30^\circ\): \(a^2 + b^2 = 100 + 33.333 = 133.333\) and \(c^2 = 11.5470^2 \approx 133.333\). Also make sure the angle is entered in degrees, not radians.

FAQ

Why must the angle stay below 90 degrees? At exactly 90 degrees \(\cos\theta = 0\), so \(c = a / 0\) is undefined and the triangle is degenerate. Valid input is \(0 \le \theta < 90\).

What unit are the results in? The same unit as the base you enter. The math is unit-agnostic, so a base in millimeters yields a hypotenuse and height in millimeters.

Can the base be zero? A zero base collapses the triangle to a point, giving \(c = 0\) and \(b = 0\); use a positive length for a real triangle.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators