Taxicab Geometry: A World Where Circles Are Squares
In a hurry? Skip straight to the numbers.
Open the Manhattan Distance Calculator →The Manhattan distance calculator measures how far apart two points are when you can only travel along horizontal and vertical steps, like a taxi navigating a grid of city streets. This is more than a practical convenience; it defines an entire alternative geometry, complete with its own consistent rules, in which familiar shapes take on surprising new forms. Understanding taxicab geometry reveals that the everyday notion of distance is just one choice among several valid ones, each with its own strange and beautiful consequences.
Distance Along the Grid
In taxicab geometry, you cannot cut diagonally across a block; you must travel along the streets, moving only horizontally or vertically. The distance between two points is therefore the total of the horizontal and vertical steps needed to get from one to the other, added together. This grid-bound distance is generally longer than the straight-line distance, because it cannot take the diagonal shortcut. It is the natural way to measure travel in a city laid out in a grid, and it defines a genuine, self-consistent geometry.
A Legitimate Alternative
Taxicab distance is not merely an approximation or a special case; it satisfies all the fundamental requirements of a distance measure. The distance from a point to itself is zero, distance does not depend on direction of travel, and a detour is never shorter than the direct grid route. Because it meets these conditions, taxicab distance is a fully legitimate way to measure distance, giving rise to a complete geometry that stands alongside ordinary straight-line geometry as an equally valid system, just built on a different rule.
| Feature | Taxicab geometry |
|---|---|
| Movement | Only horizontal and vertical |
| A "circle" | Looks like a diamond |
When Circles Become Diamonds
The most delightful consequence of taxicab geometry is what happens to a circle. A circle is defined as the set of all points at a fixed distance from a center. Under taxicab distance, the set of points a fixed grid-distance from a center is not the familiar round shape but a diamond, a square standing on its corner. This astonishing result shows how deeply the choice of distance shapes geometry: change the rule for measuring distance, and even the humble circle transforms into something entirely different, yet perfectly consistent within its own system.
Why This Geometry Matters
Taxicab geometry is far more than a curiosity. It is the right model for any situation where movement is constrained to a grid, from city navigation and warehouse robotics to the routing of wires on a circuit board, where paths must follow horizontal and vertical lines. It also serves as an important alternative distance measure in data analysis, where it can behave better than straight-line distance for certain kinds of data. The calculator computes this grid distance directly, offering entry into a whole geometry where the ordinary rules bend, and circles wear the shape of diamonds.
For straight-line distance between the same points, see the Euclidean Distance Calculator; for a tool covering 2D, 3D, and geographic distance, the Distance Calculator.
Ready to Put This Into Practice?
Now that you understand how it works, plug in your own numbers and get an instant, accurate result.
Use the Manhattan Distance Calculator Now →