Manhattan Distance Calculator

Your details

How many coordinate axes your points live on.
x-coordinate of the first point.
y-coordinate of the first point.
x-coordinate of the second point.
y-coordinate of the second point.
Manhattan Distance
8

L1 norm: sum of absolute coordinate differences

Euclidean Distance5.6569
Manhattan / Euclidean ratio1.4142
|Ax - Bx|4
|Ay - By|4
|Ax - Bx|4
|Ay - By|4

Manhattan distance between the two 2D points is 8.0000.

  • The straight-line (Euclidean) distance is 5.6569, so the Manhattan path is 1.41x as long.
  • In a city grid, this is the minimum number of blocks you must walk to get from Point A to Point B, regardless of which route you take.
  • Any path that only goes right/left and up/down (no diagonals) will cover exactly this distance.

Next stepUse Manhattan distance when movement is constrained to a grid (city blocks, chess rooks, pixels). Use Euclidean when direct travel through open space is possible.

= Powered by OnlyCalculators