Distance from Point to Line Calculator

Find the perpendicular distance from a point to a line ax + by + c = 0 and the foot of the perpendicular.

Results

Enter your details and click Calculate to see your results.
About This Calculator

d = |ax₀ + by₀ + c| / √(a² + b²).

Example

Example: the default inputs → Distance: Distance = 5.8.

Assumptions

Exact maths — check the input format shown in each field.

Frequently Asked Questions

How do you find the distance from a point to a line?

Plug the point into ax + by + c and divide by √(a² + b²).

What if the result is 0?

The point is on the line.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile