Geometry · Grades 10, 11
The Distance from a Point to a Line
Quick answer
The distance from a point to a line is the length of the shortest path, which meets the line at a right angle. For the line ax + by + c = 0 and the point (x₀, y₀), it is |ax₀ + by₀ + c| / √(a² + b²). So the point (1, 2) is |3 + 8 − 1| / 5 = 2 units from 3x + 4y − 1 = 0. The same formula gives the distance between two parallel lines, and the height of a triangle drawn on a grid.
What you'll learn
- Explain why the shortest distance is perpendicular
- Write a line in the form ax + by + c = 0
- Apply the point-to-line distance formula
- Find the distance between parallel lines
The shortest path is perpendicular
From a point to a line there are many paths, but the shortest one meets the line at a right angle. Its length is the distance from the point to the line. For a line written as and a point :
- 3x + 4y − 1 = 0
Why any other path is longer
Drop the perpendicular from the point to the line, meeting it at . Any other point on the line makes a right triangle with the right angle at . The path is the hypotenuse of that triangle, and a hypotenuse is always longer than a leg, so is the shortest. The formula computes : the vector points straight across the line, and the expression measures how far is from the line in that direction, in units of .
Worked examples
Common mistakes
Practice problems
-
Find the distance from to the -axis.
Answer
Full solution
The -axis is , so .
-
Find the distance from to .
Answer
Full solution
.
-
Find the distance from to .
Answer
Full solution
.
-
Find the distance from to .
Answer
Full solution
.
-
Find the distance between and .
Answer
Full solution
As and : .
-
Find the distance from to the line .
Answer
Full solution
gives .
-
A triangle has vertices , and . Use the distance from to the base to find its area.
Answer
Full solution
The base lies on , so the height is and the area is .
-
A student finds the distance from to as , the vertical distance. What is the true distance?
Answer
Full solution
The vertical path is not perpendicular to the line. The formula gives .
Frequently asked questions
What is the distance from a point to a line?
The length of the shortest segment from the point to the line. That segment is perpendicular to the line.
What is the formula?
For the line ax + by + c = 0 and the point (x₀, y₀): d = |ax₀ + by₀ + c| / √(a² + b²).
What if the line is given as y = mx + b?
Rewrite it as mx − y + b = 0, so a = m, the y-coefficient is −1, and c = b.
How do I find the distance between two parallel lines?
Pick any point on one line and find its distance to the other. For ax + by + c₁ = 0 and ax + by + c₂ = 0, it is |c₁ − c₂| / √(a² + b²).
What does it mean if the numerator is 0?
The point lies on the line, so the distance is 0.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSG.GPE.B.5Expressing Geometric Properties with EquationsProve the slope criteria for parallel and perpendicular lines and use them to solve geometric problems (e.g., find the equation of a line parallel or perpendicular to a given line that passes through a given point).