MakeMyCalculator.com

CALCULATOR

Manhattan Distance Calculator

manhattan distance. Example: X1: 2 units, Y1: 2 units, X2: 2 units, Y2: 2 units gives 0 units. 2D Cartesian taxicab metric, not measured road distance, route planning or Euclidean distance. Elementary arithmetic over the accepted finite domain. No statistical population inference, supplied-data validity claim or specialist recommendation.

YOUR INPUTS Live calculation

2D Cartesian taxicab metric, not measured road distance, route planning or Euclidean distance. Elementary arithmetic over the accepted finite domain. No statistical population inference, supplied-data validity claim or specialist recommendation. Derivation: Sum axis-aligned coordinate differences.

Accepted inputs: X1: -1,000,000 to 1,000,000 units; Y1: -1,000,000 to 1,000,000 units; X2: -1,000,000 to 1,000,000 units; Y2: -1,000,000 to 1,000,000 units.

Example values. Enter your own inputs.

manhattan distance

0units

How the calculation works

distance = |x2−x1|+|y2−y1|

Worked example

With x1 2 units, y1 2 units, x2 2 units, y2 2 units, manhattan distance is 0 units.

Assumptions and limits

2D Cartesian taxicab metric, not measured road distance, route planning or Euclidean distance. Elementary arithmetic over the accepted finite domain. No statistical population inference, supplied-data validity claim or specialist recommendation. Derivation: Sum axis-aligned coordinate differences.

manhattan distance0 units
Edit inputs ↑

Embed this calculator

Paste this snippet into your site. The widget is free and ad-free, opens with your current inputs, and keeps a link back to this calculator.