Built and fact-checked by the DocNectar team — see our editorial standards
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.
- Enter line 1 — A (coefficient of x).
- Enter line 1 — B (coefficient of y).
- Enter line 1 — C (constant).
- Enter line 2 — A (coefficient of x).
- Enter line 2 — B (coefficient of y).
- Enter line 2 — C (constant).
- 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.