Skip to content
D DocNectar

Free Intersection of Two Lines Calculator

Find where two lines (in general form) intersect, or detect parallel/coincident lines.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

Two distinct lines in a plane can relate to each other in exactly three ways: they cross at exactly one point, they run parallel forever without ever touching, or — if given as the same equation in disguise — they're actually the identical line, overlapping at every point. Finding where two lines cross is one of the most basic and most useful operations in coordinate geometry, and expressing both lines in general form, Ax + By = C, avoids the awkward special case of a vertical line (which has no defined slope and can't be written as y = mx + b). This calculation underlies break-even analysis in business (finding where a cost line and a revenue line cross), collision and intersection detection in computer graphics and games, GPS and mapping software resolving where two roads or flight paths meet, and structural engineering problems that model beams or supports as line segments needing a common junction point.

How it works

Enter each line's A, B, and C coefficients from its general form equation, Ax + By = C. This gives two linear equations in two unknowns (x and y), which the calculator solves as a system using Cramer's rule: it computes the determinant of the coefficient matrix (A1B2 − A2B1), then divides two further determinants by it to isolate x and y individually. If that main determinant comes out to zero, the two lines have no unique crossing point — they're either exactly parallel (different C after accounting for the ratio) or perfectly coincident (the very same line written differently), and the calculator reports which case applies instead of a false intersection point.

  1. Enter line 1 — A (coefficient of x).
  2. Enter line 1 — B (coefficient of y).
  3. Enter line 1 — C (constant).
  4. Enter line 2 — A (coefficient of x).
  5. Enter line 2 — B (coefficient of y).
  6. Enter line 2 — C (constant).
  7. Click Calculate to see your results.

Examples

2x − y = 1 and x + y = 5

Adding the two equations eliminates y: 3x = 6, so x = 2. Substituting back: 2 + y = 5, so y = 3. The lines cross at (2, 3), and checking the first equation confirms 2(2) − 3 = 1. ✓

3x + 2y = 12 and x − y = 1

From the second equation, x = y + 1. Substituting: 3(y+1) + 2y = 12 → 5y + 3 = 12 → y = 1.8, then x = 2.8. The lines intersect at (2.8, 1.8).

x + y = 4 and 2x + 2y = 10

The second equation is exactly the first one doubled on the left side, but 2×4 = 8 ≠ 10 on the right — so these lines are parallel (identical slope, different position) and never intersect. The determinant of the coefficient matrix comes out to zero here, correctly flagging this case.

Common mistakes to avoid

  • Mixing up which side of the equation C belongs on — this tool expects the form Ax + By = C, not Ax + By + C = 0 (where the sign of C would need to be flipped).
  • Assuming a zero result always means "no solution" without distinguishing between truly parallel lines and two equations describing the identical line.
  • Forgetting to double-check the found (x, y) point against both original equations — a small arithmetic slip in Cramer's rule is easy to miss otherwise.
  • Trying to force a vertical line into slope-intercept form before entering it — general form (Ax + By = C) already handles verticals natively, with B = 0.

Frequently asked questions

Rearrange it to −mx + y = b, giving A = −m, B = 1, and C = b. For example, y = 3x − 2 becomes −3x + y = −2, so A = −3, B = 1, C = −2.
It means the lines are parallel — they have the same slope (the ratio −A/B is identical for both) but different y-intercepts, so they run alongside each other forever without ever meeting.
Then every point on one line is also on the other, so there isn't a single unique intersection point — instead there are infinitely many "intersection" points, since the two equations describe the exact same line.
Slope-intercept form can't represent a vertical line, since vertical lines have an undefined slope. General form handles every possible line, including verticals (like x = 5, where A=1, B=0, C=5), without any special-case handling.
No — two genuinely distinct straight lines can share at most one point. If they share more than one point, they must actually be the same line.
Yes exactly — finding where two lines intersect is precisely what it means to solve a 2×2 system of linear equations, and Cramer's rule (used here) is one standard method for solving such systems.
This tool only handles two lines at a time. For three or more lines, you'd need to check each pair for a common intersection point and then verify that all pairs agree on the same point — a more involved process not covered by a single 2×2 system.

Get new calculators and guides in your inbox

No spam — just new tools like Intersection of Two Lines Calculator and practical guides.

Favorites