Calculate the grid-based distance between two points using the L1 metric.
Last updated: June 2026 | By Patchworkr Team
Manhattan distance measures how far two points are by moving only along horizontal and vertical grid lines. It is also called the L1 distance.
The points (0, 0) and (3, 4) have Manhattan distance 7.
Can the coordinates be negative?
Yes. The absolute values in the formula handle negative coordinates naturally.
Does the tool accept decimals?
Yes. Any finite real coordinates are accepted, including decimal and scientific notation values.
Is this the same as Euclidean distance?
No. Manhattan distance uses axis-aligned movement only, while Euclidean distance measures the straight-line path.
What if a field is blank?
Blank input is rejected instead of being silently interpreted as zero.
Related Tools
Calculate adjoint matrix.
Find angle between vectors.
Find characteristic polynomial.
Cholesky factorization.
Expand determinant by cofactors.
Calculate cofactor matrix.