This calculator finds the shortest (perpendicular) distance from a point in three-dimensional space to a plane given in the standard form
Ax + By + Cz + D = 0. It is useful for 3D geometry homework, physics problems, engineering design checks, and computer graphics or robotics tasks.
On this page you will find the point-to-plane distance formula, a step-by-step numerical example, guidance on how to interpret the result, and a short list of assumptions and limitations for the calculator.
Consider a point
in 3D space and a plane with equation
Ax + By + Cz + D = 0, where A, B, and C are the components of the plane’s normal vector.
The perpendicular distance from the point to the plane is given by:
In a more compact text-only form, the same formula is:
d = |A·x₀ + B·y₀ + C·z₀ + D| / √(A² + B² + C²)
Here:
(x₀, y₀, z₀) are the coordinates of the point.A, B, C, D are the coefficients in the plane equation.(A, B, C).
The plane Ax + By + Cz + D = 0 has a normal vector n = (A, B, C), which is perpendicular to every direction lying inside the plane. To measure how far a point is from the plane, you only care about separation along this normal direction.
If you substitute the point into the plane equation, you obtain the value:
S = A·x₀ + B·y₀ + C·z₀ + D
This quantity tells you how far the point is from satisfying the plane equation. Dividing S by the length of the normal vector ‖n‖ = √(A² + B² + C²) converts that raw value into an actual geometric distance. Taking the absolute value removes the sign and leaves only the magnitude (the shortest distance), which is what this calculator returns.
After entering the point coordinates and plane coefficients into the calculator, the result is a single non-negative number representing the perpendicular distance from the point to the plane.
The calculator does not show whether the point is on a particular side of the plane. That information is contained in the sign of
A·x₀ + B·y₀ + C·z₀ + D, but the distance uses the absolute value and therefore discards the sign.
Units are preserved: if you enter coordinates and plane parameters in meters, the resulting distance is in meters; if you use centimeters, the result is in centimeters, and so on.
Suppose you want the distance from the point (1, 2, 3) to the plane
2x − y + 2z − 4 = 0.
Identify the coefficients and point coordinates:
A = 2B = −1C = 2D = −4x₀ = 1, y₀ = 2, z₀ = 3
Compute the numerator |A·x₀ + B·y₀ + C·z₀ + D|:
A·x₀ + B·y₀ + C·z₀ + D = 2·1 + (−1)·2 + 2·3 + (−4)
Step by step:
2·1 = 2(−1)·2 = −22·3 = 62 − 2 + 6 − 4 = 2
Therefore the numerator is |2| = 2.
Compute the denominator √(A² + B² + C²):
A² + B² + C² = 2² + (−1)² + 2² = 4 + 1 + 4 = 9
So the denominator is √9 = 3.
Divide numerator by denominator:
d = 2 / 3 ≈ 0.6667
The perpendicular distance from the point (1, 2, 3) to the plane 2x − y + 2z − 4 = 0 is therefore 2/3 units, or about 0.67 in decimal form.
You can reproduce this example in the calculator by entering:
The same distance formula behaves in a straightforward way in several important special cases. The table below compares some typical setups and what the distance formula reduces to.
| Scenario | Plane equation | Simplified distance | Notes |
|---|---|---|---|
| General plane in 3D | Ax + By + Cz + D = 0 |
|A·x₀ + B·y₀ + C·z₀ + D| / √(A² + B² + C²) |
Most common case; works for any non-zero normal vector (A, B, C). |
| Horizontal plane | z − k = 0 (so A = 0, B = 0, C = 1, D = −k) |
|z₀ − k| |
The distance is just the vertical separation between the point and the height k. |
| Vertical plane parallel to yz-plane | x − a = 0 |
|x₀ − a| |
The distance is the horizontal difference in the x-direction. |
| Point on the plane | Any plane | 0 |
If A·x₀ + B·y₀ + C·z₀ + D = 0, the point lies exactly on the plane, so the distance is zero. |
This calculator focuses on the perpendicular distance from a point to a plane. To interpret its output correctly, keep the following assumptions and limitations in mind.
A, B, and C are not all zero at the same time. If A = B = C = 0, the expression Ax + By + Cz + D = 0 does not define a plane, and the distance formula breaks down.The underlying distance formula is standard in analytic geometry and multivariable calculus texts, where it is usually derived using vector projections onto the plane’s normal vector. Many textbooks on linear algebra and vector calculus present essentially the same expression for the distance from a point to a plane.