∑Calculators Map.Find a calculator ↗

△ GEOMETRY

Point to Line Distance Calculator

Find perpendicular distance from a point to a straight line.

Your numbers

Free calculator
YOUR RESULT
2coordinate units

Calculated in your browser. Your inputs aren’t uploaded.

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.

Example inputs and calculated result
InputExample value
Line coefficient a3
Line coefficient b4
Line constant c-10
Point x0
Point y0
Result2 coordinate units
  1. Check the input labels and enter the example values above.
  2. Apply the relationship: Distance = |ax+by+c|/√(a²+b²).
  3. 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.

A useful next step is the Concrete Volume Calculator: Estimate wet concrete volume for a rectangular slab.

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