Enter two lines in slope-intercept form to find the exact point where they cross, verified in both equations.
Intersection Calculator
Find the single point that lies on both lines — solved exactly and checked by substitution in each equation.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Intersection Result
Calculated locally in your browser
—
Name
—
Slope of line 1 (m1)
—
Intercept of line 1 (b1)
—
Slope of line 2 (m2)
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
The intersection of two straight lines is the point satisfying both equations at once. Set m1 x plus b1 equal to m2 x plus b2 and solve: x equals b2 minus b1 divided by m1 minus m2, then substitute back for y. The lines y equals 2x plus 3 and y equals negative x plus 9 intersect at (2, 7).
- x = (b2 - b1) / (m1 - m2)
- y = m1 x + b1
- Equal slopes mean parallel or identical lines — no single point
Special line pairs
Reference values for this calculator.
| Slopes | Relationship | Intersections |
|---|---|---|
| m1 != m2 | Crossing | Exactly 1 |
| m1 = m2, b1 != b2 | Parallel | 0 |
| m1 = m2, b1 = b2 | Same line | Infinitely many |
| m1 x m2 = -1 | Perpendicular | 1, at right angles |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Enhancement: verifies the point in the second line as a built-in check and reports the angle between the lines; parallel and coincident lines produce honest explanations, not fake points.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Crossing slopes
Line 1: y = 2x + 3; line 2: y = -x + 9
| Calculation | Steps |
|---|---|
| x = (9 - 3) / (2 - (-1)) = 6 / 3 = 2. y = 2 x 2 + 3 = 7. | Intersection (2, 7), headline x = 2. |
Result
Example 2
Steeper second line
Line 1: y = x; line 2: y = 3x - 4
| Calculation | Steps |
|---|---|
| x = (-4 - 0) / (1 - 3) = 2. y = 2. | Intersection (2, 2). |
Result
Example 3
Horizontal meets sloping
Line 1: y = 5; line 2: y = 2x - 1
| Calculation | Steps |
|---|---|
| x = (-1 - 5) / (0 - 2) = 3. y = 5. | Intersection (3, 5). |
Result
How to use this calculator
Step 1
Write each line in slope-intercept form y = mx + b.
Step 2
Enter the first line's slope and intercept as m1 and b1.
Step 3
Enter the second line's slope and intercept as m2 and b2.
Step 4
Press Calculate to get the x-coordinate as the headline result.
Step 5
Read the y-coordinate in the details and check the point satisfies both lines.
Frequently asked questions
What if the lines are parallel?
If the slopes are equal and the intercepts differ, the lines never meet and there is no intersection — the calculator says so instead of inventing a point. If both slope and intercept match, the lines are identical.
How do I use lines that are not in y = mx + b form?
Rearrange first: for 2x + 3y = 6, solve for y to get y = (-2/3)x + 2, so m = -0.6667 and b = 2. Vertical lines (x = constant) cannot be entered in this form.
Why is the headline result only the x-coordinate?
The intersection is a point (x, y); the tool headlines x and shows y prominently in the details and verdict, with a substitution check in the second line.
What does the angle between the lines mean?
It is the acute angle at which the lines cross, from the slope angle formula. An angle of 90 degrees means the lines are perpendicular.
Can this find where a line meets a curve?
No. This tool intersects two straight lines. A line meeting a parabola or circle can have zero, one or two solutions and needs a quadratic solver.
About this calculator
An intersection calculator solves two linear equations simultaneously. Because both lines must pass through the answer, you set the two expressions for y equal, solve the resulting single equation for x, and substitute back for y. The pair (x, y) is the only point in the plane belonging to both lines.
Geometrically, the denominator (m1 - m2) controls everything. When the slopes differ, there is exactly one crossing. As the slopes approach each other the crossing races off towards infinity, and at equality it disappears: parallel lines never meet, unless the intercepts also match, in which case the two equations describe the same line and every point is shared.
Algebraically this is the two-variable case of solving simultaneous equations, the same machinery behind break-even analysis and mixture problems. The substitution check in the details is not decoration — a point that does not satisfy both original equations is wrong, however tidy it looks, and re-substituting takes seconds.
The angle between the lines, reported here from the slope formula, matters in applied work: roads and flight paths that cross at a shallow angle interact for longer than ones crossing near ninety degrees, and perpendicular crossings correspond to the special slope condition m1 x m2 = -1.
Use it wherever two straight-line models meet: the break-even point of a cost line and a revenue line, the moment one savings plan overtakes another, the crossing of two travel routes on a map grid, or a homework system of equations that needs checking.
How to calculate it yourself
Step 1
Rearrange each line into y = mx + b form and note m and b.
Step 2
Set the two right-hand sides equal to each other.
Step 3
Collect x terms on one side: (m1 - m2) x = b2 - b1.
Step 4
Divide to get x = (b2 - b1) / (m1 - m2).
Step 5
Substitute x into either original line to get y, then check it in the other line.
Real-life examples
Break-even for a market stall
A stallholder's costs follow y = 2x + 3 (in tens of dollars) and revenue follows y = -x + 9 in a simplified class model — solving gives x = 2, y = 7.
At the crossing, costs equal revenue: the stall breaks even at the quantity and money values represented by (2, 7).
The stallholder knows sales must pass that point before any profit appears, so the first sales target is set just beyond it.
Two savings plans overtake
Plan A grows as y = x and plan B as y = 3x - 4 (thousands of dollars against years, scaled). They intersect at (2, 2).
For the first two years plan A is ahead or level; after the crossing, plan B's steeper growth wins.
The saver chooses plan B because the horizon is ten years, well past the two-year crossing.
Ideas & use cases
- Find break-evens generally: model any two linear cost/revenue or plan lines and read the crossing as the decision point.
- Check homework systems instantly: solve by hand first, then use the substitution check here to confirm your point satisfies both equations.
- Spot near-parallel traps: when slopes are very close, tiny rounding in the inputs moves the crossing a long way — a warning for real data fits.
Limitations & sources
- Two straight lines in slope-intercept form only — no vertical lines, curves, or three-dimensional line intersections.
Sources: Simultaneous linear equations in standard algebra references; angle between lines from slope formula tan(theta) = |(m2-m1)/(1+m1 m2)|
