FullCalculator

Distance Formula Calculator

2D Distance

3D Distance

Manhattan Distance (2D)

Formula

d = sqrt((x2-x1)^2 + (y2-y1)^2) | Manhattan = |x2-x1| + |y2-y1|

Frequently Asked Questions

What is the distance formula?
In 2D: d = sqrt((x2-x1)^2 + (y2-y1)^2). In 3D add the z component. It is derived from the Pythagorean theorem.
What is Manhattan distance?
Manhattan distance = |x2-x1| + |y2-y1|. It measures distance along grid lines (like city blocks), not in a straight line.

You may also need