Angle Between Two Lines - Formula and Examples

The angle between two lines allows us to determine the inclination that exists between the lines. We can calculate the angle between two straight lines using a general formula that uses the slopes of both lines. This formula can be derived using trigonometry.

Here, we'll learn how to use the slopes of two lines to find the angle between them. We will use the general formula to solve some practice problems.

GEOMETRY
Formula for the angle between two lines

Relevant for...

Learning to find the angle between two lines with examples.

See examples

GEOMETRY
Formula for the angle between two lines

Relevant for...

Learning to find the angle between two lines with examples.

See examples

Practice

Work through new problems on the angle between two lines. Type your answer, check it, and see the full solution step by step.

Find the angle between the lines:

Answer in degrees, rounded to two decimal places (answers within 0.01 are accepted). Give the smaller angle between the lines, from 0° to 90°.

°

Formula for the angle between two lines

If we have the two lines $latex y=m_{1}x+c_{1}$ and $latex y=m_{2}x+c_{2}$, the angle between the lines is given by the following formula:

$$\tan(\theta)=\frac{m_{2}-m_{1}}{1+m_{2}m_{1}}$$

where, θ is the angle between the lines, $latex m_{1}$ is the slope of the first line and $latex m_{2}$ is the slope of the second line as shown in the following diagram:

Angle between two lines

You can choose the slopes in any order. Therefore, $latex m_{2}$ can be greater than or less than $latex m_{1}$.

Proof for the formula of the angle between two lines

To prove the formula for the angle between two lines, we are going to use trigonometry along with the following diagram:

Diagram to find the angle between two lines

Here, we have the lines $latex y=m_{1}x+c_{1}$ and $latex y=m_{2}x+c_{2}$, which form the angles α and β with the x-axis respectively.

Using angle theorems, we can determine that $latex \theta = \beta - \alpha$. Therefore, we have the following:

$latex \tan(\theta)=\tan(\beta -\alpha)$

Using the Sum and Difference Identities formula for the tangent, we have:

$$\tan(\theta)=\frac{\tan(\beta)-\tan(\alpha)}{1+\tan(\beta)\tan(\alpha)}$$

Now, we can write $latex \tan(\beta)=m_{2}$ and $latex \tan(\alpha)=m_{1}$, since these are the slopes of the lines. Therefore, we have:

$$\tan(\theta)=\frac{m_{2}-m_{1}}{1+m_{2}m_{1}}$$

Angle between two lines - Examples with answers

The following examples are solved using the formula for the angle between two lines. Each example has its respective solution, but try to solve the problems before looking at the answer.

EXAMPLE 1

Find the angle between the lines $latex y=x$ and $latex y=3x-4$.

Solution

EXAMPLE 2

What is the angle between the lines $latex y=2x-5$ and $latex y=5x+6$?

Solution

EXAMPLE 3

Find the angle between the lines $latex y=3+x$ and $latex y=6+2x$.

Solution

EXAMPLE 4

Determine the angle between the lines $latex y=6x-7$ and $latex y=2-x$.

Solution

EXAMPLE 5

What is the angle between the lines $latex y=2x+3$ and $latex y=5-2x$.

Solution

EXAMPLE 6

Find the angle between the lines $latex y=4-2x$ and $latex y=9-3x$.

Solution

EXAMPLE 7

Find the angle between the lines $latex y=4$ and $latex 3y+2x-6=0$.

Solution

Angle between two lines - Practice problems

Apply the formula for the angle between two lines to solve the following problems. If you have trouble with this, you can use the solved examples above as a guide.

Find the angle between the lines $latex y=2x-4$ and $latex y=x-1$.

Choose an answer






Determine the angle between the lines $latex y=5-6x$ and $latex y=2+3x$.

Choose an answer






What is the angle between the lines $latex y=4$ and $latex x=3$?

Choose an answer






Find the angle between the lines $latex 3y+2x=4$ and $latex 5y+3x=7$.

Choose an answer






Determine the angle between the lines $latex 4y-3x=6$ and $latex 2y+x=3$.

Choose an answer






See also

Interested in learning more about equations of lines? Take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE