Distance between Point and Line
The distance between a point and a line is the shortest distance between and ; it is the minimum length required to move from point to a point on . In fact, this path of minimum length can be shown to be a line segment perpendicular to .
The distance can then be defined as the length of the line segment that has as an endpoint and is perpendicular to .
Definition
For a point and a line (or in the third dimension, a plane), you could technically draw an infinite number of lines between the point and line or point and plane. So, which one gives you the "correct" distance between the point/line or point/plane? When we say distance, we mean the shortest possible distance from the point to the line/plane, which happens to be when the distance line through the point is also perpendicular to the line/plane.
But why is the shortest line segment perpendicular?
This is because the longest side in a right triangle is the hypotenuse. If we draw the foot of the perpendicular from the point to the line, and draw any other segment joining the point to the line, this segment will always be the hypotenuse of the right triangle formed.
What is the distance between point and line in the diagram?
![]()
The length of each line segment connecting the point and the line differs, but by definition the distance between point and line is the length of the line segment that is perpendicular to . In other words, it is the shortest distance between them, and hence the answer is .
What is the distance between point and line in the diagram?
Formula
The distance between point and line is
Let's have a generic line named . This line has slope . Let's also have a generic point . The distance between line and point can be represented by another line perpendicular to let's call it . will have slope since it's perpendicular to . Now, to find the distance between point and line we can use a little geometry trick and have another line, parallel to , that passes through ; let's call it . Likewise, we can have another line, this time parallel to , that passes through the origin ; let's call it .
Now that drawing time's over, it's time to work.
First off, since passes through and has the same slope as , its equation is
Line has equation
So, line intersects with line when
Substituting back into 's equation, we find that the intersection point between and is
Now let's put that aside for a moment and look when lines and intersect. This occurs when both and are true. Solving this system of two equations for ,
Using to solve for ,
So the point of intersection of and is
Now, using the distance formula we can tell the distance between and :
The absolute value sign is necessary as the distance must be a positive value.
Here, we present a geometric proof.
![]()
First, we draw a line parallel to that passes through , which has the equation . Then, we construct a right triangle which has height . Both legs of the right triangle can be obtained by the differences between the interception of - and -axes of the two lines. The hypotenuse, by the Pythagorean theorem, is
Finally, by the area of triangle,
Vectorial Approach
Consider a line given by the points and the point . Then, the distance of the line from the point is
where
Consider the foot of the perpendicular on the line from . Let us call this . We want to get the value of . By definition, this is the distance from the point to the line.
Since lies on the line, it satisfies for some . Since it is perpendicular to the line, we have
The nice thing about this approach is that it is going to work for any number of dimensions.
Example Problems
Find the distance between the point and the line .
We have
Given and
Find the distance between the lines and .
Notice that these two lines are parallel (same slope), so we can just choose a point on one of the lines, and then apply the formula.
But wait, wouldn't you get a different result if you try different points? Let's try two different points on the line .
If and , then applying the formula, we get
If and , then applying the formula, we get
For the reader...
- How do you prove that any point on can be used in the above formula and still get the same distance between and
- Also, how do you prove that you'll still get the same distance if you use any point on and the line
Find the distance between the point and the plane .
The formula for this one is an extension of the formula used for finding distance between line and point:
Using the information we have,
Find the distance between the lines and .
Find the distance between the line and the plane .
Applications
Find the equation of the angle bisectors between the two distinct lines
Notice that there are two angle bisectors between a pair of lines--one bisects the acute angle, and the other bisects the obtuse angle between the lines (if the lines are perpendicular, then there are two right angles formed, anyways).
One of the properties of the angle bisector of two lines is that every point on it is equidistant from both lines.
This can be proved by dropping the perpendiculars on the two lines from the point and using congruence of the resulting triangles.If is a point on the angle bisector, we can equate the distances to the lines as
Removing the absolute value signs,
Now, shift like terms on either side, to make the resulting equation of this form:
Here,
So, the equation of the angle bisectors will then be
The tells us that there are two possible values of hence two angle bisectors, as we discussed above.
Circle is centered at the point of origin with point lying on it. The red line intersects the circle at points and as shown.
What is the area of quadrilateral