The straight line between two points
The distance between two points is the length of the straight line joining them. On a flat plane it comes from the Pythagorean theorem, and in three-dimensional space it adds a third term for height.
Enter the coordinates and this calculator returns the straight-line (Euclidean) distance, the midpoint and the Manhattan distance, which is how far you would travel if you could only move along the axes, like along city blocks.
How it is calculated
Worked example
From (1, 2) to (7, 10)
- Differences
- 6 across and 8 up
- Distance
- 10
- Midpoint
- (4, 6)
- Manhattan distance
- 14
Good to know
- This tool works with coordinates on a grid, not with latitude and longitude on the Earth's curved surface.
- The distance is the same in either direction and is never negative.
- A point's distance from the origin uses the same formula with (0, 0).
Straight-line vs travel distance
This calculator gives the straight-line distance between two points (also called the crow-flies distance), which is the shortest possible path. Actual travel distance by road, trail or on a grid of city blocks (the Manhattan distance, also shown) is equal to or longer, since it has to follow available paths rather than cut straight through.

