FreeCalcs
✖️

Line intersection calculator

Line 1 (A₁x + B₁y + C₁ = 0)

Line 2 (A₂x + B₂y + C₂ = 0)

Advertisement

About this calculator

How to quickly find the intersection point of two straight lines? This is a classic problem in analytic geometry and is widely used in computer graphics, engineering design, path planning and other fields. Two straight lines may intersect at one point on the plane, be parallel (no intersection), or coincident (countless intersections).

For two straight lines L₁: A₁x + B₁y + C₁ = 0 and L₂: A₂x + B₂y + C₂ = 0, the intersection point can be solved by a system of simultaneous equations. If A₁B₂ - A₂B₁ ≠ 0, then the two straight lines intersect, and the intersection coordinates are A₂B₁). If A₁B₂ - A₂B₁ = 0, then the two lines are parallel or coincident.

In practical applications, the calculation of intersection points of straight lines is very common. In computer graphics, determine whether two line segments intersect. In road planning, the intersection of two roads is calculated. In robot path planning, the intersection points of paths are calculated. In engineering design, determine the intersection location of two pipelines. In surveying, the location of a target is determined by the intersection of two lines of sight.

Our line intersection calculator supports a variety of straight line equation forms, including general, slope-intercept, point-slope, and two-point forms. Automatically determine the positional relationship of straight lines and give corresponding results. Detailed calculation steps and geometric diagrams are also provided to help you understand the solution process.

What it calculates

The line intersection calculator finds where two plane lines meet and identifies whether they intersect, are parallel, or coincide.

Formula

For A1x + B1y + C1 = 0 and A2x + B2y + C2 = 0, if D = A1B2 - A2B1 is not 0, the lines have one unique intersection.

Inputs

  • Coefficients A1, B1, C1 for the first line.
  • Coefficients A2, B2, C2 for the second line.

Example

Line 1Line 2Result
x + y - 3 = 0x - y - 1 = 0(2, 1)
x - y = 02x - 2y = 0Coincident
x - y = 0x - y - 1 = 0Parallel

How to interpret the result

A unique intersection is the coordinate where the two lines meet. Parallel lines have no intersection; coincident lines have infinitely many intersections.

Common mistakes

  • Parallel lines do not have a unique intersection.
  • Coincident lines have infinitely many intersections.
  • Use a consistent line equation form before entering values.

How to use

Using the Line Intersection Calculator is very simple. First, determine the equations of the two straight lines.

**Basic steps:** 1. Select the equation form of the first straight line 2. Enter the parameters of the first straight line 3. Select the equation form of the second straight line 4. Enter the parameters of the second straight line 5. Click the "Calculate" button to obtain the intersection coordinates

**Example 1:** Find the intersection of the straight lines 3x + 2y - 6 = 0 and 2x - y + 1 = 0. System of simultaneous equations, solved using elimination method or Cramer's rule. A₁B₂ - A₂B₁ = 3×(-1) - 2×2 = -7 ≠ 0, intersecting. x = (2×1 - (-1)×(-6))/(-7) = (2-6)/(-7) = 4/7, y = (2×(-6) - 3×1)/(-7) = (-12-3)/(-7) = 15/7. The intersection point is (4/7, 15/7).

**Example 2:** Find the intersection of the straight lines y = 2x + 1 and y = -x + 4. Combined: 2x + 1 = -x + 4, the solution is 3x = 3, x = 1. Substitute and get y = 3. The intersection point is (1, 3).

**Example 3:** Determine the positional relationship between the straight lines 2x + 3y - 1 = 0 and 4x + 6y - 5 = 0. A₁B₂ - A₂B₁ = 2×6 - 3×4 = 0, indicating that the two straight lines are parallel or coincident. Check: 4x + 6y - 5 = 2(2x + 3y) - 5 = 2(2x + 3y - 1) - 3. The coefficients are proportional but the constant terms are not proportional, so the two straight lines are parallel and have no intersection.

The calculator automatically handles various situations and gives clear explanations of the results.

Main features

• Various straight line forms: support general form, slope-intercept form, point-slope form, and two-point form • Positional relationship judgment: automatically judge intersection, parallel or coincidence • Exact calculations: provide precise coordinates of intersection points (fraction or decimal) • Formula display: displays simultaneous equations and solution formulas • Detailed explanation of steps: showing the complete solution process • Geometric Diagram: Draw the graph of two straight lines and intersection points • Special case handling: Correct handling of parallel lines and coincident lines • Batch calculation: supports calculation of multiple sets of straight line intersections • Angle calculation: Calculate the angle between two straight lines • Totally free: no registration required, use anytime

Use cases

• Analytical Geometry: Students learn equations of lines and solving intersections • Computer graphics: Determine the intersection of line segments and implement collision detection • Road planning: Calculate the location of road intersections • Engineering design: Determine the intersection points of pipelines and cables • Robot navigation: Calculate intersection points of paths • Geometry: Determining target position through line of sight intersection • Game development: Calculate intersection of ray and boundary • GIS: Calculate intersection points of geographic features • Exam preparation: Quickly verify answers to analytic geometry questions • Teaching aid: Teacher explains the concept of intersection of straight lines

FAQ

相关计算器