Math

Intersection of Two Lines Calculator

Find where two lines in slope-intercept form intersect.


Intersection of Two Lines Calculator

Advertisement

Find the point where two lines, each given in slope-intercept form (y = mx + b), cross.

How it works

Setting the two equations equal and solving gives x = (b₂ – b₁) ÷ (m₁ – m₂), then substituting back finds y. The lines y = 2x + 1 and y = -x + 10 cross at (3, 7).

What this does not include

This handles lines given in slope-intercept form. Lines given in a different form (like standard form Ax + By = C) would need converting to slope-intercept form first.

How to use this calculator

  1. Enter the slope and intercept of the first line.
  2. Enter the slope and intercept of the second line.

A worked example

Line 1: y = 2x + 1. Line 2: y = −x + 10. Intersection: (3, 7).

Line 1: y = x. Line 2: y = 3x + 4. Intersection: (−2, −2).

What the variables mean

Variable Meaning
m1, b1 Slope and intercept of the first line
m2, b2 Slope and intercept of the second line

Edge cases worth knowing

Parallel lines (equal slopes) never intersect — unless they’re the exact same line, there’s no single (x, y) point that satisfies both equations, so the calculator declines to show a result.

This solves the system algebraically, not graphically — setting both equations equal and solving for x, then substituting back to find y, rather than estimating from a plotted graph.

What does it mean if two lines have the same slope?

They’re parallel and never cross (unless they’re actually the identical line, in which case every point is a shared point) — this calculator returns no single-point result in either case.

Can two lines intersect at more than one point?

No — two distinct straight lines intersect at exactly one point, unless they’re parallel (no intersection) or identical (infinitely many shared points).

How is this used in practical problems?

Finding where two linear relationships meet is common in break-even analysis, supply-and-demand graphs, and any problem comparing two straight-line trends.

Be the first to rate this

Written by

J. Adeyemi

Statistics writer

J. Adeyemi writes the statistics and probability calculators, from descriptive summaries through to distributions and conditional probability. The recurring theme is scope: each page states precisely which question it answers, because most statistical mistakes come from applying a correct formula to the wrong question. Related-but-different measures get separate pages rather than being quietly merged.

Reviewed by

T. Okafor

Calculator reviewer — mathematics

T. Okafor reviews the mathematics calculators, verifying algebraic correctness and, just as importantly, behaviour at the edges — division by zero, undefined results, and the floating-point cases where a formula technically returns a number that should be reported as undefined. Every test case is recomputed independently rather than taken on trust.

How we write and review

Related calculators