Distance from a Point to a Line definition
The distance from a point to a line is the length of the shortest segment joining the point to the line.
Distance from a Point to a Line in a picture
How it works
The shortest segment meets the line at a right angle. For point (x₀, y₀) and line ax + by + c = 0, the distance is |ax₀ + by₀ + c|/√(a² + b²), where a and b are not both zero. The foot of the perpendicular is the closest point.
Worked examples
Find the distance from (2, 5) to y = 1.
The vertical difference is |5 − 1| = 4.
Find the distance from (0, 0) to 3x + 4y − 10 = 0.
|−10|/√(9 + 16) = 2.
What is the distance from (1, 1) to x + y = 2?
0, because the point lies on the line.
Common mistake
Measure to the entire line. The closest point on a finite segment may be one of its endpoints.
Quick check
What angle does the shortest segment make with the line?
Show answer
90°.
Why is there an absolute value?
Show answer
Distance is nonnegative.
What is the distance from (3, 2) to x = 0?
Show answer
3.
Sources
Flashcard
Distance from a Point to a Line
Reveal the definition
The distance from a point to a line is the length of the shortest segment joining the point to the line.
Effortless Math. “Distance from a Point to a Line.” Math Dictionary.



