Intersection of Two Lines: Formula Methods and Examples

#Intersection of Two Lines
TL;DR
The intersection of two lines is the one point whose coordinates satisfy both equations, found by solving them together. Here are three methods, the general-form formula and where it comes from, and a test that shows in advance whether a crossing exists.
Shikha Sharma·reviewed byMadhukar VLast updated on December 2, 202614 min read

Key Points

  • The point of intersection of two lines makes both equations true, so finding it means solving a pair of equations.
  • Substitution, elimination and the general-form formula all give the same answer.
  • Equal slopes mean no single crossing: parallel lines (no point) or the same line (every point).
  • Always check the answer in both original equations.

What Is the Intersection of Two Lines?

The lines y=x+3y = x + 3 and y=2x+1y = 2x + 1 cross at (2, 5), and that point is the whole story. The intersection of two lines is the point (x,y)(x, y) that lies on both lines at once.

  • Check it: on the first line 2+3=52 + 3 = 5, and on the second 2(2)+1=52(2) + 1 = 5. Both are true at (2, 5) and at no other point.
  • Because the point satisfies both equations, finding it means solving them together as a system of equations.
  • Two straight lines in a plane do one of three things: cross at exactly one point, run parallel and never meet, or sit on top of each other as the same line.
the intersection of two lines at the point (2, 5)
The lines y = x + 3 and y = 2x + 1 crossing at (2, 5), with dashed guides to x = 2 and y = 5.

The wider idea of what it means to intersect (curves, sets) has its own page, and so do the angles that crossing lines make, under intersecting lines.

How to Find the Point of Intersection

Every method finds the (x,y)(x, y) that makes both equations true. Pick the one that suits how the equations are written.

Method 1: set the y's equal (substitution)

Use it when both lines read y=mx+cy = mx + c, as in slope-intercept form:

  1. Set the right-hand sides equal, since both equal yy at the crossing: x+3=2x+1x + 3 = 2x + 1.
  2. Solve for xx: x=2x = 2.
  3. Put x=2x = 2 into either line: y=2+3=5y = 2 + 3 = 5.
  4. Check in the other line: 2(2)+1=52(2) + 1 = 5.

The full substitution method also works when only one equation is solved for a variable.

Method 2: elimination

Use it for equations like ax+by=cax + by = c. Add or subtract them, scaling first if needed, so one variable cancels: for 2x+y=52x + y = 5 and x−y=1x - y = 1, adding gives 3x=63x = 6. See the elimination method.

Method 3: the general-form formula

For a1x+b1y+c1=0a_1x + b_1y + c_1 = 0 and a2x+b2y+c2=0a_2x + b_2y + c_2 = 0:

x=b1c2−b2c1a1b2−a2b1,y=a2c1−a1c2a1b2−a2b1x = \frac{b_1c_2 - b_2c_1}{a_1b_2 - a_2b_1}, \qquad y = \frac{a_2c_1 - a_1c_2}{a_1b_2 - a_2b_1}
Symbol Meaning
a1,b1,c1a_1, b_1, c_1 coefficients of the first line
a2,b2,c2a_2, b_2, c_2 coefficients of the second line
a1b2−a2b1a_1b_2 - a_2b_1 the shared denominator

If that denominator is 0, the lines are parallel (or the same line) and there is no single intersection point.

Where Does the Formula Come From?

From elimination, done once with letters instead of numbers, so the formula is a shortcut, not a new idea.

  1. Write the lines as a1x+b1y=−c1a_1x + b_1y = -c_1 and a2x+b2y=−c2a_2x + b_2y = -c_2.
  2. Multiply the first by b2b_2 and the second by b1b_1, so both yy-terms become b1b2yb_1b_2y.
  3. Subtract: the yy-terms cancel, leaving (a1b2−a2b1)x=b1c2−b2c1(a_1b_2 - a_2b_1)x = b_1c_2 - b_2c_1.
  4. Divide by a1b2−a2b1a_1b_2 - a_2b_1. Eliminating xx instead gives the formula for yy.

Gabriel Cramer published this rule in 1750, in a book on curves (he was not the first to find it). The denominator is what is now called a determinant.

Why the denominator decides everything

The slopes are m1=−a1b1m_1 = -\frac{a_1}{b_1} and m2=−a2b2m_2 = -\frac{a_2}{b_2}. They are equal exactly when a1b2=a2b1a_1b_2 = a_2b_1, that is, when the denominator is 00. So the formula fails in precisely the case where the lines point the same way: the algebra and the picture agree.

In the tool, drag the handles of the two lines and watch the crossing point update with both slopes shown. Make the slopes equal and the crossing vanishes; press Parallel and Coincident to compare.

Try It Yourself

Use the coordinate lab to see Intersection of Two Lines at work: drag, change the numbers and watch what happens.

Do the Lines Cross at All? The Ratio Test

You can tell before solving by comparing the coefficients of a1x+b1y+c1=0a_1x + b_1y + c_1 = 0 and a2x+b2y+c2=0a_2x + b_2y + c_2 = 0.

Condition What the lines do Crossing points
a1a2≠b1b2\frac{a_1}{a_2} \neq \frac{b_1}{b_2} Cross Exactly one
a1a2=b1b2≠c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} \neq \frac{c_1}{c_2} Parallel None
a1a2=b1b2=c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2} Coincident (the same line) Infinitely many

In the third row one equation is the other multiplied by a number, like x−2y+2=0x - 2y + 2 = 0 and 2x−4y+4=02x - 4y + 4 = 0.

the ratio test shows whether two lines intersect once, never, or everywhere
Three panels: x − y + 1 = 0 and 2x − y − 1 = 0 crossing at one point; 3x − y + 4 = 0 and 3x − y − 2 = 0 running parallel; x − 2y + 2 = 0 and 2x − 4y + 4 = 0 drawn as the same line.

Nearly parallel lines: a warning

When two lines are almost parallel, a tiny change moves the crossing a long way.

  • y=x2y = \frac{x}{2} and y=0.6x−0.3y = 0.6x - 0.3 cross at (3, 1.5).
  • Change 0.60.6 to 0.550.55 and the crossing jumps to (6, 3).
  • So reading such a crossing off a hand-drawn graph is unreliable; solve algebraically when the slopes are close.
nearly parallel lines have an intersection that moves a long way for a small change
The line y = x/2 crossed by y = 0.6x − 0.3 at (3, 1.5) and by y = 0.55x − 0.3 at (6, 3): a slope change of 0.05 doubles the distance to the crossing.

Examples of Intersection of Two Lines

These run from a clean substitution to the general-form formula, a parallel case and a family of lines.

Example 1

Find where y = x + 3 and y = 2x + 1 cross.

  1. Set the right-hand sides equal: x+3=2x+1x + 3 = 2x + 1.
  2. Solve: x=2x = 2.
  3. Substitute into y=x+3y = x + 3: y=5y = 5.

Final answer: the lines cross at (2, 5).

Example 2

Find where y = 3x + 4 and y = 3x − 2 cross.

  1. Set them equal: 3x+4=3x−23x + 4 = 3x - 2. Subtracting 3x3x leaves 4=−24 = -2.
  2. A student who trusts the routine hunts for an arithmetic slip. There is none: the statement is false for every xx.
  3. Both lines have slope 3 and different intercepts, so they are parallel. The ratio test says so first: 33=−1−1≠4−2\frac{3}{3} = \frac{-1}{-1} \neq \frac{4}{-2}.
two lines with the same slope have no intersection
The parallel lines y = 3x + 4 and y = 3x − 2 with green arrows showing they stay 6 apart vertically, so they never meet.

Final answer: no point of intersection; the lines are parallel.

Example 3

Find where 2x + y = 5 and x − y = 1 cross.

  1. Add the equations to remove yy: 3x=63x = 6, so x=2x = 2.
  2. Substitute into x−y=1x - y = 1: y=1y = 1.
  3. Check in the first: 2(2)+1=52(2) + 1 = 5.

Final answer: the lines cross at (2, 1).

Example 4

Use the general-form formula to find where 3x + 2y − 4 = 0 and 2x − y − 5 = 0 cross.

  1. Read off a1=3a_1 = 3, b1=2b_1 = 2, c1=−4c_1 = -4 and a2=2a_2 = 2, b2=−1b_2 = -1, c2=−5c_2 = -5.
  2. Denominator: (3)(−1)−(2)(2)=−7(3)(-1) - (2)(2) = -7.
  3. x=(2)(−5)−(−1)(−4)−7=−14−7=2x = \frac{(2)(-5) - (-1)(-4)}{-7} = \frac{-14}{-7} = 2 and y=(2)(−4)−(3)(−5)−7=7−7=−1y = \frac{(2)(-4) - (3)(-5)}{-7} = \frac{7}{-7} = -1.
  4. Check: 3(2)+2(−1)−4=03(2) + 2(-1) - 4 = 0 and 2(2)−(−1)−5=02(2) - (-1) - 5 = 0.
the general-form formula gives the intersection of two lines at (2, −1)
The lines 3x + 2y − 4 = 0 and 2x − y − 5 = 0 crossing at (2, −1), with the denominator (3)(−1) − (2)(2) = −7 shown in the subtitle.

Final answer: the lines cross at (2, −1).

Example 5

Find where the vertical line x = 3 meets y = 2x − 1.

  1. A vertical line has no slope, so Method 1 does not apply directly. It does not need to: every point on it has x=3x = 3.
  2. Substitute: y=2(3)−1=5y = 2(3) - 1 = 5.
  3. The formula agrees: x−3=0x - 3 = 0 has b1=0b_1 = 0, and the denominator (1)(−1)−(2)(0)=−1(1)(-1) - (2)(0) = -1 is not 0.
the intersection of a vertical line with a sloping line
The vertical line x = 3 crossing y = 2x − 1 at (3, 5).

Final answer: (3, 5).

Example 6

Find the line through the intersection of x + y = 6 and x − y = 2 that also passes through the origin.

  1. Every line through the crossing can be written (x+y−6)+λ(x−y−2)=0(x + y - 6) + \lambda(x - y - 2) = 0, since both brackets are 0 there.
  2. Put in (0, 0): −6−2λ=0-6 - 2\lambda = 0, so λ=−3\lambda = -3.
  3. Then (x+y−6)−3(x−y−2)=0(x + y - 6) - 3(x - y - 2) = 0 simplifies to −2x+4y=0-2x + 4y = 0, which is y=x2y = \frac{x}{2}.
  4. Check: the lines cross at (4, 2), and 2=422 = \frac{4}{2}.
every line through the intersection of two lines, with the one through the origin highlighted
The lines x + y = 6 and x − y = 2 crossing at (4, 2), several grey lines of the family through that point, and the green line y = x/2 through both (4, 2) and the origin.

Final answer: y=x2y = \frac{x}{2}, found without computing the crossing first.

Why Intersection Matters: "Where Two Conditions Meet at Once"

Solving for an intersection is solving two truths at the same time. Each line is a rule, and the crossing is the one place where both hold.

  • Catching up. Cyclist A rides at 30 km/h from the start; B rides at 20 km/h from 10 km ahead. Their lines d=30td = 30t and d=20t+10d = 20t + 10 meet after 1 hour, 30 km along.
  • Break-even points. A cost line and a revenue line cross at the output where a business stops losing money and starts earning it.
  • Navigation. Bearings to two known landmarks each give a straight line on the chart; the ship is where they cross. Landmarks at a wide angle give a sharper fix, for the nearly-parallel reason above.
  • Choosing between plans. Two phone plans with different fixed charges cost the same where their cost lines cross; on either side, one is cheaper.
the intersection of two distance-time lines shows when and where one cyclist catches another
A distance-time graph with cyclist A on d = 30t and cyclist B on d = 20t + 10. The lines cross at (1 h, 30 km), when A catches B.

An intersection answers one question: where do both things become true together?

Common Mistakes With Intersection of Two Lines

These show up when the algebra gets messy or the lines are not what they seem.

Mistake 1: Forgetting to find the second coordinate

Where it slips in: Solving for xx and stopping there.

Don't do this: Report "x=2x = 2" as the point of intersection.

The correct way: An intersection is a point, (x,y)(x, y). The rusher who stops at xx loses the half of the answer the question wanted; substitute back and write the full pair.

Mistake 2: Not checking for parallel lines first

Where it slips in: Grinding through algebra on two lines with the same slope.

Don't do this: Treat a contradiction like 4=−24 = -2 as an arithmetic slip to fix, or invent a point.

The correct way: Run the ratio test first. A false statement means parallel lines; a true one, like 0=00 = 0, means the same line. The student who learned "set them equal and solve" as a bare recipe keeps re-checking correct arithmetic.

Mistake 3: Sign errors in the formula

Where it slips in: Equations like 3x+2y=43x + 2y = 4 not yet in the form …=0\ldots = 0.

Don't do this: Read c1=4c_1 = 4 from 3x+2y=43x + 2y = 4.

The correct way: Rewrite as 3x+2y−4=03x + 2y - 4 = 0 first, so c1=−4c_1 = -4.

Mistake 4: Checking only one equation

Where it slips in: Substituting back into a rearranged equation, or the one you used to find yy.

Don't do this: Trust the point because it fits that one line.

The correct way: Verify the point in both original equations. A sign error never survives that check.

Conclusion

  • The intersection of two lines is the single point that satisfies both equations.
  • Substitution, elimination and the general-form formula all find it; the formula is elimination done once with letters.
  • The denominator a1b2−a2b1a_1b_2 - a_2b_1 is 0 exactly when the slopes match, and the ratio test tells you in advance: one point, none, or infinitely many.
  • An intersection is a point, so solve for both coordinates and check them in both original equations.

A Practical Next Step

Test yourself on these.

  1. Find where y=2x−1y = 2x - 1 and y=−x+5y = -x + 5 cross.
  2. Decide whether y=4x+2y = 4x + 2 and y=4x−3y = 4x - 3 intersect.
  3. Use the general-form formula on x+y−6=0x + y - 6 = 0 and 2x−y−3=02x - y - 3 = 0.

Answer to Question 1: 2x−1=−x+52x - 1 = -x + 5 gives x=2x = 2, so (2, 3).

Answer to Question 2: no. Both slopes are 4 with different intercepts, so the lines are parallel.

Answer to Question 3: the denominator is (1)(−1)−(2)(1)=−3(1)(-1) - (2)(1) = -3, giving (3, 3).

Then solve y=4x−3y = 4x - 3 and y=x+6y = x + 6 by Method 1 and again with the formula; both should give (3, 9).

To work through systems with a teacher, explore Bhanzu's geometry tutor, high school math tutor or algebra tutor.

Want a live Bhanzu trainer to work through systems of equations with your child? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. OpenStax, College Algebra 2e, Section 7.1: Systems of Linear Equations: Two Variables. openstax.org
  2. OpenStax, College Algebra 2e, Section 7.8: Solving Systems with Cramer's Rule. openstax.org
  3. OpenStax, Elementary Algebra 2e, Section 5.1: Solve Systems of Equations by Graphing. openstax.org
  4. MacTutor History of Mathematics, Gabriel Cramer (Introduction à l'analyse des lignes courbes algébriques, 1750). mathshistory.st-andrews.ac.uk

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

How do I know if two lines do not intersect?
The intersection of two lines fails to exist when their slopes are equal but their intercepts differ: the lines are parallel. In the formula, the denominator is 0.
What does it mean if solving gives 0 = 0?
The two equations describe the same line, so every point on it is shared: infinitely many points of intersection.
Can two lines intersect at more than one point?
No, not two different straight lines. If they share two points, they are the same line.
Which method is best for the intersection of two lines, substitution or the formula?
Substitution is clearest when both lines are in y=mx+cy = mx + c form. The formula is faster when both are in general form and you want to plug in directly.
How do you find the intersection of two lines in 3D?
Write each line with a parameter, set the xx, yy and zz coordinates equal, and solve. In space, two non-parallel lines often do not meet at all; such lines are called skew.
✍️ Written By
Shikha Sharma
Shikha Sharma
Subject Matter Expert
Shikha Sharma is a Mathematics Subject Matter Expert at Bhanzu with over 7 years of experience in teaching and tutoring students across India. She specialises in foundational mathematics, with a strong understanding of how children in primary and middle school develop mathematical concepts. Her approach emphasises conceptual clarity and simplifying complex mathematical ideas into clear, manageable steps that make learning accessible and engaging for young learners. She brings expertise in mental mathematics, arithmetic, algebra, logical reasoning and problem-solving, with an emphasis on building strong mathematical foundations.
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →