Coordinate Distance Calculator: measurements and units
Find straight-line distance, coordinate differences and midpoint between two points on a two-dimensional Cartesian plane. Enter Cartesian x/y coordinates in one common unit. These are not latitude and longitude.
Enter your measurements
Enter the first and second point’s x and y coordinates, then choose Calculate. The example button replaces these inputs with the case below. Use a decimal point or exponent notation such as 1e3, without unit suffixes or thousands separators.
Coordinates may be zero or signed. Nonzero magnitudes must be from 0.000000001 to 1,000,000,000. Use the same Cartesian unit for both axes and points. Coordinates in metres give differences, midpoint coordinates and distance in metres. No area, volume or automatic unit conversion is involved.
Worked example
Points (1, 2) and (4, 6) have Δx = 3, Δy = 4, distance 5, and midpoint (2.5, 4). Swapping the points reverses both differences but leaves distance and midpoint unchanged.
Formula and interpretation
Distance = √((x₂ − x₁)² + (y₂ − y₁)²). The midpoint averages the two x coordinates and the two y coordinates separately. Differences are second point minus first point.
Limits and common mistakes
Negative and zero coordinates are valid, and coincident points have zero distance. This is Euclidean distance in a flat 2D plane, not a driving route, geodesic distance, three-dimensional distance or screen scaling conversion.
Results are floating-point approximations displayed to 12 significant digits, not a statement of measurement accuracy. Keep the precision appropriate to the original measurements. Editing any input clears the old result, so choose Calculate again after a change. Copy results copies the displayed labels and rounded values.
For a related calculation, open Right Triangle Calculator.





