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−2x+y=1x+y=7-2x + y = 1 \quad x + y = 7

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

x

x=2\displaystyle x = 2

y

y=5\displaystyle y = 5
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+y=1x+y=7\begin{gathered} -2x + y = 1 \\ x + y = 7 \end{gathered}
  2. Substitution

    One equation already says y=2x+1y = 2x + 1, so yy can be replaced in the other equation. That is quicker than elimination because it removes yy in one move and leaves an equation in xx alone.

    x+(2x+1)=73x=6x=2\begin{gathered} x + \left(2x + 1\right) = 7 \\ 3x = 6 \\ x = 2 \end{gathered}
  3. Back-substitute

    Put the value of xx into the equation that gives yy directly.

    y=2×2+1=5\begin{aligned} y &= 2 \times 2 + 1 \\ &= 5 \end{aligned}
  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+1×5=11×2+1×5=7\begin{gathered} \left(-2\right) \times 2 + 1 \times 5 = 1 \\ 1 \times 2 + 1 \times 5 = 7 \end{gathered}
  5. Result

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

Worked examples