Topic · Trigonometry

Sine, Cosine & Tangent

Three ratios that turn the geometry of a right triangle into arithmetic. Pick any non-right angle, and these functions tell you how the sides relate — independent of how big the triangle is. They are the bridge between angle and length, and almost everything else in trigonometry is built from them.

What you'll leave with

  • The three core ratios — $\sin$, $\cos$, $\tan$ — and exactly which sides of a right triangle they reference.
  • The SOH-CAH-TOA mnemonic, and why the ratios depend on the angle alone, not the triangle's size.
  • Exact values at the special angles 0°, 30°, 45°, 60°, 90° — derived, not memorized.
  • How to recover any missing side or angle of a right triangle, including when to reach for $\sin^{-1}$, $\cos^{-1}$, $\tan^{-1}$.

1. The three ratios

Start with a right triangle. One angle is exactly $90°$; we'll call it the right angle. Pick one of the two other angles and call it $\theta$. Every side now has a name relative to that choice:

  • The hypotenuse is the longest side — the one opposite the right angle. It never changes name.
  • The opposite side is the one that does not touch $\theta$. It sits across from it.
  • The adjacent side is the one that touches $\theta$ and is not the hypotenuse.

With those names settled, the three functions are just ratios of pairs of those sides:

Sine, Cosine, Tangent
$$ \sin\theta = \frac{\text{opposite}}{\text{hypotenuse}}, \qquad \cos\theta = \frac{\text{adjacent}}{\text{hypotenuse}}, \qquad \tan\theta = \frac{\text{opposite}}{\text{adjacent}} $$

Each is a pure number — no units — that depends only on the angle $\theta$.

θ adjacent opposite hypotenuse A B C Names are assigned relative to the chosen angle θ.
Note

"Opposite" and "adjacent" are not properties of the triangle. They are properties of the triangle plus a chosen angle. Pick the other non-right angle and the labels swap: yesterday's opposite is today's adjacent.

2. SOH-CAH-TOA

The mnemonic everyone learns. It's nine letters that pack the three definitions:

ChunkStands forRatio
SOH Sine = Opposite over Hypotenuse $\sin\theta = \dfrac{O}{H}$
CAH Cosine = Adjacent over Hypotenuse $\cos\theta = \dfrac{A}{H}$
TOA Tangent = Opposite over Adjacent $\tan\theta = \dfrac{O}{A}$

Lean on it whenever you stare at a triangle and forget which side goes on top. The structure is also worth noticing: every ratio is one of $\{O, A\}$ divided by the larger of the relevant pair. Tangent is the odd one out — no hypotenuse — and unsurprisingly, it can become arbitrarily large (because as $\theta \to 90°$, $A \to 0$).

Tip

A useful identity drops out for free: $\tan\theta = \dfrac{\sin\theta}{\cos\theta}$. Cancel the hypotenuse in $\dfrac{O/H}{A/H}$ and you're left with $O/A$. The three functions aren't independent — tangent is fully determined by the other two.

3. Why ratios, not lengths

Here is the conceptual move that makes all of trigonometry possible: the ratios depend only on the angle, not on the size of the triangle. Two right triangles with the same $\theta$ have the same $\sin\theta$, the same $\cos\theta$, and the same $\tan\theta$ — even if one fits in your palm and the other spans a football field.

The reason is similar triangles. Two triangles are similar when their angles match; when that happens, corresponding sides are all scaled by the same factor $k$:

$$ \frac{O'}{H'} = \frac{k \cdot O}{k \cdot H} = \frac{O}{H} $$

The $k$ cancels. Whatever ratio you compute in the small triangle, you'll compute again in the big one. Scale is irrelevant.

That cancellation is what justifies treating $\sin$, $\cos$, $\tan$ as functions of the angle alone:

$$ \sin : \theta \longmapsto \frac{\text{opposite}}{\text{hypotenuse}} $$

Feed in an angle, get out a number. There's no ambiguity about which triangle you used, because every right triangle with that angle gives the same answer.

Sine, cosine, and tangent are not properties of a triangle. They are properties of an angle.
Why this matters

Once you accept that $\sin 30°$ is a single fixed number — not "the sine of some 30° triangle" — you can tabulate it once and use it forever. That's how a single calculator key can answer a question about any right triangle in the world.

4. Special angles

At three angles — 30°, 45°, 60° — the ratios come out as exact algebraic expressions instead of decimal noise. They show up so often that it's worth deriving them once and remembering the picture, not the values.

The 45-45-90 triangle

Start with a square of side $1$ and cut it along a diagonal. You get two congruent right triangles, each with legs $1$ and $1$ and a hypotenuse you can compute with the Pythagorean theorem:

$$ h^2 = 1^2 + 1^2 = 2 \quad\Longrightarrow\quad h = \sqrt{2} $$

Both non-right angles are $45°$ by symmetry. So:

$$ \sin 45° = \frac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2}, \qquad \cos 45° = \frac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2}, \qquad \tan 45° = \frac{1}{1} = 1 $$

The 30-60-90 triangle

Start with an equilateral triangle of side $2$ and drop an altitude from one vertex. The altitude bisects the opposite side, creating two right triangles. Each has a hypotenuse of $2$, a short side of $1$ (half the original side), and a long leg you find by Pythagoras:

$$ \ell^2 + 1^2 = 2^2 \quad\Longrightarrow\quad \ell = \sqrt{3} $$

The angle at the top vertex is half of $60°$, so $30°$; the angle at the base is still $60°$. Reading the ratios off this triangle:

$$ \sin 30° = \frac{1}{2}, \quad \cos 30° = \frac{\sqrt{3}}{2}, \quad \tan 30° = \frac{1}{\sqrt{3}} = \frac{\sqrt{3}}{3} $$ $$ \sin 60° = \frac{\sqrt{3}}{2}, \quad \cos 60° = \frac{1}{2}, \quad \tan 60° = \sqrt{3} $$

Notice the symmetry: $\sin 30° = \cos 60°$, $\cos 30° = \sin 60°$. That's not coincidence — it's because $30°$ and $60°$ are complementary, and "opposite" for one angle is "adjacent" for the other.

45° 45° 1 1 √2 45-45-90 60° 30° 1 √3 2 30-60-90

Table of exact values

Including the endpoints $0°$ and $90°$, which you can read off by squashing the triangles flat:

$\theta$ $\sin\theta$ $\cos\theta$ $\tan\theta$
$0°$ $0$ $1$ $0$
$30°$ $\tfrac{1}{2}$ $\tfrac{\sqrt{3}}{2}$$\tfrac{\sqrt{3}}{3}$
$45°$ $\tfrac{\sqrt{2}}{2}$$\tfrac{\sqrt{2}}{2}$$1$
$60°$ $\tfrac{\sqrt{3}}{2}$$\tfrac{1}{2}$ $\sqrt{3}$
$90°$ $1$ $0$ undefined
Memory trick

For the $\sin$ column, write $\sqrt{0}/2,\ \sqrt{1}/2,\ \sqrt{2}/2,\ \sqrt{3}/2,\ \sqrt{4}/2$. That gives $0,\ \tfrac{1}{2},\ \tfrac{\sqrt{2}}{2},\ \tfrac{\sqrt{3}}{2},\ 1$ in order. The cosine column is the same sequence reversed.

5. Using them to solve right triangles

"Solving a triangle" means: given some of its parts (sides and angles), find the rest. With a right triangle and one extra piece of information beyond the right angle, $\sin$/$\cos$/$\tan$ are usually enough.

Case A: an angle and a side, find another side

Identify which side you have and which you want — opposite, adjacent, or hypotenuse — relative to the known angle. Pick the function whose ratio links those two sides, then solve.

Example: known angle $\theta = 35°$, known hypotenuse $h = 10$. Find the opposite side $o$.

The function that links opposite and hypotenuse is sine: $\sin\theta = o/h$. Rearrange:

$$ o = h \sin\theta = 10 \sin 35° \approx 10 \times 0.5736 \approx 5.74 $$

Case B: two sides, find an angle

Form the ratio you can compute, then invert. The inverse functions $\sin^{-1}$, $\cos^{-1}$, $\tan^{-1}$ (sometimes written $\arcsin$, $\arccos$, $\arctan$) take a ratio and return the angle that produces it.

Example: opposite $= 4$, adjacent $= 7$. Find $\theta$.

$$ \tan\theta = \frac{4}{7} \quad\Longrightarrow\quad \theta = \tan^{-1}\!\left(\frac{4}{7}\right) \approx 29.7° $$
Domain of the inverses

$\sin^{-1}$ and $\cos^{-1}$ only accept inputs between $-1$ and $1$, because $\sin$ and $\cos$ can only output values in that range. If your ratio comes out as $1.3$, you've made an arithmetic error — there is no angle that produces it.

The two-step pattern

Whatever the specific case, the recipe is the same:

  1. Label. Mark the known angle and the sides as opposite, adjacent, hypotenuse.
  2. Pick. Choose the function whose ratio uses exactly the sides you know and the one you want.
  3. Solve. Algebra or inverse function — whichever isolates the unknown.

6. The reciprocal trio: sec, csc, cot

Once you have $\sin$, $\cos$, $\tan$, you have three more for free — their reciprocals. They get their own names because they appear often enough in formulas (especially in calculus) that always writing "$1/\cos\theta$" gets tiresome.

Secant, Cosecant, Cotangent
$$ \sec\theta = \frac{1}{\cos\theta} = \frac{H}{A}, \quad \csc\theta = \frac{1}{\sin\theta} = \frac{H}{O}, \quad \cot\theta = \frac{1}{\tan\theta} = \frac{A}{O} $$

The pairing is a little perverse — secant is the reciprocal of cosine, not sine — but it's the convention everywhere. The "co-" prefix on cosecant and cotangent matches the function they pair with under complementary angles, not the one they're reciprocals of.

Note

You can do almost everything in introductory trigonometry with just $\sin$, $\cos$, $\tan$. The reciprocal trio mostly earns its keep later, when you start doing identities and calculus. Recognize them when they appear; don't bother memorizing values.

7. Playground: tune the angle

One slider, one triangle. As you change $\theta$, the hypotenuse stays the same length and the right-angle vertex stays put — the upper-left corner swings along an arc, and the two legs grow and shrink to track $\sin\theta$ and $\cos\theta$. Watch all three ratios update at once.

θ = 30°
θ = 0.5236 rad
sin θ = 0.5000  ·  cos θ = 0.8660  ·  tan θ = 0.5774
θ adjacent opposite hypotenuse cos θ = 0.866 sin θ = 0.500 1.000
opposite adjacent hypotenuse
30°
Try it

Slide $\theta$ toward $1°$ — the opposite side shrinks toward zero and the adjacent grows to nearly the full hypotenuse, so $\sin\theta \to 0$ and $\cos\theta \to 1$. Slide toward $89°$ and the roles invert: the adjacent collapses, and $\tan\theta$ explodes upward. The two functions trade places as $\theta$ sweeps through the right angle's complement.

8. Common pitfalls

Calculator in the wrong angle mode

Every calculator has two angle modes — degrees and radians — and they disagree about what $\sin 30$ means. In degrees it's $0.5$; in radians it's about $-0.988$. Always check the mode before you trust the answer. If you compute $\sin 30°$ and get something other than $0.5$, the very first thing to check is the mode.

"Opposite" and "adjacent" are per-angle labels

The side labels flip when you switch which non-right angle you're calling $\theta$. If you compute $\sin\theta$ but accidentally use the side opposite the other angle, you've actually computed $\cos\theta$. Re-label the sides every time you switch focus.

$\sin^{-1}$ is the inverse function, not the reciprocal

The notation $\sin^{-1}(x)$ means "the angle whose sine is $x$" — the inverse function. It does not mean $1/\sin(x)$. That reciprocal has a different name: $\csc(x)$. Same notation crime is committed for $\cos^{-1}$ and $\tan^{-1}$.

$\tan 90°$ is undefined, not infinity

As $\theta$ approaches $90°$, the adjacent side shrinks toward zero while the opposite side stays positive, so $\tan\theta = O/A$ grows without bound. Exactly at $90°$ the ratio is undefined — there's no value to assign. A calculator will return an error; that's correct behavior, not a bug.

9. Worked examples

Try each before opening the solution. The goal isn't to land on the right number — it's to choose the right function on your first attempt.

Example 1 · Find a missing side using sine

A right triangle has hypotenuse $h = 12$ and one non-right angle $\theta = 40°$. Find the side opposite $\theta$.

Step 1. Identify the ratio. We have the hypotenuse and want the opposite — that's sine territory:

$$ \sin\theta = \frac{o}{h} $$

Step 2. Solve for $o$:

$$ o = h \sin\theta = 12 \sin 40° \approx 12 \times 0.6428 \approx 7.71 $$

So the opposite side is about $7.71$.

Example 2 · Find an angle from two sides

A right triangle has opposite side $5$ and adjacent side $12$ (the famous 5-12-13 triple). Find $\theta$.

Step 1. Both legs are known — that's the tangent ratio:

$$ \tan\theta = \frac{5}{12} $$

Step 2. Apply the inverse:

$$ \theta = \tan^{-1}\!\left(\frac{5}{12}\right) \approx 22.62° $$

Check. The other non-right angle should be $90° - 22.62° = 67.38°$, and $\tan 67.38° = 12/5 = 2.4$ ✓

Example 3 · Verify special-angle values from the 45-45-90 triangle

Use a 45-45-90 triangle with legs of length $1$ to verify $\sin 45° = \cos 45° = \tfrac{\sqrt{2}}{2}$.

Step 1. By the Pythagorean theorem, the hypotenuse is $\sqrt{1^2 + 1^2} = \sqrt{2}$.

Step 2. Pick either $45°$ angle. Both legs are non-right sides; one is opposite and one is adjacent. By symmetry, both ratios are equal:

$$ \sin 45° = \frac{1}{\sqrt{2}}, \qquad \cos 45° = \frac{1}{\sqrt{2}} $$

Step 3. Rationalize the denominator by multiplying top and bottom by $\sqrt{2}$:

$$ \frac{1}{\sqrt{2}} \cdot \frac{\sqrt{2}}{\sqrt{2}} = \frac{\sqrt{2}}{2} \approx 0.7071 $$
Example 4 · Compute $\sin 30°$ exactly

Use a 30-60-90 triangle to find $\sin 30°$.

Step 1. Take an equilateral triangle with side $2$ and drop an altitude. The two halves are 30-60-90 triangles with hypotenuse $2$, short leg $1$, long leg $\sqrt{3}$.

Step 2. Focus on the $30°$ angle (the one at the top of the original triangle). The side opposite that angle is the short leg of length $1$. The hypotenuse is $2$.

$$ \sin 30° = \frac{\text{opposite}}{\text{hypotenuse}} = \frac{1}{2} $$

Exact value, no calculator required.

Example 5 · The ladder against a wall

A $5$ m ladder leans against a vertical wall, making a $70°$ angle with the ground. How far is the base of the ladder from the wall?

Step 1. Draw the right triangle: the ladder is the hypotenuse, the wall is the vertical leg (opposite the $70°$ angle), and the ground from base to wall is the horizontal leg (adjacent to the $70°$ angle). We want the adjacent side; we know the hypotenuse.

Step 2. That's the cosine ratio:

$$ \cos 70° = \frac{\text{adjacent}}{\text{hypotenuse}} = \frac{d}{5} $$

Step 3. Solve for $d$:

$$ d = 5 \cos 70° \approx 5 \times 0.3420 \approx 1.71 \text{ m} $$

The ladder's base is about $1.71$ m from the wall.

Sanity check. $70°$ is steep, so the base should be close to the wall — $1.71$ m out of a $5$ m ladder is reasonable. If you'd gotten $4.7$, you'd have used $\sin$ by mistake.

Sources & further reading

The content above synthesizes the standard right-triangle treatment of the trigonometric functions. For derivations, history, and the move from triangles to the unit circle, the sources below pick up where this page stops.

Test your understanding

A quiz that builds from easy to hard. Pick an answer to get instant feedback and a worked explanation. Your progress is saved in this browser — come back anytime to continue.

Question 1
0 correct