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.

Manhattan Distance (L₁)
9 units
|Δx| Steps
5
|Δy| Steps
4
Chebyshev Distance (L∞)
5
Euclidean (Direct)
6.4031
✨ Auto-scaled live diagram

Formula & Step-by-Step Calculation

d₁ = |x₂ − x₁| + |y₂ − y₁|
  1. 1
    Take absolute coordinate differences
    |Δx| = |6 − (1)| = 5, |Δy| = |5 − (1)| = 4
  2. 2
    Sum absolute differences
    d₁ = 5 + 4 = 9
  3. 3
    Maximum axis difference
    d∞ = max(5, 4) = 5
d_1 = |6 - 1| + |5 - 1| = 5 + 4 = 9

Embed This Calculator (Free)

Copy this HTML snippet to embed this interactive calculator on your blog, course, or website.

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.