TExcelTAD
Home › Coordinate Geometry: 2D & 3D Cartesian Systems › Distance from a Point to a Plane in 3D Space

Distance from a Point to a Plane in 3D Space

In two-dimensional coordinate geometry, finding the perpendicular distance from a point to a line is an essential tool for measuring clearance, building buffers, and testing geometric tangency. In three-dimensional space R3\mathbb{R}^3, the exact same geometric challenge arises when an engineer calculates the altitude of an aircraft above a sloped runway, or when a computer graphics engine computes the proximity of a camera to a virtual wall.

The shortest distance from an external point to a flat plane is measured along the unique line that strikes the plane at a strict 90∘90^\circ angle.


1. Geometric Derivation via Vector Projection

Let Π\Pi be a plane defined by the general linear equation:

Ax+By+Cz+D=0Ax + By + Cz + D = 0

where n⃗=⟨A,B,C⟩\vec{n} = \langle A, B, C \rangle is a non-zero normal vector perpendicular to Π\Pi.

Let P1(x1,y1,z1)P_1(x_1, y_1, z_1) be any given point in space, and let HH be the orthogonal projection (the "foot of the perpendicular") of P1P_1 onto plane Π\Pi. The shortest distance is the length of segment P1HP_1H.

Derivation on Paper

  1. Choose an arbitrary reference point P0(x0,y0,z0)P_0(x_0, y_0, z_0) lying anywhere on plane Π\Pi. Because P0P_0 is on Π\Pi, its coordinates satisfy:
    Ax0+By0+Cz0+D=0  ⟹  D=−(Ax0+By0+Cz0)Ax_0 + By_0 + Cz_0 + D = 0 \implies D = -(Ax_0 + By_0 + Cz_0)
  2. Form the displacement vector from P0P_0 to the external point P1P_1:
    P0P1⃗=⟨x1−x0,  y1−y0,  z1−z0⟩\vec{P_0P_1} = \langle x_1 - x_0, \; y_1 - y_0, \; z_1 - z_0 \rangle
  3. Looking at the right-angled triangle formed by P0,H,P_0, H, and P1P_1, the segment P1HP_1H is simply the projection of P0P1⃗\vec{P_0P_1} onto the normal vector n⃗\vec{n}:
    d=∣compn⃗P0P1⃗∣=∣n⃗⋅P0P1⃗∣∥n⃗∥d = |\text{comp}_{\vec{n}}\vec{P_0P_1}| = \frac{|\vec{n} \cdot \vec{P_0P_1}|}{\|\vec{n}\|}
  4. Compute the dot product:
    n⃗⋅P0P1⃗=A(x1−x0)+B(y1−y0)+C(z1−z0)=Ax1+By1+Cz1−(Ax0+By0+Cz0)=Ax1+By1+Cz1+D\begin{aligned} \vec{n} \cdot \vec{P_0P_1} &= A(x_1 - x_0) + B(y_1 - y_0) + C(z_1 - z_0) \\ &= Ax_1 + By_1 + Cz_1 - (Ax_0 + By_0 + Cz_0) \\ &= Ax_1 + By_1 + Cz_1 + D \end{aligned}
  5. Since ∥n⃗∥=A2+B2+C2\|\vec{n}\| = \sqrt{A^2 + B^2 + C^2}, we obtain the celebrated Point-to-Plane Distance Formula:
d(P1,Π)=∣Ax1+By1+Cz1+D∣A2+B2+C2d(P_1, \Pi) = \frac{|Ax_1 + By_1 + Cz_1 + D|}{\sqrt{A^2 + B^2 + C^2}}

2. Geometric Diagram: Point-to-Plane Perpendicular Drop

Plane Plane H (Foot) P_1(x_1, y_1, z_1) d = P_1H P_0(x_0,y_0,z_0) P_0P_1 n = ⟨A, B, C⟩

3. Finding the Coordinates of the Foot of the Perpendicular

In addition to finding the numerical distance dd, exam problems frequently ask: What are the exact spatial coordinates of the projection point HH on plane Π\Pi?

The Parametric Normal Method

  1. The line L\mathcal{L} through P1(x1,y1,z1)P_1(x_1, y_1, z_1) perpendicular to Π\Pi has direction vector n⃗=⟨A,B,C⟩\vec{n} = \langle A, B, C \rangle.
  2. Write its parametric equations in terms of parameter tt:
    {x(t)=x1+Aty(t)=y1+Btz(t)=z1+Ct\begin{cases} x(t) = x_1 + At \\ y(t) = y_1 + Bt \\ z(t) = z_1 + Ct \end{cases}
  3. Since HH lies on plane Π\Pi, substitute x(t),y(t),z(t)x(t), y(t), z(t) into Ax+By+Cz+D=0Ax + By + Cz + D = 0:
    A(x1+At)+B(y1+Bt)+C(z1+Ct)+D=0A(x_1 + At) + B(y_1 + Bt) + C(z_1 + Ct) + D = 0
  4. Solve for the unique value of tHt_H:
    (A2+B2+C2)t+(Ax1+By1+Cz1+D)=0  ⟹  tH=−Ax1+By1+Cz1+DA2+B2+C2(A^2 + B^2 + C^2)t + (Ax_1 + By_1 + Cz_1 + D) = 0 \implies t_H = -\frac{Ax_1 + By_1 + Cz_1 + D}{A^2 + B^2 + C^2}
  5. Substitute tHt_H back into the parametric line equations to obtain the exact coordinates of HH.

(Notice: The distance is simply d=∣tH∣∥n⃗∥=∣tH∣A2+B2+C2d = |t_H| \|\vec{n}\| = |t_H|\sqrt{A^2 + B^2 + C^2}.)

Symmetrical Reflection Across a Plane

To find the reflection P1′P_1' of point P1P_1 across plane Π\Pi, simply step twice as far along the normal line:

P1′=P1+2tHn⃗P_1' = P_1 + 2t_H \vec{n}

4. Geometric Diagram: Distance Between Two Parallel Planes

When two planes are parallel, they never intersect, meaning the perpendicular distance between them is constant everywhere.

Plane_1: Ax + By + Cz + D_1 = 0 Plane_2: Ax + By + Cz + D_2 = 0 d = |D_1 - D_2| / ||n|| n = ⟨A, B, C⟩

The Parallel Planes Distance Formula

To compute the distance between two parallel planes:

  1. Match their normal coefficients: Ensure both equations are scaled so their A,B,CA, B, C coefficients are identical:
    Π1:Ax+By+Cz+D1=0,Π2:Ax+By+Cz+D2=0\Pi_1: Ax + By + Cz + D_1 = 0, \qquad \Pi_2: Ax + By + Cz + D_2 = 0
  2. The perpendicular distance is:
    d(Π1,Π2)=∣D1−D2∣A2+B2+C2d(\Pi_1, \Pi_2) = \frac{|D_1 - D_2|}{\sqrt{A^2 + B^2 + C^2}}

5. Step-by-Step Paper Notebook Method

Computing d(P1,Π)d(P_1, \Pi) on Paper

  1. Bring Plane to General Form: Ensure the equation is written with zero on the right side: Ax+By+Cz+D=0Ax + By + Cz + D = 0.
  2. Evaluate Numerator: Substitute the coordinates (x1,y1,z1)(x_1, y_1, z_1) directly into the left-hand expression:
    Value=Ax1+By1+Cz1+D\text{Value} = A x_1 + B y_1 + C z_1 + D
    Take the absolute value: ∣Value∣|\text{Value}|.
  3. Evaluate Denominator: Compute the norm of the normal vector:
    ∥n⃗∥=A2+B2+C2\|\vec{n}\| = \sqrt{A^2 + B^2 + C^2}
  4. Divide and Rationalize:
    d=∣Value∣A2+B2+C2d = \frac{|\text{Value}|}{\sqrt{A^2 + B^2 + C^2}}
    Multiply numerator and denominator by A2+B2+C2\sqrt{A^2 + B^2 + C^2} if necessary to rationalize the denominator.

6. Worked Examples

Example 1: Distance from a Point to a Plane

Problem: Find the distance from point P(2,−3,4)P(2, -3, 4) to the plane Π:2x−3y+6z−11=0\Pi: 2x - 3y + 6z - 11 = 0.

Solution

  • Step 1: Identify Parameters

    x1=2,y1=−3,z1=4x_1 = 2, \quad y_1 = -3, \quad z_1 = 4
    A=2,B=−3,C=6,D=−11A = 2, \quad B = -3, \quad C = 6, \quad D = -11
  • Step 2: Evaluate Numerator

    Ax1+By1+Cz1+D=2(2)+(−3)(−3)+6(4)−11=4+9+24−11=26\begin{aligned} A x_1 + B y_1 + C z_1 + D &= 2(2) + (-3)(-3) + 6(4) - 11 \\ &= 4 + 9 + 24 - 11 = 26 \end{aligned}

    Absolute value: ∣26∣=26|26| = 26.

  • Step 3: Evaluate Denominator

    A2+B2+C2=22+(−3)2+62=4+9+36=49=7\sqrt{A^2 + B^2 + C^2} = \sqrt{2^2 + (-3)^2 + 6^2} = \sqrt{4 + 9 + 36} = \sqrt{49} = 7
  • Step 4: Calculate Distance

    d=267 units≈3.714 unitsd = \frac{26}{7}\text{ units} \approx 3.714\text{ units}

Example 2: Finding the Foot of the Perpendicular and Reflection

Problem: Find the coordinates of the foot of the perpendicular HH from point P1(1,2,3)P_1(1, 2, 3) onto the plane Π:x+2y−2z+7=0\Pi: x + 2y - 2z + 7 = 0, and find its reflected point P1′P_1'.

Solution

  • Step 1: Normal Vector and Parametric Line The normal vector is n⃗=⟨1,2,−2⟩\vec{n} = \langle 1, 2, -2 \rangle. The line through P1(1,2,3)P_1(1, 2, 3) in direction n⃗\vec{n} is:

    x(t)=1+t,y(t)=2+2t,z(t)=3−2tx(t) = 1 + t, \qquad y(t) = 2 + 2t, \qquad z(t) = 3 - 2t
  • Step 2: Solve for Parameter tHt_H Substitute into the plane equation:

    (1+t)+2(2+2t)−2(3−2t)+7=01+t+4+4t−6+4t+7=09t+6=0  ⟹  9t=−6  ⟹  tH=−23\begin{aligned} (1 + t) + 2(2 + 2t) - 2(3 - 2t) + 7 &= 0 \\ 1 + t + 4 + 4t - 6 + 4t + 7 &= 0 \\ 9t + 6 &= 0 \implies 9t = -6 \implies t_H = -\frac{2}{3} \end{aligned}
  • Step 3: Coordinates of Foot HH

    xH=1+(−23)=13yH=2+2(−23)=2−43=23zH=3−2(−23)=3+43=133\begin{aligned} x_H &= 1 + \left(-\frac{2}{3}\right) = \frac{1}{3} \\ y_H &= 2 + 2\left(-\frac{2}{3}\right) = 2 - \frac{4}{3} = \frac{2}{3} \\ z_H &= 3 - 2\left(-\frac{2}{3}\right) = 3 + \frac{4}{3} = \frac{13}{3} \end{aligned}

    Thus:

    H=(13,  23,  133)H = \left( \frac{1}{3}, \; \frac{2}{3}, \; \frac{13}{3} \right)

    Check on plane: 13+2(23)−2(133)+7=1+4−26+213=03=0\frac{1}{3} + 2\left(\frac{2}{3}\right) - 2\left(\frac{13}{3}\right) + 7 = \frac{1 + 4 - 26 + 21}{3} = \frac{0}{3} = 0. Confirmed!

  • Step 4: Reflected Point P1′P_1' Use parameter 2tH=2(−23)=−432t_H = 2\left(-\frac{2}{3}\right) = -\frac{4}{3}:

    x′=1−43=−13y′=2+2(−43)=2−83=−23z′=3−2(−43)=3+83=173\begin{aligned} x' &= 1 - \frac{4}{3} = -\frac{1}{3} \\ y' &= 2 + 2\left(-\frac{4}{3}\right) = 2 - \frac{8}{3} = -\frac{2}{3} \\ z' &= 3 - 2\left(-\frac{4}{3}\right) = 3 + \frac{8}{3} = \frac{17}{3} \end{aligned}
    P1′=(−13,  −23,  173)P_1' = \left( -\frac{1}{3}, \; -\frac{2}{3}, \; \frac{17}{3} \right)

Example 3: Distance Between Parallel Planes with Rescaling

Problem: Find the distance between the two parallel planes:

Π1:2x−y+2z+4=0,Π2:4x−2y+4z−7=0\Pi_1: 2x - y + 2z + 4 = 0, \qquad \Pi_2: 4x - 2y + 4z - 7 = 0

Solution

  • Step 1: Match Coefficients of the Normal Vector Observe that the coefficients of Π2\Pi_2 (4,−2,44, -2, 4) are twice those of Π1\Pi_1 (2,−1,22, -1, 2). Divide Π2\Pi_2 by 22:

    2x−y+2z−72=02x - y + 2z - \frac{7}{2} = 0

    Now both planes share the exact same normal n⃗=⟨2,−1,2⟩\vec{n} = \langle 2, -1, 2 \rangle:

    D1=4,D2=−72D_1 = 4, \qquad D_2 = -\frac{7}{2}
  • Step 2: Evaluate Denominator

    ∥n⃗∥=22+(−1)2+22=4+1+4=9=3\|\vec{n}\| = \sqrt{2^2 + (-1)^2 + 2^2} = \sqrt{4 + 1 + 4} = \sqrt{9} = 3
  • Step 3: Calculate Separation Distance

    d=∣D1−D2∣∥n⃗∥=∣4−(−72)∣3=∣4+72∣3=1523=156=52=2.5 unitsd = \frac{|D_1 - D_2|}{\|\vec{n}\|} = \frac{\left| 4 - \left(-\frac{7}{2}\right) \right|}{3} = \frac{\left| 4 + \frac{7}{2} \right|}{3} = \frac{\frac{15}{2}}{3} = \frac{15}{6} = \frac{5}{2} = 2.5\text{ units}

7. Common Mistakes & Paper Traps

[!WARNING] Trap 1: Applying ∣D1−D2∣|D_1 - D_2| Without Matching Normal Vectors
In Example 3, computing ∣4−(−7)∣=11|4 - (-7)| = 11 directly without first dividing Π2\Pi_2 by 22 produces a completely false distance of 113\frac{11}{3}. You must scale the equations so that A1=A2,B1=B2,C1=C2A_1 = A_2, B_1 = B_2, C_1 = C_2 first!

[!WARNING] Trap 2: Forgetting to Move Constant DD to the Left Side
If an equation is written as 2x−y+2z=52x - y + 2z = 5, students often set D=5D = 5 instead of D=−5D = -5. Always put the equation into standard form Ax+By+Cz+D=0Ax + By + Cz + D = 0 before extracting DD.

[!WARNING] Trap 3: Omitting Absolute Value in the Numerator
Coordinates substituted into a plane equation frequently evaluate to a negative number. Distance is always a non-negative geometric quantity: d≥0d \ge 0. Never leave a negative sign in your final distance answer!


8. Pencil & Paper Practice

Try these problems on paper before checking the worked solutions below.

Practice Problems

  1. Determine the distance from the origin O(0,0,0)O(0, 0, 0) to the plane 3x−4y+12z=393x - 4y + 12z = 39.
  2. Find the radius of a sphere centered at C(1,−2,3)C(1, -2, 3) that is tangent to the plane 2x−2y+z+12=02x - 2y + z + 12 = 0.
  3. Compute the perpendicular distance between parallel planes x+2y−2z+1=0x + 2y - 2z + 1 = 0 and x+2y−2z−8=0x + 2y - 2z - 8 = 0.

Worked Solutions

Solution 1:

  • Standard form: 3x−4y+12z−39=03x - 4y + 12z - 39 = 0.
  • For origin (0,0,0)(0, 0, 0), Ax1+By1+Cz1=0Ax_1 + By_1 + Cz_1 = 0, so numerator is ∣−39∣=39|-39| = 39.
  • Denominator: 32+(−4)2+122=9+16+144=169=13\sqrt{3^2 + (-4)^2 + 12^2} = \sqrt{9 + 16 + 144} = \sqrt{169} = 13.
  • Distance:
    d=3913=3 unitsd = \frac{39}{13} = 3\text{ units}

Solution 2: A sphere is tangent to a plane if and only if its radius equals the perpendicular distance from its center to the plane:

R=d(C,Π)=∣2(1)−2(−2)+1(3)+12∣22+(−2)2+12=∣2+4+3+12∣4+4+1=219=213=7 unitsR = d(C, \Pi) = \frac{|2(1) - 2(-2) + 1(3) + 12|}{\sqrt{2^2 + (-2)^2 + 1^2}} = \frac{|2 + 4 + 3 + 12|}{\sqrt{4 + 4 + 1}} = \frac{21}{\sqrt{9}} = \frac{21}{3} = 7\text{ units}

Solution 3: Both planes have identical normal coefficients A=1,B=2,C=−2A = 1, B = 2, C = -2.

D1=1,D2=−8D_1 = 1, \qquad D_2 = -8
d=∣1−(−8)∣12+22+(−2)2=∣9∣1+4+4=99=93=3 unitsd = \frac{|1 - (-8)|}{\sqrt{1^2 + 2^2 + (-2)^2}} = \frac{|9|}{\sqrt{1 + 4 + 4}} = \frac{9}{\sqrt{9}} = \frac{9}{3} = 3\text{ units}

Test yourself

What is the distance from the point P(1,1,1)P(1, 1, 1) to the plane x+y+z−6=0x + y + z - 6 = 0?

  1. 3\sqrt{3}
  2. 33
  3. 33=3\frac{3}{\sqrt{3}} = \sqrt{3}
  4. 13\frac{1}{3}

What is the perpendicular distance between the parallel planes 2x+y−2z=42x + y - 2z = 4 and 2x+y−2z=−52x + y - 2z = -5?

  1. 11
  2. 33
  3. 13\frac{1}{3}
  4. 95\frac{9}{5}

If the distance from point (k,0,0)(k, 0, 0) to the plane 2x−2y+z+1=02x - 2y + z + 1 = 0 is 33, what are the possible values of kk?

  1. k=4k = 4 or k=−5k = -5
  2. k=5k = 5 or k=−4k = -4
  3. k=8k = 8 or k=−10k = -10
  4. k=2k = 2 or k=−3k = -3