Finding the distance between a point and a plane is a fundamental concept in three‑dimensional geometry that appears in fields ranging from computer graphics to engineering analysis. The distance measures how far a given point lies from a flat surface defined by a linear equation, and it is computed using a concise formula that relies only on the point’s coordinates and the plane’s coefficients. Below you will find a detailed, step‑by‑step guide that explains the underlying theory, shows how to apply the formula, and provides practical examples to reinforce understanding.
Introduction
Every time you need to find the distance between a point and a plane, you are essentially asking: What is the length of the shortest segment that connects the point to any point on the plane? Because the shortest path from a point to a flat surface is always perpendicular to that surface, the problem reduces to measuring the length of the perpendicular line segment. This article introduces the geometric intuition, derives the algebraic expression, walks through a clear procedure, and highlights common pitfalls so you can confidently solve any related problem.
Understanding the Geometry
A plane in three‑dimensional space can be expressed in the general form
[ Ax + By + Cz + D = 0, ]
where ((A, B, C)) is a normal vector (\mathbf{n}) that is perpendicular to every direction lying in the plane. The constant (D) shifts the plane away from the origin.
A point (P) is given by its coordinates ((x_0, y_0, z_0)). On top of that, the vector from any point (Q) on the plane to (P) can be written as (\overrightarrow{QP} = (x_0 - x_Q, y_0 - y_Q, z_0 - z_Q)). The distance we seek is the magnitude of the component of (\overrightarrow{QP}) that lies along the normal direction (\mathbf{n}) And that's really what it comes down to..
Not obvious, but once you see it — you'll see it everywhere.
Because the dot product projects a vector onto another vector, the signed distance from (P) to the plane is
[ \text{signed distance} = \frac{\mathbf{n}\cdot\overrightarrow{QP}}{|\mathbf{n}|}. ]
Since (\mathbf{n}\cdot\overrightarrow{QP} = Ax_0 + By_0 + Cz_0 + D) (the plane equation evaluated at (P)), the absolute value gives the perpendicular distance:
[ \boxed{d = \frac{|Ax_0 + By_0 + Cz_0 + D|}{\sqrt{A^2 + B^2 + C^2}}}. ]
Derivation of the Distance Formula
-
Identify the normal vector
From the plane equation (Ax + By + Cz + D = 0), the normal vector is (\mathbf{n} = \langle A, B, C \rangle) Small thing, real impact. Still holds up.. -
Compute the plane’s value at the point
Plug the point’s coordinates into the left‑hand side:
[ L = Ax_0 + By_0 + Cz_0 + D. ]
If (L = 0), the point lies exactly on the plane and the distance is zero. -
Find the length of the normal vector
[ |\mathbf{n}| = \sqrt{A^2 + B^2 + C^2}. ] -
Form the ratio
The signed distance equals (L / |\mathbf{n}|). Taking the absolute value yields the non‑negative distance:
[ d = \frac{|L|}{|\mathbf{n}|}. ]
This derivation shows that the formula works for any orientation of the plane because the normal vector captures its tilt, while the denominator normalizes the projection.
Step‑by‑Step Procedure
Follow these steps to find the distance between a point and a plane reliably:
-
Write the plane in general form (Ax + By + Cz + D = 0).
If the plane is given in point‑normal form (\mathbf{n}\cdot(\mathbf{r} - \mathbf{r}_0)=0), expand it to obtain (A, B, C, D). -
Identify the coefficients (A, B, C,) and (D).
-
Insert the point’s coordinates ((x_0, y_0, z_0)) into the expression (Ax_0 + By_0 + Cz_0 + D).
-
Take the absolute value of the result from step 3 And that's really what it comes down to. And it works..
-
Compute the denominator (\sqrt{A^2 + B^2 + C^2}).
-
Divide the absolute numerator by the denominator to obtain the distance (d) Turns out it matters..
-
State the answer with appropriate units (if units were provided).
Worked Examples
Example 1: Simple Axis‑Aligned Plane
Problem: Find the distance from the point (P(3, -2, 5)) to the plane (2x - y + 3z - 6 = 0).
Solution:
- Coefficients: (A = 2,; B = -1,; C = 3,; D = -6).
- Numerator: (|2(3) + (-1)(-2) + 3(5) - 6| = |6 + 2 + 15 - 6| = |17| = 17).
- Denominator: (\sqrt{2^2 + (-1)^2 + 3^2} = \sqrt{4 + 1 + 9} = \sqrt{14}).
- Distance: (d = \dfrac{17}{\sqrt{14}} \approx 4.54) units.
Example 2: Plane Given by a Point and Normal Vector
Problem: Determine the distance from (Q(-1, 4, 2)) to the plane that passes through (R(0, 1, -3)) with normal vector (\mathbf{n} = \langle 1, 2, -2 \rangle) Simple, but easy to overlook..
Solution:
- Build the plane equation:
[ 1(x - 0) + 2(y - 1) - 2(z + 3) = 0 ;\Rightarrow; x + 2y - 2 - 2z - 6 = 0 ;\Rightarrow; x + 2y - 2z - 8 = 0
Example 2 (continued)
The plane obtained in step 1 is
[ x + 2y - 2z - 8 = 0, ]
so the coefficients are (A = 1,; B = 2,; C = -2,; D = -8).
Numerator
[ \begin{aligned} L &= A x_0 + B y_0 + C z_0 + D \ &= 1(-1) + 2(4) + (-2)(2) - 8 \ &= -1 + 8 - 4 - 8 \ &= -5 . \end{aligned} ]
Taking the absolute value gives (|L| = 5).
Denominator
[ |\mathbf{n}| = \sqrt{1^{2} + 2^{2} + (-2)^{2}} = \sqrt{1 + 4 + 4} = \sqrt{9} = 3 . ]
Distance
[ d = \frac{|L|}{|\mathbf{n}|} = \frac{5}{3} \approx 1.67 \text{ units}. ]
Thus the point (Q(-1,4,2)) lies (\frac{5}{3}) units from the given plane.
Example 3: Point on the Plane (Zero Distance)
Problem: Find the distance from (S(2, -1, 1)) to the plane (3x - 4y + z + 5 = 0) Small thing, real impact..
Solution:
[ L = 3(2) -4(-1) + 1(1) + 5 = 6 + 4 + 1 + 5 = 16 . ]
Since the plane equation is (3x - 4y + z + 5 = 0), we notice that substituting (S) actually yields
[ 3(2) -4(-1) + 1 + 5 = 6 + 4 + 1 + 5 = 16 \neq 0, ]
so (S) is not on the plane. To illustrate a zero‑distance case, choose a point that satisfies the equation, e.g.
[ L = 3(0) -4(-5) + 0 + 5 = 0 + 20 + 0 + 5 = 25 \neq 0, ]
still not zero. Let’s instead solve for a point on the plane: set (x = 0, y = 0) → (z = -5). Thus (U(0,0,-5)) gives
[ L = 3(0) -4(0) + (-5) + 5 = 0 . ]
Hence the distance from (U) to the plane is
[ d = \frac{|0|}{\sqrt{3^{2}+(-4)^{2}+1^{2}}}=0 . ]
This confirms that when the point satisfies the plane equation, the distance formula correctly returns zero.
Remarks on Signed Distance and Applications
The quantity
[ \delta = \frac{Ax_0 + By_0 + Cz_0 + D}{\sqrt{A^{2}+B^{2}+C^{2}}} ]
is the signed distance: it is positive when the point lies in the direction of the normal vector (\langle A,B,C\rangle) and negative when it lies opposite. In fields such as computer graphics, physics simulation, and robotics, the signed distance is invaluable for:
The official docs gloss over this. That's a mistake That's the part that actually makes a difference..
- Collision detection – determining whether objects intersect or how far apart they are.
- Level‑set methods – representing surfaces implicitly and evolving them via PDEs.
- Shader programming – computing fog, depth‑based effects, or refraction distances efficiently.
Because the denominator normalizes the normal vector, the formula remains valid for any plane orientation, including those that are not axis‑aligned Small thing, real impact..
Conclusion
The distance from a point to a plane is obtained by evaluating the plane’s left‑hand side at the point, taking its absolute value, and dividing by the magnitude of the plane’s normal vector. This compact expression works universally, yields zero for points that lie exactly on the plane, and provides a signed value that indicates on which side of the plane the point resides. Mastery of this technique equips you with a fundamental tool for geometry‑intensive disciplines ranging from pure mathematics to engineering and computer science.