Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Distance Between Points
5
units
Horizontal difference (Δx) 3
Vertical difference (Δy) 4

What Is the Coordinate Distance Calculator?

This tool finds the straight-line (Euclidean) distance between two points on a flat, two-dimensional plane. Given the coordinates of Point 1 (\(x_1, y_1\)) and Point 2 (\(x_2, y_2\)), it returns the shortest distance separating them — the length of the line segment that connects them. It works for any real numbers, including negatives and decimals, so it suits geometry homework, mapping, game development, CAD, and physics problems alike.

How to Use It

Enter the X and Y coordinates of your first point, then the X and Y coordinates of your second point. Click calculate and the tool reports the distance plus the horizontal difference (\(\Delta x = x_2 - x_1\)) and vertical difference (\(\Delta y = y_2 - y_1\)) so you can check the working. The distance is always positive regardless of point order.

The Formula Explained

The distance formula comes directly from the Pythagorean theorem. The horizontal gap (\(x_2 - x_1\)) and vertical gap (\(y_2 - y_1\)) form the two legs of a right triangle, and the distance \(d\) is the hypotenuse:

$$d = \sqrt{\left(x_2 - x_1\right)^2 + \left(y_2 - y_1\right)^2}$$

Squaring the differences removes any negative signs, and the square root returns the result to the original unit scale.

Advertisement
Two points on a coordinate grid connected by a diagonal line forming a right triangle
The distance between two points is the hypotenuse of a right triangle formed by their horizontal and vertical separations.

Worked Example

Suppose Point 1 is (0, 0) and Point 2 is (3, 4). Then \(\Delta x = 3\) and \(\Delta y = 4\). So $$d = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5.$$ The two points are exactly 5 units apart — the classic 3-4-5 right triangle.

Right triangle with horizontal leg delta x, vertical leg delta y, and diagonal hypotenuse d
The legs (\(x_2 - x_1\)) and (\(y_2 - y_1\)) combine via the Pythagorean theorem to give the distance \(d\).

FAQ

Does point order matter? No. Because the differences are squared, swapping Point 1 and Point 2 gives the same distance.

Can I use negative coordinates? Yes. Negative X or Y values work fine; the formula handles all four quadrants.

What units does the result use? Whatever units your coordinates are in — the distance is in the same unit (meters, pixels, miles, etc.).

Last updated: