Skip to content
Tutorials Center
My learning

Topics

Lesson 5 of 38 · Right Triangle Trigonometry

Sine, Cosine, and Tangent

Define sine, cosine and tangent as ratios of sides in a right triangle, label opposite, adjacent and hypotenuse correctly, and use SOH CAH TOA with examples.

You now know that the side ratios of a right triangle depend only on its angles. In this lesson we name the three most important ratios: sine, cosine, and tangent. They are the foundation of the whole subject.

Labeling the sides

Pick one acute angle of the right triangle and call it θ. The sides get names relative to θ:

  • Hypotenuse: the side opposite the right angle (always the same).
  • Opposite: the side across from θ, not touching it.
  • Adjacent: the leg next to θ (the one that is not the hypotenuse).

If you pick the other acute angle, the opposite and adjacent sides swap roles. The hypotenuse never changes.

flowchart LR
    T["Angle θ"] --> A["Adjacent: leg touching θ"]
    T --> O["Opposite: leg facing θ"]
    A --> H["Hypotenuse: faces the 90° angle"]
    O --> H

The names opposite and adjacent depend on which angle you pick.

The three ratios

For an acute angle θ in a right triangle:

Text
sin θ = opposite / hypotenuse
cos θ = adjacent / hypotenuse
tan θ = opposite / adjacent

The memory aid SOH CAH TOA captures them: Sine = Opposite over Hypotenuse, Cosine = Adjacent over Hypotenuse, Tangent = Opposite over Adjacent.

A worked example

Consider the 3-4-5 triangle. Let θ be the angle opposite the side of length 3. Then opposite = 3, adjacent = 4, hypotenuse = 5.

  • sin θ = 3/5 = 0.6
  • cos θ = 4/5 = 0.8
  • tan θ = 3/4 = 0.75

The angle itself is about 36.87°. We find that with an inverse function in the next lesson.

Python The three ratios of any right triangle

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Using the ratios to find a side

Problem. A right triangle has hypotenuse 12 cm and θ = 35°. Find the side opposite θ.

Opposite and hypotenuse go with sine:

sin 35° = opp / 12, so opp = 12 × sin 35° ≈ 12 × 0.5736 = 6.88 cm.

Problem. The side adjacent to a 52° angle is 7 m. Find the hypotenuse.

Adjacent and hypotenuse go with cosine:

cos 52° = 7 / hyp, so hyp = 7 / cos 52° ≈ 7 / 0.6157 = 11.37 m.

Problem. The side opposite a 28° angle is 5 m. Find the adjacent side.

Opposite and adjacent go with tangent:

tan 28° = 5 / adj, so adj = 5 / tan 28° ≈ 5 / 0.5317 = 9.40 m.

Your calculator must be in degree mode when the angle is in degrees. A calculator in radian mode gives wrong answers. In Python, convert with math.radians first.

Python Choose the right ratio

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A sanity check on sizes

For an acute angle, sin θ and cos θ are always between 0 and 1, because the legs are shorter than the hypotenuse. But tan θ can be any positive number, small or huge. If a calculation gives sin θ = 1.4, you made a mistake.

θ sin θ cos θ tan θ
small (near 0°) near 0 near 1 near 0
45° about 0.707 about 0.707 exactly 1
large (near 90°) near 1 near 0 very large

Seeing the table with code

Python Sine, cosine, tangent table

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice how sine grows from 0 toward 1, cosine falls from 1 toward 0, and tangent grows faster and faster near 90°.

The complementary angle pattern

In a right triangle the two acute angles are complementary: if one is θ, the other is 90° − θ. The side opposite θ is adjacent to the other angle. So:

sin θ = cos(90° − θ)

For example sin 20° = cos 70°. This is where the name "co-sine" comes from: the sine of the complement.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What does SOH stand for?

    SOH means sine equals opposite over hypotenuse.
  2. 2. For the 5-12-13 triangle, what is cos of the angle opposite the side 5?

    The adjacent side to that angle is 12 and the hypotenuse is 13, so cos = 12/13.
  3. 3. Which value is impossible for the sine of an acute angle?

    A leg is shorter than the hypotenuse, so sine of an acute angle is less than 1.
  4. 4. The opposite side is 8 and the adjacent side is 8. What is tan θ?

    tan θ = opposite / adjacent = 8/8 = 1, which means θ = 45 degrees.

Summary

  • Label sides relative to the chosen angle: opposite, adjacent, hypotenuse.
  • sin = opp/hyp, cos = adj/hyp, tan = opp/adj (SOH CAH TOA).
  • Choose the ratio that connects the two sides you care about.
  • Use degree mode with degrees; sine and cosine of an acute angle lie between 0 and 1.
  • sin θ = cos(90° − θ).

Next: Solving Right Triangles