Slope-intercept form
y = 2x + 1 and y = -x + 7 become -2x + y = 1 and x + y = 7. Solving gives (2, 5).
Editable example loaded: x + y = 5 and x - y = 1.
Line 1
Line 2
Line 1: y = m1x + b1
Line 2: y = m2x + b2
Vertical lines cannot be written as y=mx+b. Use standard form or two-point mode for vertical lines.
Line 1 through two points
Line 2 through two points
Ax + By = C, uses Cramer's rule with determinants, keeps exact rational arithmetic for displayed fractions, handles vertical lines in standard and point modes, detects parallel and coincident lines, and runs locally in your browser.
This calculator solves two linear equations and shows the exact ordered pair when the lines cross at one point. It supports Ax + By = C, y = mx + b, and coordinate pairs that define each line. In two-point mode, it can also check whether the crossing belongs to both finite segments.
After both lines are written as A1x + B1y = C1 and A2x + B2y = C2, the determinant Delta = A1B2 - A2B1 shows whether a unique solution exists. If Delta is not zero, Cramer's rule gives the intersection. If Delta is zero, the lines are either parallel or coincident.
y = 2x + 1 and y = -x + 7 become -2x + y = 1 and x + y = 7. Solving gives (2, 5).
2x + 3y = 13 and x - y = 1 have Delta = -5, so x = 16/5 and y = 11/5.
x = 3 is 1x + 0y = 3. With y = 2x - 1, the intersection is (3, 5).
y = 2x + 1 and y = 2x - 4 have the same slope but different intercepts, so they never meet.
2x + 2y = 10 and x + y = 5 describe the same infinite line, so there are infinitely many intersections.
Line 1 through (0, 0) and (4, 4), and Line 2 through (0, 4) and (4, 0), cross at (2, 2). With segment mode on, both parameters are 1/2.
Enter each line's slope m and intercept b in slope-intercept mode. The calculator converts y=mx+b to -mx+y=b and solves the two equations with determinants.
Choose the two-points mode and enter two coordinates for Line 1 and two coordinates for Line 2. The calculator builds each line from the point pairs, then solves for their crossing point.
Vertical lines work in standard form and two-point mode. A vertical line such as x=3 is represented as 1x+0y=3.
After converting both lines to A1x+B1y=C1 and A2x+B2y=C2, the calculator checks Delta=A1B2-A2B1. If Delta is zero and the constants do not match proportionally, the lines are parallel.
Coincident lines are the same infinite line written in equivalent forms. They have infinitely many intersection points instead of one unique point.
There is no solution when the two lines are parallel and distinct. They have the same direction but different positions, so they never meet.
Yes. In two-point mode, turn on the line segments option to check whether the infinite-line intersection lies within both finite segments. The calculator also reports the segment parameters t and u.
Everything runs locally in your browser. No line equations or coordinates are uploaded.