Geometry & Shapes
Find Distance Between Points in One, Two or Three Axes
Choose a distance formula for the supplied coordinates, distinguish displacement from a travelled path, and extend a two-dimensional example correctly.
Identify what the two objects represent
Distance between two numbers on a number line is their absolute difference. Distance between two plane-coordinate points uses both horizontal and vertical changes. Distance between two places on a road depends on the chosen route. Before applying a formula, identify the coordinate system and what “between” means in the question. A calculator accepting x and y fields is a plane-geometry tool, not a navigation service, and decimal degrees of latitude and longitude cannot simply be treated as metres.
Calculate the direct two-dimensional distance
For A = (2,3) and B = (8,11), the horizontal separation is 6 and vertical separation is 8. The direct distance is √(6² + 8²) = 10. A path that first moves 6 units horizontally and then 8 units vertically totals 14 units, even though it begins and ends at the same points. Thus endpoint distance and travelled distance answer different questions. The direct segment is the shortest path in this ordinary Euclidean plane, which provides a useful lower bound for any detour.
Extend the same idea to a third coordinate
For three-dimensional points, use d = √[(x2 − x1)² + (y2 − y1)² + (z2 − z1)²]. Changes of 2, 3 and 6 produce √(4 + 9 + 36) = 7. A two-dimensional projection would ignore one contribution and usually report a shorter value. The local two-point form has no z field, so do not put z into a y field or assume an unseen third dimension is included. Perform the extra squared term explicitly when the question supplies spatial coordinates.
Handle units and repeated measurements
If coordinates come from a scaled plan where one grid unit represents 2 metres, a computed separation of 10 grid units represents 20 metres. If the horizontal and vertical scales differ, convert both coordinate differences to physical lengths before taking the square root. For repeated positions along a journey, calculate each consecutive segment and add their lengths to estimate the sampled path. Using only the first and last point measures displacement magnitude and misses any intermediate turns or return travel.
Keep coordinate pairs and units together
An ordered pair is written (x,y), with the horizontal coordinate first. Label the points before substituting numbers, and use the same point order in every difference. Negative coordinates are positions relative to the chosen origin; they do not make a geometric length negative. If coordinates represent measured lengths, put both axes in the same length unit before using the ordinary distance formula. A graph whose horizontal axis is time and vertical axis is temperature can have a meaningful rate of change, but the square root of their squared differences is not an ordinary physical distance.
Check the answer against the original points
Plotting a small sketch helps distinguish a plausible calculation from an input-order mistake. A segment’s midpoint must lie between its endpoints, and its distance must be at least the absolute horizontal change and at least the absolute vertical change. Reversing the endpoints leaves distance and midpoint unchanged. It also leaves a defined slope unchanged because both differences reverse sign. Keep exact fractions or square roots until the requested final rounding step; rounding each coordinate before subtracting can noticeably change a short segment between nearby points.
Use a plane-coordinate tool for plane-coordinate data
The linked calculator accepts two numeric coordinate pairs. It does not read coordinates from a photograph, identify a street route, or transform latitude and longitude into a local map projection. Record how the coordinates were obtained, the axis scale and the requested output before entering them. For a drawing measured in centimetres, the resulting distance is in centimetres; for a unitless exercise, report coordinate units. The input fields contain numbers only, so retain the unit labels in your working rather than appending them to a numeric field.
Calculator for the supported step
The linked calculator handles two-dimensional Cartesian points. For three-dimensional coordinates, add the squared z difference in a separate calculation.