Skip to calculators
calcmintly

Point to Line Distance

Find perpendicular distance and the projection onto Ax+By+C=0.

Add to workspace

Your numbers

Local calculations. Results are estimates, not professional advice.

Perpendicular distance

—

Use consistent units. The result follows the assumptions you enter.

Formula

Use d = abs(Ax+By+C)/√(A²+B²) for the line Ax+By+C = 0 and point (x,y). abs means absolute value. The line coefficients A and B cannot both be zero.

Find perpendicular distance and the projection onto Ax+By+C=0.

Worked example

Line coefficient A
3
Line coefficient B
4
Line coefficient C
-5
Point x
1
Point y
2
Perpendicular distance
1.2
Projection x
0.28
Projection y
1.04

Scope and limitations

Use consistent units. The result follows the assumptions you enter.

Inputs are checked for missing values and allowed ranges. A result outside the finite numeric range is not displayed. Rounding affects display, while the calculation uses the model’s numeric precision.

Check your units and assumptions before relying on a result. Changing a label does not convert a currency or physical unit.

Formula version: 7e1d77c48425 · Example checked:

Methodology

Related tools