Easy CalculatorsOnline
A little less guesswork.

Geometry · EVERYDAY CLARITY

Point-to-line distance calculator

Measure the shortest perpendicular distance to a planar line.

Units & number format

Number formatting changes the display; the interface and guides are in English. Dates use calendar controls; numeric lists use decimal points and comma or space separators.

01 · CALCULATE

Work out your numbers

Your inputs stay in this browser.

Example result · using the values shown

Perpendicular distance
2 coordinate units
See visual ↓

Line is ax + by + c = 0; a and b cannot both be zero.

02 · SEE THE RESULT

Your numbers, pictured

Example visualization

Normalize the absolute line expression

10÷5
Calculated result2 units

This is distance to the infinite line, not to a finite line segment.

03 · UNDERSTAND THE METHOD

How the point-to-line distance calculator works

The shortest distance from a point to an infinite line is perpendicular to that line. The coefficient form ax+by+c=0 makes it possible to calculate that distance without finding the perpendicular foot explicitly. This calculator takes the measurements named in the form and reports the derived geometric quantity. Before entering a value, distinguish linear dimensions from squared areas and cubic volumes. Record all lengths in one consistent unit and identify which radius, height, axis, or coordinate the field actually describes.

The formula and its variables

d = |ax₀ + by₀ + c| / √(a² + b²)
x
Point x. Use the unit or angle convention stated in the input label.
y
Point y. Use the unit or angle convention stated in the input label.
a
Line coefficient a. Use the unit or angle convention stated in the input label.
b
Line coefficient b. Use the unit or angle convention stated in the input label.
c
Line constant c. Use the unit or angle convention stated in the input label.

The calculation, step by step

  1. Identify the geometric configuration in the field labels and confirm that your measurements describe the same object or coordinate system. Check the shape restrictions stated below the form before calculating.
  2. Evaluate the line expression at the point, take its absolute value, and divide by the magnitude of the line’s normal coefficient vector.
  3. Keep intermediate products and trigonometric values unrounded. Read the main output with its units, then use the accompanying dimensions or comparison visual to check the relationship with your original inputs.

A worked example

For the example values point x = 0; point y = 0; line coefficient a = 3; line coefficient b = 4; line constant c = 10, the calculated perpendicular distance is 2 coordinate units. Substitute these values into the displayed expression in the same order. This example provides a reproducible check of the unit convention; changing a radius, side, angle, or coordinate should lead to a new result using that same method.

Example inputs and calculated output
Point x0
Point y0
Line coefficient a3
Line coefficient b4
Line constant c10
Perpendicular distance2 coordinate units

How to read the result and visual

The result is a nonnegative length in coordinate units. A point on the line gives zero, and scaling all line coefficients together leaves the distance unchanged. The visual represents the entered example or your most recent valid calculation. Numerical comparisons within it use the stated units; a schematic outline helps identify dimensions but should not be treated as a measured drawing.

Assumptions, rounding, and limitations

At least one of a and b must be nonzero. This distance is to an infinite line; a finite segment can have an endpoint as its nearest point. Browser arithmetic uses finite floating-point precision, and displayed decimals are rounded for readability. Extra decimal places do not increase the accuracy of the original measurements. For physical projects, apply tolerances and material requirements separately rather than treating an ideal geometric result as a finished design.

Frequently asked questions

Which line equation is used for point-to-line distance?

Enter coefficients for ax + by + c = 0 and the point coordinates. The pair a and b cannot both be zero.

Is the result the distance to a finite line segment?

No. The formula gives perpendicular distance to the infinite line. Distance to a segment additionally depends on its endpoints.

Reference sources

How we check calculations and what verification covers