When to use Manhattan Distance Calculator
Find the distance between points when travel follows the coordinate axes.
Apply the calculation to a diagram, coordinate problem or measurement task with the same geometric assumptions.
How to use this tool
- Choose the calculation mode that matches your task and the information you have.
- Enter the inputs listed below. Follow the field format, and select units beside each supported quantity.
- Results update automatically. Review the main result and its breakdown. Use Clear to enter a new scenario.
- x₁
- y₁
- x₂
- y₂
- z₁
- z₂
How it works
2D coordinates
Add the absolute differences between the coordinates along each axis.
3D coordinates
Add the absolute differences between the coordinates along each axis.
Worked example
The examples below use fixed sample inputs. They explain the calculation and do not change when you edit the tool above.
2D coordinates
- x₁
- 1
- y₁
- 2
- x₂
- 7
- y₂
- 10
- Result
- 14
3D coordinates
- x₁
- 1
- y₁
- 2
- x₂
- 7
- y₂
- 10
- z₁
- 0
- z₂
- 3
- Result
- 17
Understanding the result and its limits
Choose the correct shape and dimensions. Area uses squared units and volume uses cubed units; neither is a length.
Frequently asked questions
How should I check a geometric answer?
Sketch the shape, label the inputs and check units. A result for an ideal shape may not describe an irregular real object.
Methodology and references
Use the formulas and assumptions above when interpreting the example. Any practical estimate depends on the accuracy of the inputs.
- Further reading: OpenStax: basic geometry and measurement