Manhattan & Chebyshev Distance Calculator
Compute taxicab (Manhattan L₁) and chessboard (Chebyshev L∞) distances on a live 2D grid, compared against direct Euclidean distance.
Input Parameters
ℹ️ Format: Grid coordinates (integers or decimals) · e.g. (1, 1) and (6, 5)
Point A
Point B
💡 Tip: You can also paste (12, 13, 14) directly into any box.
|Δx| Steps
5
|Δy| Steps
4
Chebyshev Distance (L∞)
5
Euclidean (Direct)
6.4031
Formula & Step-by-Step Calculation
d₁ = |x₂ − x₁| + |y₂ − y₁|
-
1
Take absolute coordinate differences
|Δx| = |6 − (1)| = 5, |Δy| = |5 − (1)| = 4 -
2
Sum absolute differences
d₁ = 5 + 4 = 9 -
3
Maximum axis difference
d∞ = max(5, 4) = 5
Worked Example
Sample inputs and verified result: Point A (x₁) = 1, Point A (y₁) = 1, Point B (x₂) = 6, Point B (y₂) = 5
Manhattan Distance (L₁): 9 units
Frequently Asked Questions
When is Manhattan distance used?
It is widely used in city grid routing, robotics pathfinding, machine learning (L1 norm), and tile-based games.