Determinant decides fate
The little number Δ = A₁B₂ − A₂B₁ tells all: nonzero means a unique intersection; zero means parallel or the same line.
Note: vertical lines can’t be written as y=mx+b. Use Standard form for those.
For Ax+By=C: if Δ = A₁B₂ − A₂B₁ ≠ 0, then
x = (C₁B₂ − C₂B₁)/Δ, y = (A₁C₂ − A₂C₁)/Δ.
If Δ = 0 and constants align proportionally ⇒ coincident; otherwise ⇒ parallel.
Tip: Press Enter in any field to calculate.
Shows the two infinite lines (not segments). The red dot is the unique intersection, when it exists.
Two distinct lines in the plane intersect in at most one point. Using standard form
A₁x + B₁y = C₁ and A₂x + B₂y = C₂, define the determinant
Δ = A₁B₂ − A₂B₁.
Δ ≠ 0.Δ = 0 and the constants don’t match proportionally.The little number Δ = A₁B₂ − A₂B₁ tells all: nonzero means a unique intersection; zero means parallel or the same line.
If ratios A₁:A₂, B₁:B₂, and C₁:C₂ all match, the lines are identical—infinitely many intersections.
Two infinite lines almost always meet; two segments can miss even if the lines cross. Always check the bounding boxes for segment tests.
In 3D, lines can be skew: not parallel, never intersecting, and not coplanar. The 2D determinant trick no longer settles it.
The intersection formulas are Cramer’s Rule for a 2×2 system. Linear algebra hiding in plain sight in every crossing of two lines.
Use standard form Ax+By=C for maximum robustness (handles vertical lines). Use slope–intercept y=mx+b if both lines are non-vertical.
Parallel means the lines never meet. Coincident means they’re the exact same infinite line (infinitely many intersection points).
Results are computed with full floating-point precision and displayed rounded; copy the LaTeX for exact symbolic form of the computed values.