Distance From Point to Plane Calculator
This calculator finds the shortest distance between a point and a flat plane in three-dimensional space, useful in geometry, engineering, CAD, computer graphics and physics whenever you need to know how far something sits from a reference surface. Enter your point's coordinates (x0, y0, z0) and the four coefficients of the plane equation in the standard form ax + by + cz + d = 0, or pick a quick preset to see a worked example instantly. The tool substitutes your point into the plane equation, takes the absolute value as the numerator, and divides it by the magnitude of the plane's normal vector (a, b, c) as the denominator, giving you the perpendicular distance (D) in whatever units you are working in. Alongside the headline distance, you get the numerator and denominator shown separately, plus a full working breakdown covering the substitution, the sum before the absolute value, the normal vector magnitude and the final division, so you can check every step. A verdict message confirms whether the point lies exactly on the plane, showing a distance of zero, or states the distance along the perpendicular. Because this is a fixed geometric formula, the result is exact for the numbers you enter, so make sure your plane equation is in the correct ax + by + cz + d = 0 form before reading off the answer.
1. Point Coordinates
2. Plane Equation: ax + by + cz + d = 0
Full Working
How to Calculate the Distance From a Point to a Plane
In 3D geometry, a plane can be described by the equation ax + by + cz + d = 0, where (a, b, c) is the normal vector to the plane (a vector perpendicular to its surface) and d is a constant. Given a point P at (x0, y0, z0), the shortest distance from that point to the plane is always measured along the perpendicular, and is given by the formula:
D = |a·x0 + b·y0 + c·z0 + d| / √(a² + b² + c²)
The numerator substitutes the point's coordinates into the left-hand side of the plane equation and takes the absolute value, since distance cannot be negative. The denominator is the magnitude (length) of the plane's normal vector. Dividing the two gives the true perpendicular distance, regardless of which side of the plane the point sits on.
Worked Example
Take the point P(1, 2, 3) and the plane x + y + z - 6 = 0, so a = 1, b = 1, c = 1, d = -6.
| Step | Calculation | Result |
|---|---|---|
| Substitute point into plane equation | (1)(1) + (1)(2) + (1)(3) + (-6) | 0 |
| Take absolute value | |0| | 0 |
| Normal vector magnitude | √(1² + 1² + 1²) | √3 ≈ 1.7321 |
| Distance | 0 / 1.7321 | 0 |
The result is 0, which makes sense because (1, 2, 3) satisfies x + y + z - 6 = 0 exactly (1 + 2 + 3 - 6 = 0), meaning the point lies directly on the plane.
Where This Formula Is Used
- Engineering and CAD: checking clearances between a component and a flat surface or datum plane.
- Computer graphics and games: collision detection between objects and flat surfaces such as floors or walls.
- Surveying and construction: checking how far a survey point deviates from a designed level or reference plane.
- Physics and robotics: calculating clearance or offset from a sensor or reference plane in 3D space.
- Maths and engineering study: a standard analytic geometry problem taught alongside vectors, dot products and cross products.
Getting the Plane Equation From Three Points
If you only know three points that lie on the plane rather than the equation itself, you can derive a, b, c and d first. Form two vectors by subtracting one point from the other two, then take their cross product to get the normal vector (a, b, c). Substitute any one of the three points into ax + by + cz + d = 0 and solve for d. Once you have all four coefficients, use this calculator to find the distance from any other point to that plane.
Frequently Asked Questions
What is the formula for distance from a point to a plane? D = |ax0 + by0 + cz0 + d| / sqrt(a² + b² + c²), where (x0, y0, z0) is the point and ax + by + cz + d = 0 is the plane equation.
What if the point lies on the plane? The distance is 0, because substituting the point's coordinates into the plane equation gives exactly zero.
How do I find a, b, c and d from three points on the plane? Use the cross product of two vectors formed from the three points to get the normal vector (a, b, c), then substitute one point into the plane equation to solve for d.
Related Calculators
- Essential Calculators: browse the full collection of everyday and maths tools.
- Distance Formula Calculator: distance between two points in 2D or 3D space.
- Vector Calculator: add, subtract and find the magnitude of vectors.
- Vector Projection Calculator: project one vector onto another.
- Angle Between Two Vectors Calculator: find the angle separating two vectors.
Sources: Standard analytic geometry formula for the perpendicular distance from a point to a plane, as presented in university-level vector calculus and coordinate geometry references.
This calculator provides a mathematical result based on the coordinates and plane equation you enter. Double-check your plane equation is in the standard form ax + by + cz + d = 0 before entering coefficients.