About this tool
Enter the coordinates of two points to get the straight-line (Euclidean) distance, the Manhattan distance, the midpoint and the slope of the line between them. All computed live in your browser.
Frequently asked questions
What is Manhattan distance?
It is the sum of the absolute differences in x and y — the distance you would travel along a grid of streets rather than in a straight line.
When is the slope undefined?
When the two points share the same x coordinate the line is vertical, so the slope is undefined and shown as such.