Intersection Point of Two Lines in 3D Calculator Solver

Understanding Line Intersection in 3D

In 3D space, two lines can intersect (meet at a single point), be parallel (no intersection), or be skew (not parallel and never meet).

We present a calculator and a step by step solver to find points of intersection of two lines in 3D if any.

Line through two points:
$$L_1: \vec{r_1}(t) = \langle x_A, y_A, z_A \rangle + t\,\langle x_B-x_A, y_B-y_A, z_B-z_A \rangle$$ $$L_2: \vec{r_2}(s) = \langle x_C, y_C, z_C \rangle + s\,\langle x_D-x_C, y_D-y_C, z_D-z_C \rangle$$
Parametric form:
$$L_1: \begin{cases} x = x_1 + t\,a_1 \\ y = y_1 + t\,b_1 \\ z = z_1 + t\,c_1 \end{cases}$$ $$L_2: \begin{cases} x = x_2 + s\,a_2 \\ y = y_2 + s\,b_2 \\ z = z_2 + s\,c_2 \end{cases}$$
Condition for intersection:
$$L_1: \vec{P_1} + t\vec{V_1} \quad \text{and} \quad L_2: \vec{P_2} + s\vec{V_2}$$ $$(\vec{P_2} - \vec{P_1}) \cdot (\vec{V_1} \times \vec{V_2}) = 0$$

This is the scalar triple product (STP). If STP = 0, the lines are coplanar and may intersect. If STP ≠ 0, the lines are skew and cannot intersect.

To find the intersection: Solve the system: $$\begin{cases} x_A + t\,(x_B-x_A) = x_C + s\,(x_D-x_C) \\ y_A + t\,(y_B-y_A) = y_C + s\,(y_D-y_C) \\ z_A + t\,(z_B-z_A) = z_C + s\,(z_D-z_C) \end{cases}$$
Important: Solve two equations for t and s, then verify if they satisfy the third equation. If the third equation is satisfied, the lines intersect. If not, they are skew. If the direction vectors are parallel, lines are either parallel or coincident.

3D Lines Intersection Calculator

Enter lines in any format (two points, parametric, or point+direction)

Line L₁

a: b: c:

Line L₂

Scalar Triple Product (STP): ---
STP = (P₂ - P₁) · (V₁ × V₂) — If STP = 0, lines are coplanar and may intersect.

Results

--
--
--
--

Step-by-Step Solution

Enter line data and click "Find Intersection Point" to see the solution steps.

More References and Links