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−x+y=0andx+y=0-x + y = 0 \quad\text{and}\quad x + y = 0

θ=90∘\displaystyle \theta = 90^\circ

Obtuse angle

90∘\displaystyle 90^\circ

In radians

π2≈1.570796\displaystyle \frac{\pi}{2} \approx 1.570796
Show the work
  1. Angle between two lines

    The slopes are m1=1m_1 = 1 and m2=−1m_2 = -1. The tangent of the acute angle between two lines depends only on their slopes; here the bottom is 0, so the tangent is undefined and the lines are perpendicular.

    Using tan⁡θ=∣m1−m21+m1m2∣\tan\theta = \left|\frac{m_1 - m_2}{1 + m_1 m_2}\right|

    1+1×(−1)=0⇒θ=90∘\begin{gathered} 1 + 1 \times \left(-1\right) = 0 \\ \Rightarrow \\ \theta = 90^\circ \end{gathered}
  2. Result

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

Worked examples