Britannica Sources used in this answer

How are sine, cosine, and tangent calculated from the sides of a right triangle?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In trigonometry, the sine, cosine, and tangent functions are defined by the ratios of the side lengths of a right triangle relative to a given angle A.

Using the side lengths opposite to the angle (a), adjacent to the angle (b), and the hypotenuse (h), these functions are calculated as follows:

  • Sine (sin A): The ratio of the opposite side to the hypotenuse.
    sinA=oppositehypotenuse=ah
  • Cosine (cos A): The ratio of the adjacent side to the hypotenuse.
    cosA=adjacenthypotenuse=bh
  • Tangent (tan A): The ratio of the opposite side to the adjacent side.
    tanA=oppositeadjacent=ab

These functions represent properties of the angle itself, remaining independent of the triangle's overall size.12