Manhattan Distance Calculator

Manhattan Distance Calculator

Calculate grid-based distance by adding horizontal and vertical movement.

Last updated: June 2026 | By Patchworkr Team

Grid Distance Solver
Manhattan Distance

Enter both points as real numbers.

What is Manhattan Distance?

Manhattan distance is the sum of the absolute coordinate differences.

d = |x2 - x1| + |y2 - y1|

It is a good fit for grid-based movement where diagonals are not allowed.

How to Use

1. Enter the two points.

2. Read the Manhattan distance, coordinate deltas, and Euclidean comparison.

3. Use the result for grid routing or taxicab-style movement.

Worked Example

For points (1, 2) and (4, 6):

d = |4 - 1| + |6 - 2| = 3 + 4 = 7

The calculator should show 7.

FAQ

Can this ever be negative?

No. Absolute values keep the sum non-negative.

Does point order matter?

No. Swapping points gives the same result.

What if the points share an x or y value?

Then one delta is zero and the formula still works.

Is this the same as Euclidean distance?

No. Euclidean uses a square root of squared differences.

Related Tools