Active experiment

Point-to-Line Distance Calculator

Distance from a point to Ax+By+C=0.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the point-to-line distance calculation mean?

The distance from a point to a line is measured along the perpendicular, which is the shortest possible connector. Written for a line in standard form Ax + By + C = 0, the formula divides the substituted left-hand side by the length of the normal vector.

When to use it

Use it for clearance checks, tolerances, offset construction, and shortest distances in coordinate geometry.

Formula

d=|Ax0+By0+C|A2+B2

In plain text: d = |Ax₀ + By₀ + C| / √(A² + B²)

Variables and units

SymbolMeaning
(x₀, y₀)the point
A, B, Ccoefficients of Ax + By + C = 0
dperpendicular distance, always nonnegative

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.

Worked example

For the point (3, −2) and the line 4x − 3y + 5 = 0, the numerator is |12 + 6 + 5| = 23 and √(16 + 9) = 5, so d = 4.6.

Common mistakes

  • Write the line in standard form before reading A, B, and C.
  • Take the absolute value so distance cannot be negative.
  • Divide by √(A² + B²), not by A + B.

Interpret the result

After computing the distance, the perpendicular from the point to the line should meet it at a right angle.