Canadian flagMath101 · Independent Ontario learning libraryCreated and edited by Kamran
TrigonometryGrades 9–124 min read

Cosine

Cosine measures the ratio of the side adjacent to an angle to the hypotenuse in a right triangle.

Cheat sheet
Cosine tells us how much of a right triangle's hypotenuse lies in the direction adjacent to an angle.

Meaning in a right triangle

For an acute angle $\theta$ in a right triangle,

$$ \cos\theta=\frac{\text{adjacent}}{\text{hypotenuse}}. $$

This is CAH in SOH–CAH–TOA. The adjacent side touches $\theta$ but is not the hypotenuse. If both sides touching the angle seem “adjacent,” first identify and exclude the hypotenuse.

Why cosine belongs to the angle

Right triangles sharing the same acute angle are similar. Corresponding side lengths change by the same scale factor, so adjacent divided by hypotenuse stays constant.

In a $5$–$12$–$13$ triangle, viewed from the angle beside the side of length $12$,

$$ \cos\theta=\frac{12}{13}. $$

Scaling the triangle does not change this fraction, which is why a calculator can give cosine from the angle alone.

When to use cosine

Choose cosine when the sides involved are the adjacent and hypotenuse. If the two useful sides are opposite and hypotenuse, use sine. If they are opposite and adjacent, use tangent.

Always choose the reference angle before labelling adjacent. A side may be adjacent to one acute angle and opposite the other.

Worked example: find the adjacent side

Worked example: find the hypotenuse

A guy wire forms a $63^\circ$ angle with the ground, and its ground anchor is $5.2$ m horizontally from the pole. Let $L$ be the wire length:

$$ \cos63^\circ=\frac{5.2}{L}. $$

Rearrange:

$$ L=\frac{5.2}{\cos63^\circ}\approx11.45\text{ m}. $$

Because the wire is the hypotenuse, it must be longer than $5.2$ m; this is a useful reasonableness check.

Finding an angle with inverse cosine

When adjacent and hypotenuse are known, use inverse cosine after forming the ratio.

For adjacent $=9$ and hypotenuse $=15$,

$$ \cos\theta=\frac{9}{15}=0.6, $$
$$ \theta=\cos^{-1}(0.6)\approx53.1^\circ. $$

Inverse cosine returns an angle. The reciprocal $1/\cos\theta$ is a different function called secant.

How cosine changes

For acute angles, cosine lies between $0$ and $1$. As $\theta$ increases toward $90^\circ$, the adjacent side becomes a smaller fraction of the hypotenuse, so cosine decreases.

Important exact values include

$$ \cos30^\circ=\frac{\sqrt3}{2},\qquad \cos45^\circ=\frac{\sqrt2}{2},\qquad \cos60^\circ=\frac12. $$

Notice the complementary relationship $\cos\theta=\sin(90^\circ-\theta)$ for acute angles.

Connections to coordinates and vectors

On the unit circle, cosine is the $x$-coordinate of a point at angle $\theta$. This extends the definition beyond right triangles and allows negative cosine values on the left half of the circle.

Cosine also measures horizontal components. A force of magnitude $F$ acting at angle $\theta$ above the horizontal has horizontal component $F\cos\theta$. Similar component ideas appear in physics, navigation, and vector mathematics.

Cosine in non-right triangles

The cosine law generalizes the Pythagorean theorem:

$$ c^2=a^2+b^2-2ab\cos C. $$

It can solve a non-right triangle when three sides are known or when two sides and their included angle are known. Right-triangle cosine and the cosine law are connected, but their setups are different.

Common mistakes

Calling the hypotenuse adjacent. Exclude the side opposite $90^\circ$ before naming adjacent.

Changing the reference angle silently. Relabel the sides whenever the selected angle changes.

Using cosine with opposite and hypotenuse. That pair belongs to sine.

Confusing $\cos^{-1}$ with $1/\cos$. One finds an angle; the other is secant.

Accepting a hypotenuse shorter than a leg. Use geometry to catch an algebra or calculator error.

Quick self-check

  • Did I mark the selected acute angle?
  • Is the hypotenuse opposite $90^\circ$?
  • Is the other relevant side adjacent to $\theta$?
  • Does the equation put adjacent over hypotenuse?
  • Is the calculator in degree mode, and is the final answer sensible?

Explore the idea

Triangle and angle explorer

Change one quantity at a time and connect what moves to Cosine.

Works offline
Right triangle with adjustable angleA right triangle with a 35 degree angle and adjacent side length 8. 35° adjacent = 8
What the model is showing Static example: with θ = 35° and adjacent = 8, opposite = 8 tan(35°) ≈ 5.60 and hypotenuse = 8/cos(35°) ≈ 9.77.
Check your understanding

Try it yourself

Hints are part of learning. Open one whenever it makes the next step feel possible.

1 practice question
Question 1Calculate a cosine ratio · Gentle

In a right triangle, the side adjacent to θ is 12 and the hypotenuse is 13. What is cos θ?

End of lesson

Nice work making it this far.

Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.

Lesson complete

That one is yours now.

Cosine is saved to My Learning. Take the win—you earned it.

1Your Math101 collectionlesson completed
Search 464 published lessons, 123 answer guides, courses, and learning tools.
Your experience

Settings

Ontario math tutoringWork with KamranBook ↗