Online Calculator

Manhattan Distance Calculator

Enter two points to add the horizontal and vertical distances between them.

Information

⚡

Instant result

Enter the data and press the button to do the calculation.

🔒

Local processing

The values are processed directly in your browser.

💸

Free

No registration, external API or subscription required.

Frequently asked questions

What's the formula?

d = |x₂ - x₁| + |y₂ - y₁|.

Why is it called Manhattan distance?

Because it models paths on a grid, such as traveling along perpendicular streets.

Is it the same as Euclidean distance?

No.

Does it support negative coordinates?

Yes.

Related calculators