UTILS.
100% in-browser

Distance Between Points

Compute Euclidean and Manhattan distance, midpoint and slope between two 2D points.

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.

More tools