Manhattan Distance Calculator
Find the Manhattan distance between two points in two or three dimensions by summing absolute coordinate differences.
Formula
d = |x2−x1| + |y2−y1| + |z2−z1|
Manhattan distance ≈ abs((3)-(0))+abs((4)-(0))+abs((0)-(0))
How to use
- Enter the first point coordinates.
- Enter the second point; use z1 = z2 = 0 for 2D.
- Read the sum of absolute differences.
Examples
- (0, 0) to (3, 4) has Manhattan distance 7.
Frequently asked questions
How does it differ from Euclidean distance?
It adds axis-aligned distances instead of measuring a straight line.
Can coordinates be negative?
Yes. Use the same coordinate system and unit for both points.
Does this find a road route?
No. It assumes unrestricted movement parallel to the coordinate axes.
Sources
Updated: