Angle Between Two Lines Calculator

Enter two lines to find the angle between them.

An equation in x and y, such as y = 2x + 1 or 3x + 4y = 5.

A second equation in x and y.

Try

Result

You entered−2x+y=1and−3x+y=−2-2x + y = 1 \quad\text{and}\quad -3x + y = -2

θ≈8.130102∘\displaystyle \theta \approx 8.130102^\circ

Obtuse angle

171.869898∘\displaystyle 171.869898^\circ

In radians

0.141897\displaystyle 0.141897
Show the work
  1. Angle between two lines

    The slopes are m1=2m_1 = 2 and m2=3m_2 = 3. The tangent of the acute angle between two lines depends only on their slopes.

    tan⁡θ=∣m1−m21+m1m2∣=∣2−31+2×3∣=∣−17∣=17\begin{aligned} \tan\theta &= \left|\frac{m_1 - m_2}{1 + m_1 m_2}\right| \\ &= \left|\frac{2 - 3}{1 + 2 \times 3}\right| \\ &= \left|\frac{-1}{7}\right| \\ &= \frac{1}{7} \end{aligned}
  2. Inverse tangent

    Undo the tangent with the inverse tangent to get the acute angle.

    θ=tan⁡−1(tan⁡θ)=tan⁡−1(17)≈8.130102∘\begin{aligned} \theta &= \tan^{-1}\left(\tan\theta\right) \\ &= \tan^{-1}\left(\frac{1}{7}\right) \approx 8.130102^\circ \end{aligned}
  3. Result

    So the acute angle between the lines is 8.130102∘8.130102^\circ.

Worked examples