Distance Between Points
Find the distance between two 2D points instantly.
How to use
- 1 Enter the x and y coordinates for Point A.
- 2 Enter the x and y coordinates for Point B.
- 3 Read the Euclidean and Manhattan distances below.
- 4 Copy the result if you need it elsewhere.
About Distance Between Points
The Distance Between Points calculator measures how far apart two points are on a 2D plane.
Enter the coordinates of point A and point B and it returns the straight-line Euclidean distance — the familiar square root of the sum of the squared differences — along with the Manhattan (taxicab) distance, which sums the absolute horizontal and vertical gaps as though you could only travel along a grid.
These two measures answer different questions.
Euclidean distance is what a ruler would read and is what most geometry, physics and graphics problems need.
Manhattan distance models movement along city blocks or grid-based pathfinding, and it is the metric many machine-learning and routing algorithms rely on.
The tool also breaks out the individual Δx and Δy components so you can see exactly how the points differ along each axis, which is handy when computing slopes, vectors or bounding boxes.
Everything is calculated locally in your browser using the standard distance formula, so there is nothing to upload and no waiting.
It works with negative coordinates, decimals and zero, and updates live as you type, making it quick to explore how moving a point changes the result.
FAQ
What formula is used for the distance?
The Euclidean distance uses √((x₂−x₁)² + (y₂−y₁)²); the Manhattan distance uses |x₂−x₁| + |y₂−y₁|.
Does it support negative or decimal coordinates?
Yes. Any finite numbers work, including negatives, decimals and zero. Non-numeric entries are flagged as an error.