Manhattan Distance

Calculator to calculate the manhattan distance

Calculate Manhattan distance


The Manhattan distance function or Manhattan metric calculates the distance that would be moved to get from one data point to another when following a grid-like path. The Manhattan distance between two elements is the sum of the differences of their respective components.

To calculate, enter a series of x /y pairs (vectors). The individual numbers are separated by semicolons or spaces. Then click on the 'Calculate' button.


Calculator Manhattan distance

 Input
Serie X
Serie Y
Decimal places
  Result

Manhattan distance formula

\(\displaystyle d(x,y)=\sum_{i=1}^n |x_i-y_i|\)
Is this page helpful?            
Thank you for your feedback!

Sorry about that

How can we improve it?