Distance from a Point to a Line Calculator
Enter a point and the equation of a line to find how far apart they are.
The x-coordinate of the point.
The y-coordinate of the point.
An equation of a line, like 3x + 4y = 5, y = 2x - 1 or x = 4.
Result
You entered
Distance
Foot of the perpendicular
Decimal
Show the work
Line in the form Ax + By = C
The distance formula needs the line written as , so the typed line is first rearranged to that form. Here , and , which is the line .
Distance from a point to a line
The distance from the point to the line is measured along the perpendicular, which is the shortest path. Put the point into and divide its absolute value by .
Foot of the perpendicular
The foot of the perpendicular is the point of the line nearest to the given point: move from the point along the normal direction by exactly the amount that lands on the line.
Using
Result
So the distance from the point to the line is units.