Distance from a Point to a Plane (3D) Calculator
This Distance from a Point to a Plane (3D) Calculator measures the shortest gap between a point and a plane, and shows the working line by line. Substituting the point into the plane equation measures how far off it is, and dividing by the length of the normal turns that into a real distance. The absolute value is taken because a side of the plane is not a direction. Following the same pattern every time keeps the numerator and the normal apart.
Enter the point \((x_{0}, y_{0}, z_{0})\) and \(a\), \(b\), \(c\), \(d\) from \(ax + by + cz = d\).
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the point and the plane into the formula.
- Work out the numerator.
- Work out the denominator.
- Work out the distance.
Formula: Point to Plane Distance Formula
This formula gives the shortest distance from a point to a plane. Substitute the point into the plane, take the absolute value and divide by the length of the normal.
Useful Tips to Remember
The shortest distance is always measured along the normal, at right angles to the plane. The absolute value makes the distance positive whichever side the point is on. A distance of 0 means the point lies on the plane. Write the plane as \(ax + by + cz = d\) first, so the d in the formula has the right sign.
Required knowledge
- How to find the length of the normal, covered in the Magnitude of a Vector Calculator.
- How to multiply negative numbers, covered in the Multiplication of Small Numbers Calculator.
- How to simplify a square root, covered in the Simplifying Radicals Calculator.
Where Is the Distance from a Point to a Plane Used?
The distance from a point to a plane measures how far something is from a flat surface, which is needed in engineering, graphics and data science. Game engines and physics engines use it to detect when an object hits a wall or the floor. Engineers check clearances between parts and flat panels in CAD. In machine learning, support vector machines measure how far data points are from a separating plane, and 3D scanners use it to find how flat a surface is.
- Collision checks against walls and floors
- Clearances between parts in CAD
- Margins in support vector machines
- Measuring flatness from 3D scans
- Height of a point above a sloped surface
Distance from a Point to a Plane Practice Problems
Example 1 finds the distance from \((1, 2, 3)\) to \(2x - 3y + 4z = 10\), and Example 2 finds the distance from the origin to \(x + y + z = 6\). Substitute the point, divide by the length of the normal and compare. For two more free worked examples, check out the Distance from a Point to a Plane (3D) Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the point and the plane into the formula.
- Work out the numerator.
- Work out the denominator.
- Work out the distance.
Formula
Formula: Point to Plane Distance Formula
This formula gives the shortest distance from a point to a plane. Substitute the point into the plane, take the absolute value and divide by the length of the normal.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the distance from \(P = \left(1,\; 2,\; 3\right)\) to the plane \(2x - 3y + 4z = 10\).
Step 2
Step 2 - Write the formula.
In this problem: The shortest distance runs along the normal. Putting the point into the plane equation measures how far it is from satisfying it, and dividing by the length of the normal turns that into a distance.
Step 3
Step 3 - Substitute the point and the plane into the formula.
In this problem: Replacing the coefficients and the point in \(D = \frac{\left|a x_{0} + b y_{0} + c z_{0} - d\right|}{\sqrt{a^{2} + b^{2} + c^{2}}}\) gives \(D = \frac{\left|2 \times 1 + \left(-3\right) \times 2 + 4 \times 3 - 10\right|}{\sqrt{2^{2} + \left(-3\right)^{2} + 4^{2}}}\).
Step 4
Step 4 - Work out the numerator.
In this problem: Multiplying gives \(2 \times 1 = 2\), \(\left(-3\right) \times 2 = -6\) and \(4 \times 3 = 12\). Adding them and taking away d gives \(2 - 6 + 12 - 10 = -2\), and its absolute value is \(2\).
Step 5
Step 5 - Work out the denominator.
In this problem: The denominator is the magnitude of the normal \(\vec{n} = \left\langle 2,\; -3,\; 4 \right\rangle\), covered in the Magnitude of a Vector Calculator. Squaring the components gives \(2^{2} = 4\), \(\left(-3\right)^{2} = 9\) and \(4^{2} = 16\). Adding the squares gives \(4 + 9 + 16 = 29\). Taking the square root gives \(\sqrt{29} \approx 5.39\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{n} = \left\langle 2,\; -3,\; 4 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{n}| = \sqrt{2^{2} + \left(-3\right)^{2} + 4^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(2^{2} = 4\), \(\left(-3\right)^{2} = 9\) and \(4^{2} = 16\). Adding the squares gives \(4 + 9 + 16 = 29\). Taking the square root gives \(\sqrt{29} \approx 5.39\).
Final Answer
Step 6
Step 6 - Work out the distance.
In this problem: Dividing the numerator by the denominator gives \(D = \frac{2}{\sqrt{29}} = \frac{2 \sqrt{29}}{29} \approx 0.37\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the point and the plane into the formula.
- Work out the numerator.
- Work out the denominator.
- Work out the distance.
Formula
Formula: Point to Plane Distance Formula
This formula gives the shortest distance from a point to a plane. Substitute the point into the plane, take the absolute value and divide by the length of the normal.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the distance from \(P = \left(0,\; 0,\; 0\right)\) to the plane \(x + y + z = 6\).
Step 2
Step 2 - Write the formula.
In this problem: The shortest distance runs along the normal. Putting the point into the plane equation measures how far it is from satisfying it, and dividing by the length of the normal turns that into a distance.
Step 3
Step 3 - Substitute the point and the plane into the formula.
In this problem: Replacing the coefficients and the point in \(D = \frac{\left|a x_{0} + b y_{0} + c z_{0} - d\right|}{\sqrt{a^{2} + b^{2} + c^{2}}}\) gives \(D = \frac{\left|1 \times 0 + 1 \times 0 + 1 \times 0 - 6\right|}{\sqrt{1^{2} + 1^{2} + 1^{2}}}\).
Step 4
Step 4 - Work out the numerator.
In this problem: Multiplying gives \(1 \times 0 = 0\), \(1 \times 0 = 0\) and \(1 \times 0 = 0\). Adding them and taking away d gives \(0 + 0 + 0 - 6 = -6\), and its absolute value is \(6\).
Step 5
Step 5 - Work out the denominator.
In this problem: The denominator is the magnitude of the normal \(\vec{n} = \left\langle 1,\; 1,\; 1 \right\rangle\), covered in the Magnitude of a Vector Calculator. Squaring the components gives \(1^{2} = 1\), \(1^{2} = 1\) and \(1^{2} = 1\). Adding the squares gives \(1 + 1 + 1 = 3\). Taking the square root gives \(\sqrt{3} \approx 1.73\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{n} = \left\langle 1,\; 1,\; 1 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{n}| = \sqrt{1^{2} + 1^{2} + 1^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(1^{2} = 1\), \(1^{2} = 1\) and \(1^{2} = 1\). Adding the squares gives \(1 + 1 + 1 = 3\). Taking the square root gives \(\sqrt{3} \approx 1.73\).
Final Answer
Step 6
Step 6 - Work out the distance.
In this problem: Dividing the numerator by the denominator gives \(D = \frac{6}{\sqrt{3}} = 2 \sqrt{3} \approx 3.46\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Distance from a Point to a Plane (3D) Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Distance from a Point to a Plane (3D) Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.