Intersection of Two Lines Calculator

Type two lines and find where they cross.

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

The second equation, in the same way.

Try

Result

You entered−x+y=0−2x+2y=0-x + y = 0 \quad -2x + 2y = 0

Infinitely many points (the lines are the same)\displaystyle \text{Infinitely many points (the lines are the same)}
Show the work
  1. Write both lines in the form Ax + By = C

    Two lines meet where one point (x,y)(x, y) satisfies both equations. Writing both in the same form, with the xx and yy terms on the left, makes the coefficients easy to compare.

    −x+y=0−2x+2y=0\begin{gathered} -x + y = 0 \\ -2x + 2y = 0 \end{gathered}
  2. The equations describe the same line

    The coefficients of one equation are a fixed multiple of the other, constant included, so both equations describe the same line and every point on it is a solution.

    (−1)×2−(−2)×1=0\left(-1\right) \times 2 - \left(-2\right) \times 1 = 0
  3. Result

    So the lines coincide and have infinitely many points in common.

Worked examples