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

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

Obtuse angle

135∘\displaystyle 135^\circ

In radians

π4≈0.785398\displaystyle \frac{\pi}{4} \approx 0.785398
Show the work
  1. Angle with a vertical line

    One line is vertical, so it has no slope and the slope formula does not apply. A vertical line makes 90∘90^\circ with the xx-axis, so the acute angle with a line of slope m=1m = 1 is 90∘90^\circ minus that line's angle, which has tan⁡θ=∣1m∣\tan\theta = \left|\frac{1}{m}\right|.

    tan⁡θ=∣11∣=1⇒θ=45∘\begin{gathered} \tan\theta = \left|\frac{1}{1}\right| = 1 \\ \Rightarrow \\ \theta = 45^\circ \end{gathered}
  2. Result

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

Worked examples