Angle of Slope of a Line - Formula and Examples

The angle of inclination of a line or the angle of the slope of the line is the angle formed by the line and its horizontal component. To get the value of this angle, we have to use trigonometry, specifically the tangent function. The angle can be positive or negative depending on the direction in which it is measured.

Here, we will learn how to calculate the angle of slope of a line. We will look at its formula, some important considerations, and several examples with answers.

GEOMETRY
Formula for the angle of slope of a line

Relevant for...

Learning to find the angle of slope of a line.

See formula

GEOMETRY
Formula for the angle of slope of a line

Relevant for...

Learning to find the angle of slope of a line.

See formula

Formula for the angle of slope of a line

To find the formula for the angle of inclination or slope of a straight line, we are going to use the following diagram:

Diagram of the angle of slope of a line

We can see that the diagram has a right triangle ABC formed by the horizontal and vertical components of the line. In the diagram, θ is the angle formed by line AB and its horizontal component.

Using trigonometry and recalling that the tangent of an angle is equal to the opposite side over the adjacent side, we have $latex \tan(\theta)=\frac{BC}{AC}$.

Now, using the diagram, we can see that $latex \frac{BC}{AC}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$, which is equal to the slope of line AB.

Therefore, we have the following:

$$\tan(\theta)=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$$

$$\theta=\tan^{-1}\left(\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\right)$$

Important remarks:

  • If $latex m$ is the slope of line AB, then the angle of the slope of the line is equal to $latex \tan^{-1}(m)$.
  • When the result of $latex \tan^{-1}(m)$ is negative, the angle θ is measured from the horizontal line to the straight line in a clockwise direction.

Angle of slope of a line - Examples with answers

The formula for the angle of the slope of a straight line is used to solve the following examples. Try to solve the problems yourself before looking at the solution.

EXAMPLE 1

Find the angle formed by the line that has the points A=(-7, -5) and B=(5, -3) with respect to the horizontal.

Solution

EXAMPLE 2

Find the angle of slope of the line that has points A=(5, -4) and B=(-6, 7).

Solution

EXAMPLE 3

A line passes through the points A=(7, -2) and B=(3, -5). Find the angle of the slope of AB.

Solution

EXAMPLE 4

Determine the angle of the slope of the line that passes through the points A=(6, 7) and B=(12, 7).

Solution

EXAMPLE 5

Find the angle of the slope of the line that passes through the points A=(3, 7) and B=(-6, 11).

Solution

EXAMPLE 6

Find the angle formed by the line that passes through the points A=(5, -3) and B=(5, 2).

Solution

Angle of slope of a line - Practice problems

Use the formula for the angle of inclination or slope of a line to solve the following practice problems.

Find the angle of slope of the line through A=(5, 2) and B=(7, 10).

Choose an answer






What is the angle of slope of the line that passes through A=(-3, -2) and B=(4, 8)?

Choose an answer






Find the slope angle of the line that has points A=(3, 7) and B=(2, 5).

Choose an answer






What is the angle of the slope of the line that has the points A=(3, -3) and B=(5, -4)?

Choose an answer






Find the angle of slope of the line through A=(7, -2) and B=(-3, 5).

Choose an answer






See also

Interested in learning more about lines? You can take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE