Distance Between Two Points (2D)

Enter the coordinates of two points on a plane — and the calculator will instantly compute the distance between them using the Pythagorean theorem.

See also: Distance Between Two Points (3D), GPS Distance Calculator.

Calculator

decimal places

The distance between two points A(x1, y1) and B(x2, y2) in a plane is calculated using the Pythagorean theorem.

Distance formula (2D):

d= (x2x1)2 + (y2y1)2

Coordinates may be any real numbers, including negative values. If both points coincide, the distance is zero. Used in geometry, physics, programming, and GIS to calculate the straight-line distance between two objects.