Intermediate level

Sine, cosine and tangent

Sine, cosine and tangent are three ratios of the sides of a right triangle. See why they depend on the angle alone, where the exact values for 30°, 45° and 60° come from, and how to find a side you cannot measure.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

All formulas

  • Sine

    sinα=ac\sin \alpha = \frac{a}{c}

    the leg opposite the angle over the hypotenuse

  • Cosine

    cosα=bc\cos \alpha = \frac{b}{c}

    the leg adjacent to the angle over the hypotenuse

  • Tangent

    tanα=ab=sinαcosα\tan \alpha = \frac{a}{b} = \frac{\sin \alpha}{\cos \alpha}

    the opposite leg over the adjacent leg

  • The opposite leg

    a=csinαa = c \cdot \sin \alpha

    the definition of the sine solved for a

  • The adjacent leg

    b=ccosαb = c \cdot \cos \alpha

    the definition of the cosine solved for b

  • The hypotenuse

    c=asinαc = \frac{a}{\sin \alpha}

    when the leg opposite the angle is known

  • Special angles

    sin30=12,sin45=22,sin60=32\sin 30^\circ = \frac{1}{2}, \quad \sin 45^\circ = \frac{\sqrt{2}}{2}, \quad \sin 60^\circ = \frac{\sqrt{3}}{2}

    exact values, not readings from a table

The Pythagorean theorem relates the three sides of a right triangle. Trigonometry adds a fourth quantity — the angle — and lets you compute a side from just one other side and one angle.

Opposite and adjacent

Before any formula appears, the sides have to be named relative to a chosen acute angle. This is the one place where readers go wrong more often than in the arithmetic.

abcα
With respect to α: side a lies opposite it, side b next to it, and the hypotenuse c opposite the right angle.
  • The hypotenuse cc — the side opposite the right angle, always the longest. It does not depend on which acute angle you pick.
  • The opposite leg aa — it does not touch the angle α\alpha.
  • The adjacent leg bb — it forms the angle α\alpha together with the hypotenuse.

Pick the other acute angle and aa and bb swap roles. The hypotenuse stays where it was.

The three ratios

sinα=ac,cosα=bc,tanα=ab\sin \alpha = \frac{a}{c}, \qquad \cos \alpha = \frac{b}{c}, \qquad \tan \alpha = \frac{a}{b}

In words: the sine divides the opposite side by the hypotenuse, the cosine divides the adjacent side by the hypotenuse, and the tangent divides the opposite side by the adjacent one.

The tangent is not a separate idea — it is the quotient of the other two:

sinαcosα=a/cb/c=ab=tanα\frac{\sin \alpha}{\cos \alpha} = \frac{a/c}{b/c} = \frac{a}{b} = \tan \alpha
In a right triangle with a = 3, b = 4, c = 5, find the sine, cosine and tangent of the angle α opposite side a.

Why only the angle matters

Two right triangles with the same acute angle are similar — one is simply a scaled copy of the other. Scaling multiplies every side by the same number kk:

kakc=ac\frac{k \cdot a}{k \cdot c} = \frac{a}{c}

The scale cancels inside the fraction. That is why sin30\sin 30^\circ is one number — the same in a triangle with a hypotenuse of 1cm1\,\text{cm} and in one with a hypotenuse of 1km1\,\text{km}. It is the entire reason tables of values can exist at all.

Special angles: exact values

For three angles the values can be derived with no table and no calculator — and they come out exact, with a square root instead of a decimal expansion.

45° — take a square of side 11 and cut it along the diagonal. You get a right triangle with legs 11 and 11, and its hypotenuse is 12+12=2\sqrt{1^2 + 1^2} = \sqrt{2}. Hence

sin45=12=22\sin 45^\circ = \frac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2}

30° and 60° — take an equilateral triangle of side 22 and cut it along its height. You get a right triangle with hypotenuse 22, shorter leg 11 (half the side) and height 2212=3\sqrt{2^2 - 1^2} = \sqrt{3}. Opposite the 3030^\circ angle lies the side 11, opposite the 6060^\circ angle the side 3\sqrt{3}:

sin30=12,sin60=32\sin 30^\circ = \frac{1}{2}, \qquad \sin 60^\circ = \frac{\sqrt{3}}{2}
α\alphasinα\sin \alphacosα\cos \alphatanα\tan \alpha
00^\circ001100
3030^\circ12\frac{1}{2}32\frac{\sqrt{3}}{2}33\frac{\sqrt{3}}{3}
4545^\circ22\frac{\sqrt{2}}{2}22\frac{\sqrt{2}}{2}11
6060^\circ32\frac{\sqrt{3}}{2}12\frac{1}{2}3\sqrt{3}
9090^\circ1100undefined

Two things are worth spotting in this table. First, the cosine column is the sine column read bottom-up — because cosα=sin(90α)\cos \alpha = \sin(90^\circ - \alpha), which is the same side viewed from the other acute angle. Second, tan90\tan 90^\circ is undefined: at 9090^\circ the adjacent side would have length zero, and division by zero is not a thing.

32\frac{\sqrt{3}}{2} is the exact value; 0.870.87 is its two-decimal approximation. When a question asks for the exact value, type the form with the root.

Finding a side

Each definition can be solved for the length you are after:

a=csinα,b=ccosα,c=asinαa = c \cdot \sin \alpha, \qquad b = c \cdot \cos \alpha, \qquad c = \frac{a}{\sin \alpha}

The recipe never changes: name the sides relative to the given angle, pick the function that links the known side to the unknown one, and only then substitute numbers.

A right triangle has a hypotenuse of 12 cm and an acute angle of 35° at it. Find the leg opposite that angle (to 0.1 cm).
A ladder leans against a wall at 70° to the ground, with its foot 1.2 m from the wall. How long is the ladder (to 0.1 m)?

The calculator: DEG mode

A calculator computes the sine in whatever angle measure it is set to, and the abbreviation on the display tells you which:

  • DEG — degrees. sin30=0.5\sin 30 = 0.5. This is the mode school problems are solved in.
  • RAD — radians. The same keystrokes give sin300.988\sin 30 \approx -0.988, because 3030 is read as 3030 radians.
  • GRAD — gradians (a full turn is 400g400^\text{g}), used in surveying.

Before computing anything, press sin30\sin 30 and check that you see 0.50.5. If you do not, switch the mode — not the answer.

Exercises

For a special angle, type the exact value, e.g. √3/2 or 1/2 (a two-decimal approximation is accepted as well — a one-decimal one is not). For a side length the unit is given in brackets, so type the bare number rounded to 0.1.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
cos 45° =

Common mistakes

  • Swapping the opposite and the adjacent leg — name them before you reach for a formula; this causes most of the errors.
  • Using the sine in a triangle with no right angle — these three definitions only hold in a right triangle. For any triangle, use the laws of sines and cosines.
  • A calculator left in RAD mode — the most common source of an answer that is wildly off.
  • Quoting 0.870.87 as the exact value — the exact value is 32\frac{\sqrt{3}}{2}.
  • Multiplying instead of dividing — when the unknown is in the denominator (cosα=bc\cos \alpha = \frac{b}{c}, solving for cc), you have to divide.
  • Treating tan90\tan 90^\circ as a number — that tangent does not exist.

Formula card

Topic: Sine, cosine and tangent

  • Sine

    sinα=ac\sin \alpha = \frac{a}{c}

    the leg opposite the angle over the hypotenuse

  • Cosine

    cosα=bc\cos \alpha = \frac{b}{c}

    the leg adjacent to the angle over the hypotenuse

  • Tangent

    tanα=ab=sinαcosα\tan \alpha = \frac{a}{b} = \frac{\sin \alpha}{\cos \alpha}

    the opposite leg over the adjacent leg

  • The opposite leg

    a=csinαa = c \cdot \sin \alpha

    the definition of the sine solved for a

  • The adjacent leg

    b=ccosαb = c \cdot \cos \alpha

    the definition of the cosine solved for b

  • The hypotenuse

    c=asinαc = \frac{a}{\sin \alpha}

    when the leg opposite the angle is known

  • Special angles

    sin30=12,sin45=22,sin60=32\sin 30^\circ = \frac{1}{2}, \quad \sin 45^\circ = \frac{\sqrt{2}}{2}, \quad \sin 60^\circ = \frac{\sqrt{3}}{2}

    exact values, not readings from a table

abcα
A right triangle seen from the angle α: side a lies opposite it, side b next to it, and the hypotenuse c opposite the right angle.

Frequently asked questions

Related articles