🏙️ Manhattan Distance Calculator

Calculate the taxicab distance - the sum of absolute differences between coordinates.

Distance Calculator
Enter coordinates for two points to calculate their Manhattan distance.
0.0000

Step-by-step calculation:

|0 - 3| = 3
|0 - 4| = 4
Sum = 0
About Manhattan Distance

Also known as taxicab distance or L1 distance, it measures the distance a taxi would drive in a city laid out in square blocks.

Formula:

d = |x₁-y₁| + |x₂-y₂| + ... + |xₙ-yₙ|
Use Cases
  • • Grid-based pathfinding algorithms
  • • Warehouse logistics optimization
  • • Chess piece movement (rook moves)
  • • Image processing (pixel differences)
  • • Regression analysis (L1 regularization)