The Lesson
The tangent function relates a given angle to the opposite side and adjacent side of a right triangle. The length of the opposite is given by the formula below:

How to Use the Tangent Function to Find the Opposite of a Right Triangle
Finding the adjacent of a right triangle is easy when we know the angle and the adjacent.Question
What is the length of the opposite of the right triangle shown below?
Step-by-Step:
1
Start with the formula:
Opposite = tan θ × adjacent
2
Substitute the angle θ and the length of the adjacent into the formula. In our example, θ = 45° and the adjacent is 3 cm.
Opposite = tan (45°) × 3
Adjacent = 1 × 3
Adjacent = 3
Answer:
The length of the opposite of a right triangle with an angle of 45° and an adjacent of 3 cm is 3 cm.Remembering the Formula
Often, the hardest part of finding the unknown angle is remembering which formula to use. Whenever you have a right triangle where you know one side and one angle and have to find an unknown side... ......think trigonometry... ...............think sine, cosine or tangent... ........................think SOH CAH TOA.

Tan θ = Opposite / Adjacent
This is rearranged to get the formula at the top of the page (see Note).
Opposite = Tan θ × Adjacent
Interactive Widget
Here is an interactive widget to help you learn about the tangent function on a right triangle.What Is the Tangent Function?
The tangent function is a trigonometric function. The tangent of a given angle in a right triangle is the ratio of the length of the opposite side to the length of the adjacent side. The tangent function is defined by the formula:

How to Rearrange the Tangent Function Formula
A useful way to remember simple formulae is to use a small triangle, as shown below:

Opposite = Tan θ × Adjacent
The Tangent Function and the Slope
The slope (or gradient) of a straight line is how steep a line is. It is often defined by "the rise over the run", or how much the line goes up (or down) for how much it goes across.