Intersection of Two Lines Calculator — Find Where Lines Cross

Find the intersection point of two lines in slope-intercept, point-slope, or general form. Shows angle between lines, parallel/perpendicular detection, and coordinate visualization.

Line 1

Line 2

Intersection X
1.0000
x-coordinate of the intersection point
Intersection Y
3.0000
y-coordinate of the intersection point
Angle Between Lines
71.5651°
Acute angle formed at the intersection
Relationship
Intersecting
Whether lines are parallel, perpendicular, coincident, or just intersecting
Distance from Origin
3.1623
Distance from (0,0) to the intersection point
Determinant
-3.0000
A₁B₂ − A₂B₁; zero means lines are parallel
Line 1 Angle
63.4349°
Angle line 1 makes with the positive x-axis
Line 2 Angle
-45.0000°
Angle line 2 makes with the positive x-axis

Coordinate Visualization

xyL1L2

Angle Between Lines

Angle
71.6°

General Form Coefficients

LineABCSlopeEquation
Line 12.0000-1.00001.00002.00002.00x + -1.00y + 1.00 = 0
Line 2-1.0000-1.00004.0000-1.0000-1.00x + -1.00y + 4.00 = 0
Line Relationships Reference
RelationshipConditionIntersection
Intersectingm₁ ≠ m₂Exactly one point
Parallelm₁ = m₂, b₁ ≠ b₂No intersection
Coincidentm₁ = m₂, b₁ = b₂Infinitely many points
Perpendicularm₁ · m₂ = −1One point, 90° angle
Planning notes, formulas, and examples

About the Intersection of Two Lines Calculator — Find Where Lines Cross

The **Intersection of Two Lines Calculator** finds the exact point where two lines cross in the 2D plane. Enter your lines in slope-intercept form (y = mx + b), point-slope form (y − y₁ = m(x − x₁)), or general form (Ax + By + C = 0), and the page computes the intersection coordinates, the acute angle between the lines, and whether the lines are parallel, perpendicular, or coincident.

Beyond finding the crossing point, this calculator displays the distance from the origin to the intersection, the individual angles each line makes with the x-axis, and the determinant of the coefficient matrix that governs whether an intersection exists. A live coordinate visualization plots both lines and highlights the intersection point, making it easy to verify results visually.

Engineers use line intersections for structural analysis and circuit layout. Game developers rely on intersection detection for collision and raycasting. Students solving systems of linear equations can see both the algebraic solution and its geometric meaning side by side. The angle-between-lines computation relies on the tangent formula tan θ = |m₁ − m₂| / (1 + m₁m₂), connecting the page directly to trigonometry.

Six presets cover common scenarios — two steep lines, perpendicular lines, parallel lines with no solution, and general-form examples — so you can explore interactively before entering your own.

When This Page Helps

Line-intersection problems usually involve more than the point where the lines meet. You often also need to know whether the lines are parallel or coincident, what angle they make, and whether the result fits the geometry you expect. This calculator keeps those checks together.

It is especially useful when you switch between line forms. Slope-intercept, point-slope, and general form can all describe the same geometry, and the page lets you verify that they lead to the same intersection behavior.

How to Use the Inputs

  1. Enter the required inputs (Line Form, Decimal Precision, Slope (m₁)).
  2. Complete the remaining fields such as y-intercept (b₁), x₁, y₁.
  3. Review the output cards, especially Intersection X, Intersection Y, Angle Between Lines, Relationship.
  4. Compare the result with the formula and worked example so you can catch input, rounding, or setup mistakes.
Formula used
Given Ax + By + C = 0 for each line, the intersection is x = (−C₁B₂ + C₂B₁)/(A₁B₂ − A₂B₁), y = (−A₁C₂ + A₂C₁)/(A₁B₂ − A₂B₁). Angle between lines: tan θ = |m₁ − m₂| / (1 + m₁m₂). Lines are parallel when det = A₁B₂ − A₂B₁ = 0.

Example Calculation

Result: Computed from the entered values

Using form=slope-intercept, m=2, b=1, the calculator returns Computed from the entered values. This example mirrors the calculator's live computation flow and is useful for checking manual steps and unit handling.

Tips & Best Practices

  • If the determinant is zero the lines are parallel (no single intersection point).
  • Perpendicular lines satisfy m₁ · m₂ = −1, producing a 90° angle at the crossing.
  • Coincident lines are parallel lines that overlap completely — every point is shared.
  • Switch to general form for vertical lines, which have undefined slope in slope-intercept form.
  • The coordinate visualization auto-scales — zoom by adjusting the numbers to fit the view.

What This Intersection of Two Lines Calculator Solves

This page is designed for 2D line problems where you need both the intersection point and the relationship between the lines. It handles multiple input forms and reports the determinant, angle, and status alongside the crossing coordinates.

How To Interpret The Outputs

Start with the determinant and relationship, because they tell you whether a unique intersection even exists. If it does, then compare the coordinates and the plotted lines to make sure the answer matches the geometry you intended.

Study And Practice Strategy

Work one intersecting case, one parallel case, and one perpendicular case. That set is usually enough to make the determinant, slope, and angle behavior much easier to remember.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Convert both lines to the general form Ax + By + C = 0, then solve the 2×2 system using Cramer's rule: x = (−C₁B₂ + C₂B₁) / (A₁B₂ − A₂B₁) and y = (−A₁C₂ + A₂C₁) / (A₁B₂ − A₂B₁). If the denominator (determinant) is zero, the lines are parallel.