How to use
Choose 2D for points on a flat coordinate plane or 3D for points with x, y and z coordinates. Enter both endpoints; negative and decimal coordinates are valid. The calculator measures the straight-line separation, not a road route or distance traveled along a curve. For example, points (1, 2) and (4, 6) differ by 3 units horizontally and 4 vertically, giving a direct distance of 5 units.
What the result means
The result uses the same linear unit as the coordinates. In 3D, the z-coordinate adds a third squared difference before the square root is taken. Coordinate systems must use consistent units and scales. This is the Euclidean distance formula; it does not calculate travel time, surface distance over terrain, or geographic distance between latitude and longitude coordinates.
Further reading: OpenStax — Distance formula in the coordinate plane · OpenStax — Distance formula, Algebra and Trigonometry 2e · OpenStax — Distance between two points in 3D.
Related calculators