Distance Point to Line Calculator
Calculate the perpendicular distance from a point to a line in 2D or 3D space.
Input
Point P
Line: ax + by + c = 0
Perpendicular Distance
0.70710678
Foot of Perpendicular
(3.5000, 3.5000)
Closest point on line to P
Signed Distance
-0.707107
Point is on negative side of line
Slope
1.0000
Unit Normal
(0.7071, -0.7071)
Distance Formulas
2D Formula
d = |ax₀ + by₀ + c| / √(a² + b²)
3D Formula
d = |(P - L) × d| / |d|