Distance Point To Line Calculator

Find the shortest (perpendicular) distance from a point to a line using either the standard form Ax + By + C = 0 or two points on the line.

Line Input Mode

Line: Ax + By + C = 0

Point (x₀, y₀)

Enter values and click Calculate Distance

Summary

Find the shortest (perpendicular) distance from a point to a line using either the standard form Ax + By + C = 0 or two points on the line.

How it works

  1. Choose input mode: Standard Form (Ax + By + C = 0) or Two-Point Form.
  2. Enter the coefficients A, B, C — or the coordinates of two points on the line.
  3. Enter the coordinates of the point (x₀, y₀) you want to measure from.
  4. Click Calculate to see the perpendicular distance with step-by-step work.
  5. Switch between decimal and fraction display as needed.

Use cases

  • Find how far a city coordinate is from a straight road or border line.
  • Verify geometry homework involving perpendicular distances.
  • Check the closest approach distance between a point and a line in a physics problem.
  • Compute tolerance margins in 2D CAD or graphics work.
  • Validate analytical geometry proofs and calculations.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu