CalcWorldHub
Free online calculator · no signup

Point-to-line distance calculator

Measure the shortest Euclidean distance from a point to a line in the plane.

Point-to-line distance calculator — Line coefficient A, Line coefficient B, Line coefficient C and calculation method
Point-to-line distance calculator: inputs and calculation method.

How to use this calculator

Measure the shortest Euclidean distance from a point to a line in the plane.

  1. Enter Line coefficient A, Line coefficient B, Line coefficient C, Point x₀, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

How the Point-to-line distance calculator works

Measure the shortest Euclidean distance from a point to a line in the plane.

Inputs and units

  • Line coefficient A: A is the line’s x coefficient.
  • Line coefficient B: B is the line’s y coefficient.
  • Line coefficient C: C is the line constant.
  • Point x₀: x₀ is the point’s x coordinate.
  • Point y₀: y₀ is the point’s y coordinate.

Formula and method

d=|Ax₀+By₀+C|/√(A²+B²)

Worked example

For 3x+4y−5=0 and point (2,3), d=|6+12−5|/5=2.6 coordinate units.

Interpreting the result

The numerator is the line expression evaluated at the point; division by the normal length converts it to perpendicular distance.

Assumptions and limits

A and B cannot both be zero. Coefficients and coordinates must use consistent units and line-equation scaling.

Frequently asked questions

Why is the result nonnegative?

Absolute value gives the shortest separation regardless of which side of the line contains the point.

Does multiplying A, B, and C by the same factor change the distance?

No. Both the numerator and normal magnitude scale by the same absolute factor.

How do I use the Point-to-line distance calculator?

Enter Line coefficient A, Line coefficient B, Line coefficient C, Point x₀, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Point-to-line distance?

For 3x+4y−5=0 and point (2,3), d=|6+12−5|/5=2.6 coordinate units.

What does the Point-to-line distance calculator calculate?

Measure the shortest Euclidean distance from a point to a line in the plane.