Line of Intersection of Two Planes Calculator

Enter the coefficients of two plane equations (ax + by + cz = d) to find their line of intersection: the direction vector (n1 × n2), a point on the line, the parametric equations, and the angle between the planes.

Quick Facts

Direction vector
d = n₁ × n₂
The cross product of the two planes' normal vectors gives the direction the intersection line runs in.
Point on the line
Solve 2 equations, 3 unknowns
Fix one coordinate (usually 0) and solve the remaining 2×2 system for the other two.
Parallel planes
n₁ × n₂ = 0
If the normals are parallel, the planes are either identical or never meet — there is no single intersection line.
Angle between planes
cos θ = |n₁·n₂| / (|n₁||n₂|)
The dihedral angle between the two planes, computed from their normal vectors.

Your Results

Calculated
Direction Vector
-
d = n₁ × n₂
Point on the Line
-
One solution common to both planes
Parametric Equations
-
x, y, z in terms of parameter t
Angle Between Planes
-
Dihedral angle, in degrees

Ready

Enter both plane equations (ax + by + cz = d), then press Calculate.

How to Find the Line of Intersection of Two Planes

Two planes in 3D space, each written in the general form ax + by + cz = d, intersect in a straight line as long as they are not parallel. That line is fully described by two pieces of information: a direction vector (which way the line runs) and a point that lies on the line (where it is). This calculator finds both directly from the two plane equations you enter.

Finding the direction vector with the cross product

Every plane ax + by + cz = d has a normal vector n = (a, b, c) that points perpendicular to the plane. The line where two planes meet lies in both planes, so it must be perpendicular to both normal vectors — which means its direction is the cross product of the two normals: d = n₁ × n₂ = (b₁c₂ − c₁b₂, c₁a₂ − a₁c₂, a₁b₂ − b₁a₂). If this cross product is the zero vector, the two normals are parallel, so the planes themselves are parallel (either the same plane or two planes that never meet), and there is no single intersection line.

Finding a point on the line by elimination

Two plane equations in three unknowns (x, y, z) have one degree of freedom, so infinitely many points satisfy both — all of them lying on the line. To pick one, this calculator sets whichever coordinate corresponds to a nonzero component of the direction vector to 0, then solves the remaining 2×2 system for the other two coordinates with Cramer's rule. For example, if the z-component of the direction vector is nonzero, setting z = 0 turns the two plane equations into a solvable 2×2 linear system in x and y alone. Combined with the direction vector, that point gives the full parametric line: (x, y, z) = (x₀, y₀, z₀) + t(dx, dy, dz).

When the planes don't meet in a line

If n₁ × n₂ = (0, 0, 0), the two normal vectors are parallel, so the planes are parallel too. There are only two possibilities in that case: the equations describe the exact same plane (every point that satisfies one satisfies the other — infinitely many shared points, not a single line), or they describe two distinct parallel planes that never touch at all. The calculator checks which case applies by comparing the ratio of the constants (d₁, d₂) to the ratio of the coefficients, and explains it instead of returning a line.

Checking your result

A quick way to verify the output: plug the point (x₀, y₀, z₀) back into both original plane equations — it should satisfy both. Then pick any value of t, compute the resulting (x, y, z), and confirm that point also satisfies both plane equations. The direction vector should also be perpendicular to both normal vectors, so each dot product n·d should equal 0.

Applications

Finding the intersection line of two planes comes up throughout 3D geometry and engineering: computing the edge where two flat surfaces (walls, roof panels, machined faces) meet, finding the axis of a dihedral angle, setting up constraints in CAD and robotics, and as a building block for related problems like finding the single point where three planes intersect.

Frequently Asked Questions

How do I find the line where two planes intersect?
Write each plane as ax + by + cz = d and take the normal vectors n₁ = (a₁,b₁,c₁) and n₂ = (a₂,b₂,c₂). The line's direction is the cross product n₁ × n₂. Then find one point that satisfies both plane equations (by setting one coordinate to 0 and solving the remaining 2×2 system) — combining the point and direction gives the full line.
What does it mean if the two planes are parallel?
If n₁ × n₂ = (0, 0, 0), the planes' normal vectors point in parallel directions, so the planes themselves are parallel. If the plane equations are also proportional (same ratio for a, b, c, and d), the two equations describe the same plane, and every point on it satisfies both — there is no single line. If the ratios don't match for d, the planes are distinct and parallel, and they never intersect at all.
How do I find a point on the line of intersection?
Two plane equations in three unknowns leave one free variable. Set the coordinate that corresponds to a nonzero component of the direction vector to 0 (for example z = 0), which reduces the system to two equations in the remaining two unknowns. Solve that 2×2 system (Cramer's rule works well) to get one specific point on the line.
What does the direction vector represent, and can I scale it?
The direction vector d = n₁ × n₂ shows which way the line of intersection runs in 3D space. Any nonzero scalar multiple of d points along the same line, so (2, 4, -6) and (1, 2, -3) describe the same direction — only the ratio between the components matters.