MyCalCute
Install
Calculators / Math / Distance from point to line

Distance from point to line calculator

Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0.

On this page

Your result

Distance2.4units

Calculator controls

How to calculate

Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0.

Distance = abs(A*x+B*y+C)/sqrt(A^2+B^2) units

Worked example

Point x coordinate: 2; Point y coordinate: 3; Line coefficient A: 3; Line coefficient B: 4; Line coefficient C: -6.

Distance: 2.4 units.

Assumptions and limits

Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0. The line is A·x + B·y + C = 0. A and B cannot both be zero. Coordinates must use the same unit.

Results are rounded for display; calculations use unrounded values. Read our calculation methodology.

Understanding the result

Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0.

When this tool is useful

Distance = abs(A*x+B*y+C)/sqrt(A^2+B^2) units

Understanding your inputs

InputWhat to enter
Point x coordinateEnter a number of at least -1000000000000 and no more than 1000000000000.
Point y coordinateEnter a number of at least -1000000000000 and no more than 1000000000000.
Line coefficient AEnter a number of at least -1000000000000 and no more than 1000000000000.
Line coefficient BEnter a number of at least -1000000000000 and no more than 1000000000000.
Line coefficient CEnter a number of at least -1000000000000 and no more than 1000000000000.

Frequently asked questions

What assumptions does this calculation use?

Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0. The line is A·x + B·y + C = 0. A and B cannot both be zero. Coordinates must use the same unit.

How is the result calculated?

Distance = abs(A*x+B*y+C)/sqrt(A^2+B^2) units