Slope of a line
Find slope and y-intercept from two points.
Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0.
Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0.
Point x coordinate: 2; Point y coordinate: 3; Line coefficient A: 3; Line coefficient B: 4; Line coefficient C: -6.
Distance: 2.4 units.
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.
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
| Input | What to enter |
|---|---|
| Point x coordinate | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Point y coordinate | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Line coefficient A | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Line coefficient B | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Line coefficient C | Enter a number of at least -1000000000000 and no more than 1000000000000. |
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.
Distance = abs(A*x+B*y+C)/sqrt(A^2+B^2) units