KiloAtlas
EN
EnglishBahasa IndonesiaTiếng Việt

Manhattan Distance Calculator

Find the Manhattan distance between two points in two or three dimensions by summing absolute coordinate differences.

Manhattan distance

7

Formula

d = |x2−x1| + |y2−y1| + |z2−z1|

Manhattan distance ≈ abs((3)-(0))+abs((4)-(0))+abs((0)-(0))

How to use

  1. Enter the first point coordinates.
  2. Enter the second point; use z1 = z2 = 0 for 2D.
  3. 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:

Related tools

Search conversion tools