Code tool

Perpendicular Distance Point to Line Calculator

Enter line coefficients A, B, C for Ax + By + C = 0 and point coordinates.

In-browser processingNo account requiredPrivacy details ↗

Perpendicular distance from point to line

Line form: Ax + By + C = 0. A and B cannot both be zero.

Distance: —

A QUICK WALKTHROUGH

How to use this tool

  1. Enter line coefficients A, B and C.
  2. Enter point coordinates x and y.
  3. Calculate perpendicular distance.

Formula

For line Ax+By+C=0 and point (x₀,y₀), distance d=|Ax₀+By₀+C|/√(A²+B²). A and B cannot both be zero.

Coordinate geometry

All coordinates must use one Cartesian system and unit. Local calculation only.

GOOD TO KNOW

Common questions

Can the line be vertical?

Yes. For x=k, use A=1, B=0, C=−k.