Skip to main content
Home / Orthogonality / Distance Point Plane

Orthogonality

Orthogonal projections, bases, and distances

๐Ÿ’ก Need Help?

  • โ€ข Enter fractions like 1/2
  • โ€ข Use decimals like 0.5
  • โ€ข Click "Load Example" to try a preset
  • โ€ข Click any step to copy LaTeX
Calculating...

Distance Point Plane Calculator

The shortest distance from a point to a plane is measured along the normal vector. This calculator works in 3D space and shows the signed distance (indicating which side of the plane the point lies on).

Point P (x, y, z)

Plane Normal n (a, b, c)

Normal vector cannot be zero!

Plane Point A (xโ‚€, yโ‚€, zโ‚€)

Geometric Interpretation

The shortest distance from point P to plane ฮ  is measured along the normal vector n.

Distance = |nยท(P - A)| / โ€–nโ€–

Signed distance indicates which side of the plane the point lies on.

Enter fractions like 1/2 or decimals like 0.5. All inputs must be 3D vectors.

What is the Distance from a Point to a Plane?

The shortest distance from a point to a plane is the length of the perpendicular segment connecting the point to the plane. This is one of the most fundamental concepts in 3D geometry and vector calculus.

Definition: The distance from a point to a plane is the length of the perpendicular line segment from the point to the plane. It represents the minimum possible distance between the point and any point on the plane.

Think of it this way: If you drop a ball onto a flat surface, the shortest path to the surface is straight down (perpendicular). That's exactly what this distance measures!


The Formula

Given a plane defined by a point A(xโ‚€, yโ‚€, zโ‚€) on the plane and a normal vector n = (a, b, c), the distance from point P(xโ‚, yโ‚, zโ‚) to the plane is:

$$ \boxed{d = \frac{|\vec{n} \cdot (\vec{P} - \vec{A})|}{\|\vec{n}\|}} $$

In coordinate form, if the plane is given as ax + by + cz + d = 0:

$$ \boxed{d = \frac{|ax_1 + by_1 + cz_1 + d|}{\sqrt{a^2 + b^2 + c^2}}} $$

Where:

  • n = (a, b, c) - Normal vector to the plane (perpendicular direction)
  • A - Any point on the plane
  • P - The point we're measuring from
  • โ€–nโ€– - Length (magnitude) of the normal vector
  • d - The constant term in plane equation (not to confuse with distance)

๐Ÿ’ก Key Insight: The numerator measures how far the point is from the plane along the normal direction. The denominator normalizes this distance.


Step-by-Step Calculation

Method 1: Using Plane Equation (ax + by + cz + d = 0)

Step 1: Write the plane in standard form

$$ax + by + cz + d = 0$$

Step 2: Identify coefficients

$$a, b, c, d$$

Step 3: Plug point P(xโ‚, yโ‚, zโ‚) into numerator

$$|axโ‚ + byโ‚ + czโ‚ + d|$$

Step 4: Compute denominator (norm of normal)

$$\sqrt{a^2 + b^2 + c^2}$$

Step 5: Divide to get distance

$$d = \frac{|axโ‚ + byโ‚ + czโ‚ + d|}{\sqrt{a^2 + b^2 + c^2}}$$

Method 2: Using a Point on the Plane and Normal Vector

Step 1: Find vector from point A on plane to point P

$$\vec{AP} = \vec{P} - \vec{A}$$

Step 2: Project this vector onto the normal direction

$$\text{projection} = |\vec{n} \cdot \vec{AP}|$$

Step 3: Divide by magnitude of normal

$$d = \frac{|\vec{n} \cdot \vec{AP}|}{\|\vec{n}\|}$$

Signed Distance: Which Side of the Plane?

The signed distance tells you which side of the plane the point lies on:

$$ d_{\text{signed}} = \frac{ax_1 + by_1 + cz_1 + d}{\sqrt{a^2 + b^2 + c^2}} $$

โœ“ Positive distance

Point is on the side where the normal vector points

โœ— Negative distance

Point is on the opposite side of the normal vector

๐Ÿ’ก Important: Absolute distance is always non-negative. Signed distance is useful when you need to know which side of the plane the point is on.

Example: For a plane with normal pointing upward:

  • Points above the plane โ†’ Positive signed distance
  • Points on the plane โ†’ Zero distance
  • Points below the plane โ†’ Negative signed distance

Finding the Closest Point on the Plane

When you drop a perpendicular from point P to the plane, you get the closest point Q on the plane. This point is the foot of the perpendicular.

$$ \vec{Q} = \vec{P} - \frac{\vec{n} \cdot (\vec{P} - \vec{A})}{\|\vec{n}\|^2} \cdot \vec{n} $$

In coordinate form:

$$ \begin{aligned} x_Q &= x_1 - \frac{ax_1 + by_1 + cz_1 + d}{a^2 + b^2 + c^2} \cdot a \\\\ y_Q &= y_1 - \frac{ax_1 + by_1 + cz_1 + d}{a^2 + b^2 + c^2} \cdot b \\\\ z_Q &= z_1 - \frac{ax_1 + by_1 + cz_1 + d}{a^2 + b^2 + c^2} \cdot c \end{aligned} $$

๐Ÿ’ก Why this matters: The closest point is often more useful than just the distance. It gives you the actual projection of the point onto the plane.


Complete Examples

Example 1: Simple Plane (z = 0)

Plane: z = 0 (the xy-plane)

Point: P(2, 3, 5)

Step 1: Write plane in standard form

$$0x + 0y + 1z + 0 = 0 \implies a=0, b=0, c=1, d=0$$

Step 2: Plug point into numerator

$$|0(2) + 0(3) + 1(5) + 0| = |5| = 5$$

Step 3: Compute denominator

$$\sqrt{0^2 + 0^2 + 1^2} = 1$$

Step 4: Distance

$$d = \frac{5}{1} = 5$$
Answer: The point is 5 units above the xy-plane.

Example 2: Tilted Plane

Plane: 2x + 3y + 6z = 12

Point: P(1, 2, 3)

Step 1: Write in standard form

$$2x + 3y + 6z - 12 = 0 \implies a=2, b=3, c=6, d=-12$$

Step 2: Plug point into numerator

$$|2(1) + 3(2) + 6(3) - 12| = |2 + 6 + 18 - 12| = |14| = 14$$

Step 3: Compute denominator

$$\sqrt{2^2 + 3^2 + 6^2} = \sqrt{4 + 9 + 36} = \sqrt{49} = 7$$

Step 4: Distance

$$d = \frac{14}{7} = 2$$
Answer: The point is 2 units from the plane.

Example 3: Point on the Plane

Plane: x + 2y + 3z = 14

Point: P(1, 2, 3)

Step 1: Check if point satisfies plane equation

$$1 + 2(2) + 3(3) = 1 + 4 + 9 = 14 \quad \text{โœ“}$$

Step 2: Distance

$$d = 0$$
Answer: The point lies on the plane, so distance = 0.

Example 4: Finding the Closest Point

Plane: x + y + z = 6

Point: P(4, 4, 4)

Step 1: Identify components

$$a=1, b=1, c=1, d=-6, P(4,4,4)$$

Step 2: Compute numerator (signed)

$$4 + 4 + 4 - 6 = 6$$

Step 3: Denominator squared

$$a^2 + b^2 + c^2 = 1 + 1 + 1 = 3$$

Step 4: Distance

$$d = \frac{6}{\sqrt{3}} = 2\sqrt{3} \approx 3.464$$

Step 5: Closest point Q

$$ \begin{aligned} x_Q &= 4 - \frac{6}{3} \cdot 1 = 4 - 2 = 2 \\\\ y_Q &= 4 - \frac{6}{3} \cdot 1 = 4 - 2 = 2 \\\\ z_Q &= 4 - \frac{6}{3} \cdot 1 = 4 - 2 = 2 \end{aligned} $$
Answer: Q(2, 2, 2) is the closest point on the plane.

Real-World Applications

๐ŸŽฎ Computer Graphics & Gaming

  • Collision Detection: Determine if objects are intersecting
  • Ray-Plane Intersection: Shadows, reflections, and line-of-sight
  • Camera Clipping: Which objects are visible?
  • Terrain Following: Place characters on ground surfaces

๐Ÿ—๏ธ Engineering & Architecture

  • Structural Analysis: Distance between structural elements
  • Clearance Checking: Ensure adequate space between components
  • Surface Quality: Measure deviation from design plane
  • 3D Modeling: Align objects to reference planes

๐Ÿ“ Mathematics & Physics

  • Linear Regression Planes: Best-fit surfaces for 3D data
  • Support Vector Machines (SVMs): Distance to separating hyperplane
  • Quantum Mechanics: Particle position relative to potential barriers

๐Ÿค– Robotics & Automation

  • Path Planning: Keep robots at safe distances from obstacles
  • Calibration: Measure tool alignment to reference planes
  • Sensors: Interpret LiDAR or depth camera data

Special Cases to Remember

Case Condition Result
Point on plane Point satisfies plane equation Distance = 0
Normal zero vector a = b = c = 0 Not a valid plane!
Degenerate plane All coefficients zero, d โ‰  0 No points satisfy (impossible equation)

Important Properties

  • The distance is always non-negative (absolute value)
  • The closest point is unique for any point not on the plane
  • The line connecting P to Q is perpendicular to the plane
  • Distance formula works for any plane orientation (horizontal, vertical, tilted)

Frequently Asked Questions

Q: What is the difference between distance to a plane and distance to a line?

A: Distance to a line is the perpendicular distance to an infinitely long line. Distance to a plane is the perpendicular distance to a flat 2D surface. They use different formulas: plane uses the normal vector, line uses direction vector.

Q: Can the distance be negative?

A: Absolute distance is always non-negative. However, signed distance can be negative to indicate which side of the plane the point lies on.

Q: What if the point lies exactly on the plane?

A: The distance is zero. The point is the closest point to itself!

Q: Does the formula work for vertical planes?

A: Yes! The formula works for planes of any orientation (horizontal, vertical, or tilted).

Q: What is the normal vector and why is it important?

A: The normal vector is perpendicular to the plane. It defines the "direction" of the plane and is essential for computing distances and projections.


Practice Problems

Beginner

  1. Find distance from P(0, 0, 0) to plane z = 10
  2. Find distance from P(3, 4, 0) to plane z = 0
  3. Is P(2, 2, 2) on plane x + y + z = 6?

Intermediate

  1. Find distance from P(1, 0, 0) to plane 2x + 2y + z = 4
  2. Find the signed distance and state which side of the plane P(0, 0, 5) is on for plane z = 2
  3. Find the closest point on plane 2x + y + 2z = 9 to P(3, 1, 2)

Advanced

  1. Two parallel planes: 2x + 3y + 6z = 12 and 2x + 3y + 6z = 24. What's the distance between them?
  2. A plane passes through points A(1,0,0), B(0,1,0), C(0,0,1). Find distance from origin to this plane.
Click to reveal solutions

1. d = 10 (point is directly below the plane)

2. d = 0 (point is on the xy-plane)

3. Yes, because 2 + 2 + 2 = 6

4. d = 2/3 โ‰ˆ 0.667

5. Signed distance = +3 (point is above the plane)

6. Q(3, 1, 2) (the point is already on the plane!) Actually 2(3)+1+2(2)=11โ‰ 9. Recalculate: Q = (1, -1, 3)

7. Distance = 12/7 โ‰ˆ 1.714

8. Distance = 1/โˆš3 โ‰ˆ 0.577



Summary

๐ŸŽฏ Key Takeaways

  • Formula: d = |axโ‚ + byโ‚ + czโ‚ + d| / โˆš(aยฒ + bยฒ + cยฒ)
  • Distance is always non-negative (absolute value)
  • Signed distance tells you which side of the plane the point is on
  • Closest point is the perpendicular projection onto the plane
  • Works for any plane orientation and any point in โ„ยณ
  • Essential for computer graphics, engineering, and physics

Try It Yourself!

Use the calculator above to find distances from points to planes:

  1. Enter the plane (point on plane + normal vector, or coefficients)
  2. Enter the point coordinates (x, y, z)
  3. Click "Calculate" to see:
    • The distance from point to plane
    • Signed distance (which side of the plane)
    • The closest point on the plane
    • Step-by-step verification

Try these examples:

  • Horizontal plane: plane z=0, point (1,2,5) โ†’ distance 5
  • Vertical plane: plane x=0, point (3,1,1) โ†’ distance 3
  • Point on plane: plane x+y+z=6, point (2,2,2) โ†’ distance 0
  • Tilted plane: plane 2x+3y+6z=12, point (1,2,3) โ†’ distance 2

๐Ÿ’ก Pro Tip: For vertical or horizontal planes, you can often find the distance by just looking at one coordinate! But the formula works for every case.