Skip to main content

Intersection of Two Lines Calculator

Free Intersection two lines Calculator for coordinate geometry. Enter values to get step-by-step solutions with formulas and graphs.

Reviewed by Manoj Kumar, Mathematics Educator

Reviewed by Manoj Kumar, Mathematics Educator

Formula

x = (c\u2081b\u2082 - c\u2082b\u2081) / (a\u2081b\u2082 - a\u2082b\u2081), y = (a\u2081c\u2082 - a\u2082c\u2081) / (a\u2081b\u2082 - a\u2082b\u2081)

Cramer's rule solves the system a\u2081x + b\u2081y = c\u2081 and a\u2082x + b\u2082y = c\u2082. The denominator (a\u2081b\u2082 - a\u2082b\u2081) is the determinant. If it equals zero, the lines are parallel or coincident.

Worked Examples

Example 1: Standard Intersection

Problem:Find the intersection of 2x - y = 3 and x + y = 5.

Solution:Using Cramer's rule:\nDeterminant = (2)(1) - (1)(-1) = 2 + 1 = 3\nx = (3*1 - 5*(-1)) / 3 = (3 + 5) / 3 = 8/3 = 2.6667\ny = (2*5 - 1*3) / 3 = (10 - 3) / 3 = 7/3 = 2.3333\nSlope 1 = 2, Slope 2 = -1\nAngle = arctan(|2-(-1)| / |1+2*(-1)|) = arctan(3) = 71.57\u00B0

Result:Intersection: (2.6667, 2.3333) | Angle: 71.57\u00B0

Example 2: Perpendicular Lines

Problem:Find the intersection of 3x + y = 7 and x - 3y = 1.

Solution:Determinant = (3)(-3) - (1)(1) = -9 - 1 = -10\nx = (7*(-3) - 1*1) / (-10) = (-21 - 1) / (-10) = 2.2\ny = (3*1 - 1*7) / (-10) = (3 - 7) / (-10) = 0.4\nSlope 1 = -3, Slope 2 = 1/3\nProduct = -3 * (1/3) = -1 (perpendicular!)\nAngle = 90\u00B0

Result:Intersection: (2.2, 0.4) | Lines are perpendicular (90\u00B0)

Frequently Asked Questions

How do you find the intersection point of two lines?

To find the intersection of two lines given in the form a1*x + b1*y = c1 and a2*x + b2*y = c2, you solve the system of linear equations simultaneously. The most direct method uses Cramer's rule: x = (c1*b2 - c2*b1) / (a1*b2 - a2*b1) and y = (a1*c2 - a2*c1) / (a1*b2 - a2*b1). The denominator (a1*b2 - a2*b1) is called the determinant. If the determinant is zero, the lines are either parallel or coincident. This algebraic approach is more reliable than graphical methods, which can introduce visual estimation errors.

How do you calculate the angle between two intersecting lines?

The angle between two lines with slopes m1 and m2 is found using the formula tan(theta) = |m1 - m2| / (1 + m1*m2). Then theta = arctan of that value. This gives the acute angle between the lines. If one line is vertical (undefined slope), the angle is calculated using the complementary angle from the other line. Two lines are perpendicular when the product of their slopes equals -1, giving a 90-degree angle. The formula fails when 1 + m1*m2 = 0, which is exactly the perpendicular condition where the angle is 90 degrees. Understanding line angles is critical in navigation, engineering, and computer graphics.

Can two lines in 3D space intersect differently than in 2D?

Yes, three-dimensional space introduces an additional possibility that does not exist in two dimensions. In 2D, two distinct lines are either parallel (no intersection) or intersecting (exactly one point). In 3D, lines can also be skew, meaning they are neither parallel nor intersecting because they exist in different planes. Two skew lines are non-coplanar and pass each other without touching. To determine if 3D lines intersect, you need to verify that the lines are coplanar first, which requires checking the scalar triple product of their direction vectors and the vector connecting a point on each line.

How do you find the intersection of lines given in slope-intercept form?

If two lines are given as y = m1*x + b1 and y = m2*x + b2, set them equal: m1*x + b1 = m2*x + b2. Solving for x gives x = (b2 - b1) / (m1 - m2), then substitute back to find y. This is equivalent to the general method but simpler when lines are already in y = mx + b form. If m1 = m2 (same slope), the denominator is zero, indicating parallel lines. If additionally b1 = b2, the lines are identical. To convert from slope-intercept to standard form for Intersection of Two Lines Calculator, rewrite y = mx + b as mx - y = -b, giving a = m, b_coeff = -1, and c = -b.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy