The Wayback Machine - https://web.archive.org/web/20250908135615/https://www.geeksforgeeks.org/maths/tangent-formulas/
Open In App

Tangent Formulas

Last Updated : 23 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Tangent Function is among the six basic trigonometric functions and is calculated by taking the ratio of the perpendicular side and the hypotenuse side of the right-angle triangle.

In this article, we will learn about Trigonometric ratios, Tangent formulas, related examples, and others in detail.

Trigonometric Ratios

Trigonometric ratios are ratios of sides in a triangle and there are six trigonometric ratios. In a right-angle triangle, the six trigonometric ratios are defined as:

  1. sin Îļ = (Opposite Side/Hypotenuse
  2. cos Îļ = Adjacent Side/Hypotenuse
  3. tan Îļ = Opposite side/adjacent side
  4. cosec Îļ = 1/sin Îļ = Hypotenuse/Opposite Side
  5. sec Îļ = 1/cos Îļ = Hypotenuse/Adjacent Side
  6. cot Îļ = 1/tan Îļ = Adjacent Side/Opposite Side

Tangent Formula

Tangent of an angle in a right-angled triangle is the ratio of the length of the opposite side to the length of the adjacent side to the given angle. We write a tangent function as "tan".

Let us consider a right-angled triangle ABC and one of its acute angles is "Îļ". An opposite side is the side that is opposite to the angle "Îļ" and the adjacent side is the side that is adjacent to the angle "Îļ".

Right-Triangle-in-Trigonometry

Now, the tangent formula for the given angle "Îļ" is,

Tangent-Formula
Tangent Formula

Some Basic Tangent Formulae

Tangent Function in Quadrants

The tangent function is positive in the first and third quadrants and negative in the second and fourth quadrants.

  • tan (2π + Îļ) = tan Îļ (1st quadrant)
  • tan (π – Îļ) = – tan Îļ (2nd quadrant)
  • tan (π + Îļ) = tan Îļ (3rd quadrant)
  • tan (2π – Îļ) = – tan Îļ (4th quadrant)

Tangent Function as a Negative Function

The tangent function is a negative function since the tangent of a negative angle is the negative of a tangent positive angle.

tan (-Îļ) = - tan Îļ

Tangent Function in Terms of Sine and Cosine Function

Tangent function in terms of sine and cosine functions can be written as,

tan Îļ = sin Îļ/cos Îļ

We know that, tan Îļ = Opposite side/Adjacent side

Now, divide both the numerator and denominator with hypotenuse

tan Îļ = (Opposite side/Hypotenuse)/(Adjacent side/Hypotenuse)

We know that, sin Îļ = opposite side/hypotenuse

cos Îļ = adjacent side/hypotenuse

Hence, tan Îļ = sin Îļ/cos Îļ

Tangent Function in Terms of Sine Function

Tangent function in terms of the sine function can be written as,

tan Îļ = sin Îļ/(√1 – sin2 Îļ)

We know that,

tan Îļ = sin Îļ/cos Îļ

From the Pythagorean identities, we have,

sin2 Îļ + cos2 Îļ = 1

cos2 Îļ = 1 - sin2 Îļ

cos Îļ = √(1 - sin2 Îļ)

Hence, tan Îļ =  sin Îļ/(√1 – sin2 Îļ)

Tangent Function in Terms of Cosine Function

Tangent function in terms of the cosine function can be written as,

tan Îļ = (√1 -cos2 Îļ)/cos Îļ

We know that,

tan Îļ = sin Îļ/cos Îļ

From the Pythagorean identities, we have,

sin2 Îļ + cos2 Îļ = 1

sin2 Îļ = 1 - cos2 Îļ

sin Îļ = √(1 - cos2 Îļ)

Hence, tan Îļ =  (√1 - cos2 Îļ)/cos Îļ

Tangent Function in Terms of Cotangent Function

Tangent function in terms of the cotangent function can be written as,

tan Îļ = 1/cot Îļ

or

tan Îļ = cot (90° - Îļ) (or) cot (π/2 - Îļ)

Tangent Function in Terms of Cosecant Function

Tangent function in terms of the cosecant function can be written as,

tan Îļ = 1/√(cosec2 Îļ – 1)

From the Pythagorean identities, we have,

cosec2 Îļ – cot2 Îļ = 1

cot2 Îļ = cosec2 Îļ - 1

cot Îļ = √(cosec2 Îļ - 1)

We know that,

tan Îļ = 1/cot Îļ

Hence, tan Îļ = 1/√(cosec2 Îļ - 1)

Tangent Function in Terms of Secant Function

Tangent function in terms of the secant function can be written as,

tan Îļ = √sec2 Îļ – 1

From the Pythagorean identities, we have,

sec2 Îļ – tan2 Îļ = 1

tan Îļ = sec2 Îļ - 1

Hence, tan Îļ = √(sec2 Îļ – 1)

Tangent Function in Terms of Double Angle

Tangent function for a double angle is,

tan 2Îļ = (2 tan Îļ)/(1 - tan2 Îļ)

Tangent Function in Terms of Triple Angle

Tangent function for a triple angle is,

 tan 3Îļ = (3 tan Îļ - tan3Îļ) / (1 - 3 tan2Îļ)

Tangent Function in Terms of Half-Angle

Tangent function for a half-angle is,

tan (Îļ/2) = Âą √[ (1 - cos Îļ) / (1 + cos Îļ) ]

tan (Îļ/2) = (1 - cos Îļ) / ( sin Îļ)

Tangent Function in Terms of Addition and Subtraction of Two Angles

Sum and difference formulas for a tangent function are,

tan (A + B) = (tan A + tan B)/(1 - tan A tan B)

tan (A - B) = (tan A - tan B)/(1 + tan A tan B)

Article Related to Tangent Formula:

Examples on Tangent Formulas

Example 1: Find the value of tan Îļ if sin Îļ = 2/5 and Îļ is the first quadrant angle.

Solution:

Given,

  • sin Îļ = 2/5

From the Pythagorean identities we have,

sin2 Îļ + cos2 Îļ = 1

cos2 Îļ = 1 - sin2 Îļ = 1 - (2/5)2

cos2 Îļ = 1 - (4/5) = 21/25

cos Îļ = ±√21/5

Since Îļ is the first quadrant angle, cos Îļ is positive.

cos Îļ = √21/5

We know that,

 tan Îļ = sin Îļ/cos Îļ

= (2/5)/(√21/5) = 2/√21

tan Îļ = 2√21 /21

So, value of tan Îļ when sin Îļ = 2/5 and Îļ is in first quadrant is (2√21) /(21)

Example 2: Find the value of tan x if sec x = 13/12 and x is the fourth quadrant angle.

Solution:

Given, sec x = 13/12

From the Pythagorean identities, we have,

sec2 x – tan2 x = 1

tan2 x = sec2 x - 1= (13/12)2 - 1

tan2 x = (169/144) - 1= 25/144

tan x = Âą 5/12

Since x is the fourth quadrant angle, tan x is negative.

tan x = - 5/12

Hence, tan x = - 5/12

Example 3: If tan X = 2/3 and tan Y = 1/2, then what is the value of tan (X + Y)?

Solution:

Given,

tan X = 2/3 and tan Y = 1/2

We know that,

tan (X + Y) = (tan X + tan Y)/(1 - tan X tan Y)

tan (X + Y) = [(2/3) + (1/2)]/[1 - (2/3)×(1/2)]

= (7/6)/(2/3) = 7/4

Hence, tan (X + Y) = 7/4

Example 4: Calculate the tangent function if the adjacent and opposite sides of a right-angled triangle are 4 cm and 7 cm, respectively.

Solution:

Given,

Adjacent side = 4 cm

Opposite side = 7 cm

We know that,

tan Îļ = Opposite side/Adjacent side

tan Îļ = 7/4 = 1.75

Hence, tan Îļ = 1.75

Example 5: A man is looking at a clock tower at a 60° angle to the top of the tower, whose height is 100 m. What is the distance between the man and the foot of the tower?

Solution:

Given,

Height of tower = 100 m and Îļ = 60°

Let distance between man and foot of tower = d

Example 5

We have,

tan Îļ = Opposite side/Adjacent side

tan 60° = 100/d

√3 = 100/d [Since, tan  60° = √3]

d = 100/√3

Therefore, distance between the man and the foot of tower is 100/√3

Example 6: Find the value of tan Îļ if sin Îļ = 7/25 and sec Îļ = 25/24.

Solution:

Given,

sin Îļ = 7/25

sec Îļ = 25/24

We know that,

sec Îļ = 1/cos Îļ 

25/24 = 1/cos Îļ cos Îļ = 24/25

We have,

tan Îļ = sin Îļ/cos Îļ

= (7/25)/(24/25)

= 7/24

Hence, tan Îļ = 7/24

Example 7: Find the value of tan Îļ if cosec Îļ = 5/3, and Îļ is the first quadrant angle.

Solution:

Given, cosec Îļ = 5/3

From the Pythagorean identities, we have,

cosec2 Îļ – cot2 Îļ = 1

cot2 Îļ = cosec2 Îļ - 1

cot Îļ = (5/3)2 - 1 = (25/9) - 1 = 16/9

cot Îļ = ±√16/9 = Âą 4/3

Since Îļ is the first quadrant angle, both cotangent and tangent functions are positive.

cot Îļ = 4/3

We know that,

cot Îļ = 1/tan Îļ 

4/3 = 1/tan Îļ

tan Îļ = 3/4

Hence, tan Îļ = 3/4

Example 8: Find tan 3Îļ if sin Îļ = 3/7 and Îļ is the first quadrant angle.

Solution:

Given, sin Îļ = 12/13

From the Pythagorean identities we have,

sin2Îļ + cos2Îļ = 1

cos2Îļ = 1 - sin2Îļ = 1 - (12/13)2

cos2 Îļ = 1 - (144/169) = 25/169

cos Îļ = ±√25/169 = Âą5/13

Since Îļ is the first quadrant angle, cos Îļ is positive.

cos Îļ = 5/13

We know that,

tan Îļ = sin Îļ/cos Îļ

= (12/25)/(5/13) = 12/5

Hence, tan Îļ = 12/5

Now, We know that ,

tan 3Îļ = (3 tan Îļ - tan3Îļ) / (1 - 3 tan2Îļ)

tan 3Îļ = 3 × (12/5)


Explore