Intersection of Two Lines Given 4 Points Calculator

Compute exact crossing points from four coordinate values. View slopes, equations, graphs, and exports. Solve geometry tasks faster with confidence.

Enter Four Points

Line 1 uses points P1 and P2. Line 2 uses points P3 and P4.

Example Data Table

P1 P2 P3 P4 Expected Result
(0, 0) (4, 4) (0, 4) (4, 0) Intersection at (2, 2)
(1, 1) (5, 1) (2, 3) (2, -1) Intersection at (2, 1)
(0, 1) (3, 1) (0, 2) (3, 2) Parallel lines
(0, 0) (2, 2) (4, 4) (6, 6) Coincident lines

Formula Used

Each line is defined by two points. The calculator uses determinant form to test whether the lines intersect, remain parallel, or overlap.

Line 1: through points (x1, y1) and (x2, y2)

Line 2: through points (x3, y3) and (x4, y4)

Determinant:

D = (x1 - x2)(y3 - y4) - (y1 - y2)(x3 - x4)

Intersection x-coordinate:

x = [ (x1y2 - y1x2)(x3 - x4) - (x1 - x2)(x3y4 - y3x4) ] / D

Intersection y-coordinate:

y = [ (x1y2 - y1x2)(y3 - y4) - (y1 - y2)(x3y4 - y3x4) ] / D

If D = 0, the lines are either parallel or coincident.

If D ≠ 0, the lines intersect at one unique point.

How to Use This Calculator

  1. Enter x and y values for point P1 and P2 for the first line.
  2. Enter x and y values for point P3 and P4 for the second line.
  3. Choose decimal precision for cleaner output formatting.
  4. Select infinite lines or finite segments mode.
  5. Press Calculate Intersection to view the result above the form.
  6. Review equations, slopes, determinant, angle, and graph.
  7. Export the result table as CSV or PDF.

FAQs

1. What does this calculator find?

It finds where two lines meet using four points. It also shows equations, slopes, determinant, angle, line relationship, and a plotted graph.

2. What if the lines are parallel?

Parallel lines never meet. The calculator reports no unique intersection and can also show the perpendicular distance between them.

3. What are coincident lines?

Coincident lines lie exactly on top of each other. That means every point on one line also lies on the other line.

4. Can I test line segments instead of full lines?

Yes. Choose segment mode. The calculator checks whether the computed intersection lies inside both finite segments.

5. Why do I need four points?

Two points define the first line, and two more define the second. That gives enough information to compare both lines accurately.

6. Does it work with vertical lines?

Yes. Vertical lines have undefined slope, but the determinant method still handles them correctly.

7. What does the determinant tell me?

The determinant shows whether a unique solution exists. Zero means parallel or coincident lines. A nonzero value means one intersection point exists.

8. Can I download the results?

Yes. Use the CSV button for spreadsheets and the PDF button for printable reports after calculation.

Related Calculators

3D vector angle calculatorlargest prime factor calculatorVector addition calculator with graphdestiny number compatibility calculatormatrix calculator with variablesNull Space CalculatorComplex matrix inverse calculator4×4 Determinant (Laplace expansion) CalculatorCompound inequality calculatorBinomial sample size calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.