Cosine of an Angle Calculator

Cosine of an Angle Calculator

Growing AI Skill PRO

Enter Calculation

Formula

cos⁡θ=AdjacentHypotenuse\cos\theta = \frac{\text{Adjacent}}{\text{Hypotenuse}}

Example

cos⁡θ=45=0.8\cos\theta = \frac{4}{5} = 0.8
Usage stats

Advertisement

Results

Cosine of the angle, cos(θ)
0.8
= adjacent / hypotenuse
Angle θ (degrees) 36.8699°
Angle θ (radians) 0.643501 rad

Report an error on this page

What this calculator does

In any right triangle, the cosine of an acute angle θ is defined as the length of the side adjacent to that angle divided by the hypotenuse (the longest side, opposite the right angle). This tool computes cos(θ) directly from those two measurements and also returns the angle θ itself in both degrees and radians using the inverse cosine function.

How to use it

Enter the length of the side adjacent to your angle and the length of the hypotenuse, then read off the result. The adjacent and hypotenuse can be in any consistent unit (cm, m, inches) because cosine is a ratio — the units cancel out. The hypotenuse should be the largest side; if adjacent exceeds hypotenuse the ratio is clamped to the valid range [-1, 1] before the angle is computed.

The formula explained

The core relationship is $$\cos\theta = \frac{\text{Adjacent}}{\text{Hypotenuse}}$$. To find the angle, we invert it: $$\theta = \arccos\left(\frac{\text{Adjacent}}{\text{Hypotenuse}}\right)$$. Arccosine returns a value between 0 and 180 degrees (0 to \(\pi\) radians), which covers every valid right-triangle angle.

Advertisement
Right triangle showing the adjacent side, hypotenuse, and angle theta
In a right triangle, cosine of the angle equals the adjacent side divided by the hypotenuse.

Worked example

Suppose the adjacent side is 4 and the hypotenuse is 5. Then $$\cos\theta = \frac{4}{5} = 0.8.$$ Taking the inverse cosine, $$\theta = \arccos(0.8) \approx 36.8699°,$$ which is about \(0.6435\) radians. This is one of the angles in the classic 3-4-5 right triangle.

Right triangle with adjacent 4 and hypotenuse 5 giving angle about 37 degrees
Worked example: adjacent 4 and hypotenuse 5 give cos θ = 0.8, so θ ≈ 36.87°.

Common Cosine Values for Standard Angles

In a right triangle, \(\cos\theta = \frac{\text{adjacent}}{\text{hypotenuse}}\). The table lists the cosine of the standard angles. Values are exact where possible, with decimals rounded to four places.

Angle (degrees) Angle (radians) Exact cos θ Decimal cos θ
0° 0 1 1
30° π/6 √3/2 0.8660
45° π/4 1/√2 = √2/2 0.7071
60° π/3 1/2 0.5
90° π/2 0 0
180° π −1 −1

A right triangle has two acute angles, each strictly between 0° and 90°. The values at 0°, 90° and 180° are limiting cases. The 180° row is included because the arccosine function returns angles from 0 to π radians (0° to 180°). As the angle grows from 0° to 90°, cosine falls from 1 to 0.

How Cosine Changes with the Adjacent/Hypotenuse Ratio

The ratio adjacent ÷ hypotenuse is always between 0 and 1 for an acute angle in a right triangle, because the hypotenuse is the longest side. A larger ratio means a smaller angle. The angle is found with \(\theta = \arccos\left(\frac{\text{adjacent}}{\text{hypotenuse}}\right)\).

Adjacent Hypotenuse cos θ θ (degrees) θ (radians) Note
1 2 0.5 60° 1.0472 Standard angle π/3
3 5 0.6 53.1301° 0.9273 3-4-5 triangle, angle opposite the side 4
4 5 0.8 36.8699° 0.6435 3-4-5 triangle, the other acute angle
5 13 0.3846 67.3801° 1.1760 5-12-13 triangle
12 13 0.9231 22.6199° 0.3948 5-12-13 triangle, the other acute angle
1 1 1 0° 0 Degenerate: adjacent equals hypotenuse

Worked substitution for the 3-4-5 triangle: \(\cos\theta = \frac{3}{5} = 0.6\), so \(\theta = \arccos(0.6) \approx 53.13^\circ\). The other acute angle gives \(\cos\theta = \frac{4}{5} = 0.8\), so \(\theta \approx 36.87^\circ\). The two angles add to 90°, as expected. The 5-12-13 angles (67.38° and 22.62°) also add to 90°.

Advertisement

Key Terms: Adjacent, Hypotenuse, Cosine and Arccosine

  • Hypotenuse: the longest side of a right triangle, opposite the 90° angle.
  • Adjacent side: the leg that touches the chosen angle and is not the hypotenuse.
  • Opposite side: the leg across the triangle from the chosen angle, not touching it.
  • Cosine (cos): the ratio \(\cos\theta = \frac{\text{adjacent}}{\text{hypotenuse}}\). It is a unitless number.
  • Arccosine (inverse cosine, arccos or cos⁻¹): the function that returns the angle for a given cosine value. Its principal range is 0 to π radians (0° to 180°), and its input must lie between −1 and 1.
  • Degrees vs radians: a full turn is 360° or 2π radians, so \(180^\circ = \pi\) rad. To convert degrees to radians, multiply by \(\frac{\pi}{180}\). To convert radians to degrees, multiply by \(\frac{180}{\pi}\).
  • Which side is adjacent depends on the angle: in a right triangle each acute angle has its own adjacent and opposite legs. The leg that is adjacent to one acute angle is opposite to the other. The hypotenuse is the same for both angles. Always identify the angle first, then pick the adjacent side.

FAQ

Why must the hypotenuse be the longest side? By definition the hypotenuse is opposite the right angle and is always the longest side, so adjacent/hypotenuse is at most 1, keeping cosine valid.

What if I get cos(θ) = 1? A cosine of 1 means the angle is 0°, which happens when the adjacent side equals the hypotenuse — a degenerate (flat) triangle.

How do I convert radians to degrees? Multiply radians by \(180/\pi\). This calculator already provides both for you.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators