Manhattan Distance Calculator
The Manhattan distance calculator is a simple calculator that determines the Manhattan distance (also known as the taxicab or city block distance) between two points in up to four-dimensional Cartesian space.
Distance5
Midpoint(1.5, 2)
Slope1.33333333
Δx and Δy3 and 4
Manhattan distance7along the grid rather than direct
Angle from the x-axis53.130102°
The formula
d = √((x₂ − x₁)² + (y₂ − y₁)²)
It is Pythagoras
The horizontal and vertical gaps form the legs of a right triangle, and the distance is the hypotenuse. That is the whole derivation, and it extends directly to three dimensions by adding a Δz² term.
Manhattan distance adds the legs instead of taking the hypotenuse — the distance you would actually walk on a street grid, and always at least as large as the straight line.