When to use this calculator
Find perpendicular distance from a point to a straight line. Line form is ax+by+c=0, with a and b not both zero.
Explore the coordinate & vector calculators for other questions in this topic. For a related calculation, use the Point to Plane Distance Calculator: Find perpendicular distance from a 3D point to a plane.
PUTTING IT INTO PRACTICE
Point to Line Distance: a worked example
The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.
| Input | Example value |
|---|---|
| Line coefficient a | 3 |
| Line coefficient b | 4 |
| Line constant c | -10 |
| Point x | 0 |
| Point y | 0 |
| Result | 2 coordinate units |
- Check the input labels and enter the example values above.
- Apply the relationship: Distance = |ax+by+c|/√(a²+b²).
- The result is 2 coordinate units, rounded for display.
How to interpret your result
Line form is ax+by+c=0, with a and b not both zero.
Keep coordinate units consistent along every axis. Distance is non-negative, while slope and dot product can have signs. A vertical line has undefined slope because the horizontal coordinate change is zero.
Frequently asked questions
Does a zero dot product always mean the vectors are perpendicular?
Two nonzero vectors with zero dot product are perpendicular. The zero vector needs separate treatment because it has no defined direction.
When is the point to line distance calculator useful?
Find perpendicular distance from a point to a straight line. Line form is ax+by+c=0, with a and b not both zero.
How do I use the point to line distance calculator?
Enter line coefficient a, line coefficient b, line constant c, point x, point y. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.
Which formula does this calculator use?
Distance = |ax+by+c|/√(a²+b²).
What should I check before using the result?
Line form is ax+by+c=0, with a and b not both zero.
How are results rounded?
Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.
Calculators Map editorial process · Updated · Methods and limitations