Distance from a Point to a Plane (3D) Notes
These Distance from a Point to a Plane (3D) Notes explain how to measure the shortest gap between a point and a plane, with the working shown 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\). Examples 3 and 4 give you two more problems of the same kind to try. Substitute the point, divide by the length of the normal and compare.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them 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
See Example 3 Hide Example 3
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(2,\; 1,\; -1\right)\) to the plane \(x + 2y + 2z = 3\).
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 2 + 2 \times 1 + 2 \times \left(-1\right) - 3\right|}{\sqrt{1^{2} + 2^{2} + 2^{2}}}\).
Step 4
Step 4 - Work out the numerator.
In this problem: Multiplying gives \(1 \times 2 = 2\), \(2 \times 1 = 2\) and \(2 \times \left(-1\right) = -2\). Adding them and taking away d gives \(2 + 2 - 2 - 3 = -1\), and its absolute value is \(1\).
Step 5
Step 5 - Work out the denominator.
In this problem: The denominator is the magnitude of the normal \(\vec{n} = \left\langle 1,\; 2,\; 2 \right\rangle\), covered in the Magnitude of a Vector Calculator. Squaring the components gives \(1^{2} = 1\), \(2^{2} = 4\) and \(2^{2} = 4\). Adding the squares gives \(1 + 4 + 4 = 9\). Taking the square root gives \(\sqrt{9} = 3\).
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,\; 2,\; 2 \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} + 2^{2} + 2^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(1^{2} = 1\), \(2^{2} = 4\) and \(2^{2} = 4\). Adding the squares gives \(1 + 4 + 4 = 9\). Taking the square root gives \(\sqrt{9} = 3\).
Final Answer
Step 6
Step 6 - Work out the distance.
In this problem: Dividing the numerator by the denominator gives \(D = \frac{1}{3}\).
Final Answer
See Example 4 Hide Example 4
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(3,\; 0,\; 4\right)\) to the plane \(2x - y + 2z = 5\).
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 3 + \left(-1\right) \times 0 + 2 \times 4 - 5\right|}{\sqrt{2^{2} + \left(-1\right)^{2} + 2^{2}}}\).
Step 4
Step 4 - Work out the numerator.
In this problem: Multiplying gives \(2 \times 3 = 6\), \(\left(-1\right) \times 0 = 0\) and \(2 \times 4 = 8\). Adding them and taking away d gives \(6 + 0 + 8 - 5 = 9\), and its absolute value is \(9\).
Step 5
Step 5 - Work out the denominator.
In this problem: The denominator is the magnitude of the normal \(\vec{n} = \left\langle 2,\; -1,\; 2 \right\rangle\), covered in the Magnitude of a Vector Calculator. Squaring the components gives \(2^{2} = 4\), \(\left(-1\right)^{2} = 1\) and \(2^{2} = 4\). Adding the squares gives \(4 + 1 + 4 = 9\). Taking the square root gives \(\sqrt{9} = 3\).
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,\; -1,\; 2 \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(-1\right)^{2} + 2^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(2^{2} = 4\), \(\left(-1\right)^{2} = 1\) and \(2^{2} = 4\). Adding the squares gives \(4 + 1 + 4 = 9\). Taking the square root gives \(\sqrt{9} = 3\).
Final Answer
Step 6
Step 6 - Work out the distance.
In this problem: Dividing the numerator by the denominator gives \(D = \frac{9}{3} = 3\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Distance from a Point to a Plane (3D) Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. 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.