Intersection of Two Lines Calculator

Find where two lines y = m₁x + b₁ and y = m₂x + b₂ cross.

x 2
y 5

Formula: x = (b₂ − b₁) ÷ (m₁ − m₂)

Step-by-step with your numbers:
1. Values used:
2. Slope m₁ = 2
3. Intercept b₁ = 1
4. Slope m₂ = -1
5. Intercept b₂ = 7
6.
7. x = Slope m₁ x Intercept b₁ = 2 x 1 = 2
8. y = 5
Did we solve your problem today?

Two non-parallel lines meet at exactly one point — this finds it.

How the Math Works

The intersection of two lines occurs where their x and y values are equal. By setting the equations y = m₁x + b₁ and y = m₂x + b₂ equal to each other, we solve for x: m₁x + b₁ = m₂x + b₂. Rearranging terms gives (m₁ - m₂)x = b₂ - b₁, leading to x = (b₂ - b₁)/(m₁ - m₂). This formula calculates the x-coordinate of the intersection point, provided the slopes m₁ and m₂ are not equal (which would mean the lines are parallel). Substituting this x back into either original equation yields the corresponding y-coordinate.

Practical Applications

This calculation is essential in geometry for determining crossing points of linear paths, such as road intersections or projectile trajectories. In economics, it helps identify break-even points where supply and demand curves intersect, revealing equilibrium prices. Engineers use it to analyze structural loads or fluid dynamics, while computer scientists apply it in algorithms for collision detection or rendering 2D graphics where lines represent boundaries or vectors.

Day-to-Day Use

Imagine planning a meeting between two friends traveling from different locations; calculating their paths' intersection could determine a central rendezvous point. Athletes might use it to predict where two players' running paths cross during a game. Even in daily problem-solving, like optimizing delivery routes or adjusting garden layouts to avoid overlapping plant growth zones, this math helps visualize and solve spatial conflicts efficiently.

Worked example

y = 2x + 1 and y = −x + 7 → x = 2, y = 5.

FAQ

What if the slopes are equal?

The lines are parallel and never intersect (or are the same line).