Department of Energy Argonne National Laboratory Office of Science NEWTON's Homepage NEWTON's Homepage
NEWTON, Ask A Scientist!
NEWTON Home Page NEWTON Teachers Visit Our Archives Ask A Question How To Ask A Question Question of the Week Our Expert Scientists Volunteer at NEWTON! Frequently Asked Questions Referencing NEWTON About NEWTON About Ask A Scientist Education At Argonne Point/line distance formula
Name: michael j stevenson
Status: N/A
Age: N/A
Location: N/A
Country: N/A
Date: Around 1995

I am looking for a formula that will tell me the distance between a point and a line. Someone told me that it was Ax + By + C/A^2 + B^2, but I am not sure if it is right or not. I know that if you find the perpendicular line that goes through the point and solve for the intersection of the two lines, you have two handy points you can use with the traditional distance formula, but I need something faster.

The formula you give is close, but not quite correct. For a line with equation Ax + By + C = 0 and a point (r,s) the distance from the point to the line is given by abs(Ar + Bs + C)/sqrt(A^2 + B^2). Here abs denotes absolute value and sqrt denotes square root.


Click here to return to the Mathematics Archives

NEWTON is an electronic community for Science, Math, and Computer Science K-12 Educators, sponsored and operated by Argonne National Laboratory's Educational Programs, Andrew Skipor, Ph.D., Head of Educational Programs.

For assistance with NEWTON contact a System Operator (, or at Argonne's Educational Programs

Educational Programs
Building 360
9700 S. Cass Ave.
Argonne, Illinois
60439-4845, USA
Update: June 2012
Weclome To Newton

Argonne National Laboratory