MATH · LOCAL CALCULATOR

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.

Enter values

How it works

This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.

Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.

Formulas used by this calculator

The Manhattan Distance Calculator works with 13 quantities and 24 relations between them. Enter the values you know, leave the one you want to find blank, and press Calculate. Blank fields are never treated as zero. Each formula below is solved for one quantity.

16 further rearrangements of the same relations let you solve for other quantities.

Inputs

FieldName in formulasCan be solved for
p1p1Yes
p2p2Yes
p3p3Yes
p4p4Yes
q1q1Yes
q2q2Yes
q3q3Yes
q4q4Yes
Dist 1ddist_1dYes
Dist 2ddist_2dYes
Dist 3ddist_3dYes
Dist 4ddist_4dYes
DimensionalitydimensionalityInput only