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 entered2x+3y=13x−y=−12x + 3y = 13 \quad x - y = -1

(2,3)\displaystyle \left(2, 3\right)

x

x=2\displaystyle x = 2

y

y=3\displaystyle y = 3
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.

    2x+3y=13x−y=−1\begin{gathered} 2x + 3y = 13 \\ x - y = -1 \end{gathered}
  2. Elimination

    Multiply the first equation by -1 and the second by 3, so that both have the same yy coefficient, then subtract the equations. The yy terms cancel and one equation in xx is left.

    −2x−3y=−133x−3y=−3−5x=−10x=2\begin{gathered} -2x - 3y = -13 \\ 3x - 3y = -3 \\ -5x = -10 \\ x = 2 \end{gathered}
  3. Back-substitute

    Put the value of xx into the first equation and solve for yy.

    2×2+3y=13y=3\begin{gathered} 2 \times 2 + 3y = 13 \\ y = 3 \end{gathered}
  4. Check in both equations

    A point is on both lines only if it satisfies both equations, so substitute xx and yy into each original equation and confirm that the left side equals the right side.

    2×2+3×3=131×2+(−1)×3=−1\begin{gathered} 2 \times 2 + 3 \times 3 = 13 \\ 1 \times 2 + \left(-1\right) \times 3 = -1 \end{gathered}
  5. Result

    So the lines meet at the point (2,3)\left(2, 3\right).

Worked examples