Lines use P + t v. Planes use Ax + By + Cz + D = 0.
Line and Plane Intersection Calculator
Use this Line and Plane Intersection Calculator to enter values, adjust options, and review results in a compact responsive workspace.
Results are calculated automatically as you enter data.
Calculation steps
▼ See explanations and tips below ▼
Related Calculators
What Are Line and Plane Intersections?
Line and plane intersections are the common points shared by geometric objects in three-dimensional space. In 3D analytic geometry, a line is often described by a starting point and a direction, while a plane is described by a flat equation involving \(x\), \(y\), and \(z\).
The main idea is simple: an intersection is a solution set. Instead of asking only “Where do they meet?”, it is better to ask “Which points satisfy all the equations at the same time?”
Depending on the objects, the answer can be:
- One point, such as a line crossing a plane.
- A line, such as two nonparallel planes meeting along a seam.
- A plane, when multiple plane equations describe the same plane.
- No intersection, when the objects never share a point.
This topic matters because 3D intersections connect geometry, vectors, and systems of linear equations. The same ideas appear in calculus, linear algebra, computer graphics, CAD modeling, robotics, engineering geometry, and physics.
Why Line and Plane Intersections Matter
In two dimensions, most line-intersection problems are about two lines on a flat coordinate plane. In three dimensions, there are more possibilities. Two lines can be parallel, intersect, coincide, or be skew. Two planes can be parallel, identical, or meet in a line. Three planes can meet at one point, share a line, describe the same plane, or have no common solution.
Understanding these cases helps you:
- Translate geometric questions into equations.
- Recognize when a system has one solution, infinitely many solutions, or no solution.
- Avoid relying only on a drawing, because 3D objects can look like they meet from one viewing angle even when they do not.
- Interpret vector operations such as dot products and cross products in a practical way.
- Connect geometry with matrix methods such as determinants, row reduction, and rank.
Key Terms to Know
- Point: A location in 3D space, usually written as \((x,y,z)\).
- Vector: A quantity with direction and magnitude. In this topic, vectors often describe directions or normals.
- Direction vector: A nonzero vector that gives the direction of a line.
- Normal vector: A vector perpendicular to a plane. For the plane \(Ax + By + Cz + D = 0\), the normal vector is \((A,B,C)\).
- Parametric line: A line written using a parameter, usually \(t\), so each value of \(t\) gives a point on the line.
- Dot product: A vector operation that returns a scalar. It is useful for testing perpendicularity and projecting one vector onto another.
- Cross product: A vector operation that returns a vector perpendicular to two input vectors.
- Skew lines: Lines in 3D that are not parallel but still do not intersect.
- Determinant: A number associated with a square matrix. For a 3-by-3 system, a nonzero determinant indicates a unique solution.
- Matrix rank: A measure of how many independent equations or directions a matrix contains.
- Augmented matrix: A matrix that combines the coefficients of a linear system with its right-hand-side constants.
How Line and Plane Intersections Work
A line in 3D can be written in vector form as
where:
- \(\mathbf{x}\) is a general point on the line.
- \(\mathbf{P}\) is a known point on the line.
- \(\mathbf{v}\) is a nonzero direction vector.
- \(t\) is a real-number parameter.
A plane can be written as
or, using a normal vector,
where \(\mathbf{n}=(A,B,C)\).
The intersection problem becomes a question of solving equations. A point is part of the intersection only if it satisfies every line and plane equation involved.
Line and Plane Intersection
For a line \(\mathbf{x}=\mathbf{P}+t\mathbf{v}\) and a plane \(\mathbf{n}\cdot\mathbf{x}+D=0\), substitute the line into the plane:
Expand and solve for \(t\):
If \(\mathbf{n}\cdot\mathbf{v}\ne 0\), the line crosses the plane at one point:
Then substitute \(t\) back into the line equation to find the intersection point.
If \(\mathbf{n}\cdot\mathbf{v}=0\), the line direction is parallel to the plane. In that case:
- If the point \(\mathbf{P}\) satisfies the plane equation, the whole line lies in the plane.
- If \(\mathbf{P}\) does not satisfy the plane equation, the line and plane do not intersect.
Two Plane Intersection
Two planes have normal vectors \(\mathbf{n}_1\) and \(\mathbf{n}_2\). If their normals are not parallel, the planes meet in a line. The direction of that line is perpendicular to both normals, so it is given by the cross product:
If \(\mathbf{n}_1\times\mathbf{n}_2=\mathbf{0}\), the planes are parallel or identical. Parallel distinct planes have no intersection. Identical planes share every point on the same plane.
Two Line Intersection
Two 3D lines can be written as
If \(\mathbf{d}_1\times\mathbf{d}_2=\mathbf{0}\), the direction vectors are parallel. The lines are either coincident or parallel and distinct.
If the direction vectors are not parallel, the lines might intersect at one point, but they also might be skew. A skew pair has no shared point even though the lines are not parallel. A reliable test is to compute the closest points on the two lines and check the distance between them. If that distance is zero, the lines intersect; otherwise, they are skew.
Three Plane Intersection
Three planes form a system of three linear equations in three unknowns. If the planes are
then they can be written as
where
and
If \(\det(M)\ne 0\), the system has one solution, so the three planes meet at one point.
If \(\det(M)=0\), the equations are dependent in some way. Matrix rank helps classify the result:
| Rank condition | Geometric meaning |
|---|---|
| \(\operatorname{rank}(M)<\operatorname{rank}([M\mid\mathbf{b}])\) | No common solution |
| \(\operatorname{rank}(M)=\operatorname{rank}([M\mid\mathbf{b}])=2\) | Common line |
| \(\operatorname{rank}(M)=\operatorname{rank}([M\mid\mathbf{b}])=1\) | Common plane |
Examples of Line and Plane Intersections in Practice
Example 1: A Line Crossing a Plane
Suppose a line is
and the plane is
The plane normal is
Compute the denominator:
Because this is not zero, the line intersects the plane at one point. Now compute \(t\):
Substitute \(t=1\) into the line:
The line and plane intersect at
Example 2: Two Planes Meeting in a Line
Consider the planes
and
Their normal vectors are
and
The direction of the intersection line is
To find one point on the line, use \(x-y=0\), so \(y=x\). In the first plane, this gives
or
Choose \(x=0\), so \(y=0\) and \(z=1\). One point is \((0,0,1)\).
The intersection line is
Example 3: Skew Lines
Let
and
These lines are not parallel because their direction vectors are not scalar multiples. However, the first line always has \(z=0\), while the second line always has \(z=1\). They can never share the same point.
They are skew lines. A 2D-looking drawing may make them appear close, but the 3D equations show that they do not intersect.
Example 4: Three Planes Meeting at One Point
Consider
From \(z=2\) and \(x-y=0\), we have \(x=y\). Substitute into the first equation:
So \(y=2\) and \(z=2\). The three planes meet at
How to Interpret the Result
A result is not just a number; it describes the entire common set of the objects.
| Result type | Meaning |
|---|---|
| Point | The objects share exactly one computed point. |
| Line | The objects share infinitely many points along one parametric line. |
| Plane | The plane equations are dependent and describe a whole shared plane. |
| None | There is no shared point for the selected objects. |
For a point result, the coordinates give the shared location. For a line result, the answer is usually written as a point plus \(t\) times a direction vector:
This means every real value of \(t\) gives another point on the same intersection line.
For a no-intersection result, the reason matters. Two objects may be parallel and distinct, two lines may be skew, or a system of three planes may be inconsistent.
For two nonparallel lines, a gap or closest-distance value explains whether the closest points actually coincide. The classification keeps a finite nonzero computed gap distinct from zero; displayed values are rounded only after classification.
Common Mistakes and Misconceptions
Using a zero direction vector for a line. A line needs a nonzero direction. A vector such as \((0,0,0)\) does not define a direction.
Using \(A=B=C=0\) for a plane. In \(Ax+By+Cz+D=0\), the normal vector is \((A,B,C)\). If all three are zero, the equation does not define a valid plane.
Forgetting the sign of \(D\). The calculator uses
If you rewrite this as
the constant changes sign. This is a common source of incorrect three-plane systems.
Assuming nonparallel lines must intersect. In 2D, nonparallel lines intersect. In 3D, nonparallel lines can be skew.
Confusing the parameter with a coordinate. In \((x,y,z)=\mathbf{P}+t\mathbf{v}\), the parameter \(t\) is not usually one of the coordinates. It is the value that tells you how far to move along the direction vector.
Trusting the visual preview more than the equations. A 3D preview is helpful, but rotation angle, finite line segments, and finite plane patches can make objects look closer or farther apart than they are mathematically.
Expecting exact symbolic answers. Decimal output is useful for numeric work, but it is not the same as an exact fraction or symbolic expression.
When to Use Line and Plane Intersection Methods
Use these methods when you need to:
- Find where a path crosses a flat surface.
- Determine the seam where two planes meet.
- Check whether two 3D lines intersect or are skew.
- Classify the solution set of three plane equations.
- Connect vector geometry with linear systems.
- Verify a 3D geometry result before using it in a drawing, model, or assignment.
- Understand whether a system has one solution, infinitely many solutions, or no solution.
Limitations and Things to Keep in Mind
Line and plane intersection calculations are exact in theory, but this calculator uses binary floating-point arithmetic. It keeps finite nonzero computed quantities distinct from zero when classifying intersections; displayed values are rounded separately for readability. Very close or ill-conditioned configurations can still be sensitive to floating-point rounding, so verify important results independently.
This calculator uses unitless Cartesian coordinates and coefficients. It does not perform unit conversion, and it does not attach physical measurement units to the result. If your coordinates represent meters, feet, pixels, or another unit, the interpretation of the coordinates comes from your own model.
Displayed calculation values are rounded to 6 decimal places, and very small displayed values may appear as zero. This keeps the output readable, but it can hide tiny numerical differences.
The calculator is designed for these modes:
- Two lines.
- A line and a plane.
- Two planes.
- Three planes.
It does not cover segments, rays, line-triangle intersections, ray-plane intersections, line-surface intersections, or larger systems with more than three planes.
The visual preview is a helpful aid, not a complete drawing of infinite geometry. Lines are shown as finite segments, and planes are shown as finite patches. Rotating the preview changes only the view, not the computed result.
For coursework, engineering, modeling, or safety-related work, double-check important results and make sure the coordinate system and units match the problem you are solving.
How to Use This Calculator
- Choose the intersection mode: two lines, line and plane, two planes, or three planes.
- For each line, enter one point \((x,y,z)\) and a nonzero direction vector.
- For each plane, enter the coefficients \(A\), \(B\), \(C\), and \(D\) in the form \(Ax+By+Cz+D=0\).
- Review the status, result, type, details, and solution steps.
- Use the result interpretation above to understand whether the common set is a point, line, plane, or no intersection.
- Rotate the 3D preview by dragging it or by using the yaw and pitch controls. These controls affect only the view.
- Use the reset control to return the preview to the default viewing angle.
- Use the download option to save the current graph as a PNG image when a result is displayed.
Frequently Asked Questions
What does it mean if the result is a line?
It means the objects share infinitely many points, and those points form a straight line. This often happens when two nonparallel planes intersect or when three planes have exactly two independent equations. A parametric line gives one point on the line and a direction vector.
Why can two lines in 3D fail to intersect even if they are not parallel?
In 3D, two lines can pass through different “levels” of space. They may have different directions but never share the same point. These are called skew lines.
What does \(\mathbf{n}\cdot\mathbf{v}=0\) mean in a line-plane problem?
It means the line direction is perpendicular to the plane’s normal vector, so the line is parallel to the plane. The line either lies entirely in the plane or misses it completely. To tell which case applies, check whether the line’s known point satisfies the plane equation.
Why does the calculator use \(Ax+By+Cz+D=0\) instead of \(Ax+By+Cz=D\)?
Both forms can describe planes, but the signs are different. In the form \(Ax+By+Cz+D=0\), the right-hand-side constant is \(-D\) if you rewrite it as \(Ax+By+Cz=-D\). Entering the wrong sign for \(D\) changes the plane.
What does rank tell me for three planes?
Rank tells you how many independent equations are present. In a three-plane problem, rank comparisons show whether the system has a single point, a common line, a common plane, or no common solution.
Why are my results rounded?
Numeric results are displayed in decimal form for readability. Values are shown to a limited number of decimal places, and very small values may display as zero. For exact symbolic work, you may need to solve the system by hand or use a symbolic algebra tool.
Sources and References
Books
- Gilbert Strang and Edwin “Jed” Herman. Calculus Volume 3. OpenStax, 2016. Chapter 2, Sections 2.3 “The Dot Product,” 2.4 “The Cross Product,” and 2.5 “Equations of Lines and Planes in Space.” Online edition accessed July 4, 2026. https://openstax.org/books/calculus-volume-3/pages/2-5-equations-of-lines-and-planes-in-space
- Dan Margalit and Joseph Rabinoff. Interactive Linear Algebra. Georgia Institute of Technology, June 3, 2019. Sections 1.2 “Row Reduction,” 1.3 “Parametric Form,” 2.4 “Solution Sets,” 2.9 “The Rank Theorem,” and 4.2 “Cofactor Expansions.” Online edition accessed July 4, 2026. https://textbooks.math.gatech.edu/ila/