Point-to-Line Distance
The shortest distance from a point to a line is the perpendicular distance. Formula: d = |Ax₀ + By₀ + C| / √(A² + B²) for line Ax + By + C = 0. The foot of the perpendicular is the closest point on the line.
Did our AI summary help? Let us know.
Distance is zero when the point lies on the line. Signed distance indicates which side of the line the point is on. Generalizes to point-to-plane in 3D.
Ready to run the numbers?
Why: Point-to-line distance is used in collision detection, path planning, data fitting (regression residuals), and CAD for clearance checks. The perpendicular is always the shortest path.
How: For line Ax + By + C = 0 and point (x₀, y₀), compute d = |Ax₀ + By₀ + C| / √(A² + B²). The foot F is where the perpendicular from the point meets the line.
Run the calculator when you are ready.
Sample Examples
Input
Point P(x₀, y₀) and line Ax + By + C = 0
Point
Line (Ax + By + C = 0)
Results
Visualization
Step-by-Step
Line: 3x + 4y + 5 = 0
Point: P(2, 3)
Distance formula: d = |Ax₀ + By₀ + C| / √(A² + B²)
d = |23| / √25 = 4.6
Foot of perpendicular: F(-0.76, -0.68)
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
Perpendicular distance is always shortest.
— Geometry
Foot of perpendicular is the closest point.
— Property
Key Takeaways
- The perpendicular distance is the shortest distance from a point to a line.
- Formula: for line .
- The foot of the perpendicular is the closest point on the line to the given point.
- Signed distance indicates which side of the line the point lies on.
- For horizontal/vertical lines, the distance simplifies to a single coordinate difference.
Did You Know?
Understanding the Formula
Given a line in standard form and a point , the perpendicular distance is:
The foot of the perpendicular satisfies:
Expert Tips
FAQ
A: Distance is always non-negative. Signed distance indicates which side of the line the point is on.
A: The distance is zero and the foot coincides with the point.
A: No; that would not define a line. At least one must be non-zero.
A: Rewrite as mx - y + b = 0, so A=m, B=-1, C=b.
A: The point on the line closest to the given point; the perpendicular from the point meets the line there.
A: In 3D, use the point-to-plane distance formula for a line (plane perpendicular to line through point).
A: Navigation, collision detection, CAD, and geometric modeling.
How to Use
- Enter the point coordinates (x₀, y₀).
- Enter the line coefficients A, B, C for Ax + By + C = 0.
- Click Calculate to get the perpendicular distance, foot, and signed distance.
- View the visualization to see the geometry.
Disclaimer
This calculator provides educational assistance. Verify critical calculations independently. At least one of A or B must be non-zero.
Related Calculators
Lines To Line Distance Calculator
Lines To Line Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsPoint To Plane Distance Calculator
Point To Plane Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsManhattan Distance Calculator
Manhattan Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsThree D Distance Calculator
Three D Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsParallel Line Calculator
Parallel Line Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsPerpendicular Line Calculator
Perpendicular Line Calculator - Calculate and learn about coordinate-geometry concepts
Mathematics