Manhattan (Taxicab) Distance Between Two 3-D Points Calculator
d_M = |x₂ − x₁| + |y₂ − y₁| + |z₂ − z₁|.
Compute the L¹ (Manhattan / taxicab) distance between two points in 3-D space: d = Σ |coord₂ − coord₁|. The distance you'd traverse on a square grid moving only along axis-aligned directions. Frequently used in clustering, k-NN with categorical-style features, and image processing.
How to use this calculator
- Fill in the inputs above using the units you already have.
- Values update automatically as you type — no submit button needed.
- Hover any result row for the underlying formula and intermediate values.
Formula
d_M = |Δx| + |Δy| + |Δz|.
In depth
Compute the L¹ (Manhattan / taxicab) distance between two points in 3-D space: d = Σ |coord₂ − coord₁|. The distance you'd traverse on a square grid moving only along axis-aligned directions. Frequently used in clustering, k-NN with categorical-style features, and image processing.
Spot an issue or have a suggestion?
Our editors read every message. If the math looks off, tell us the inputs you used and what you expected.