Calculate the distance between two points using Taxicab Geometry (L1 Norm)
Enter the coordinates of two points to find the Manhattan distance. This metric is useful in grid-like paths, such as city blocks or chessboards.
Enter numbers separated by commas or spaces.
Enter numbers separated by commas or spaces.
Click on an example to load it into the calculator.
Find the distance between two points in a 2D city grid.
P: [2, 3]
Q: [5, 7]
Calculate the distance in a 3-dimensional coordinate system.
P: [10, -5, 8]
Q: [4, 2, 12]
Measure the distance between two 4D feature vectors in a dataset.
P: [1, 0, 1, 0]
Q: [0, 1, 0, 1]
Calculate the distance between two points on a number line.
P: [-15]
Q: [25]
10, 20, 5
) or spaces (e.g., 10 20 5
) to separate the numbers.sqrt(Σ(pᵢ - qᵢ)²)
.