Easy CalculatorsOnline
A little less guesswork.

Geometry · EVERYDAY CLARITY

Coordinate distance & midpoint calculator

Compare two points in a flat Cartesian plane.

Units & number format

Number formatting changes the display; the interface and guides are in English. Dates use calendar controls; numeric lists use decimal points and comma or space separators.

01 · CALCULATE

Work out your numbers

Your inputs stay in this browser.

Example result · using the values shown

Distance between points
10
Midpoint(4, 6)
See visual ↓

Euclidean distance, not geographic or curved-surface distance.

02 · SEE THE RESULT

Your numbers, pictured

Example visualization

From coordinate changes to distance

Δx 6andΔy 8
Calculated result10

Distance is the square root of the sum of squared coordinate changes.

03 · UNDERSTAND THE METHOD

How the coordinate distance & midpoint calculator works

Two points in a rectangular coordinate plane determine a straight segment. This calculator finds its length and the point halfway along it. Distance uses the horizontal and vertical changes as the legs of a right triangle; midpoint averages the two x-coordinates and the two y-coordinates separately. Enter signed coordinates to work in any quadrant. The calculation assumes the axes use the same scale and a flat Euclidean plane.

The formula and its variables

d = √[(x₂ − x₁)² + (y₂ − y₁)²]; M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
(x₁, y₁)
Coordinates of the first endpoint.
(x₂, y₂)
Coordinates of the second endpoint.
d and M
Straight-line distance and midpoint coordinates.

The calculation, step by step

  1. Enter each endpoint as one x and one y coordinate. Keep the coordinate units and axis scale consistent.
  2. Subtract corresponding coordinates to obtain horizontal and vertical changes. Square each change, add them, and take the square root for distance.
  3. Average the endpoint x-values and y-values separately to find the midpoint. Check that the midpoint lies halfway between both coordinate pairs.

A worked example

From (1, 2) to (7, 10), the horizontal change is 6 and the vertical change is 8. The distance is √(36 + 64) = 10 coordinate units. The midpoint is ((1 + 7)/2, (2 + 10)/2) = (4, 6). Reversing the endpoints leaves both answers unchanged. If the endpoints coincide, distance is zero and that shared point is also the midpoint.

Example inputs and calculated output
First x coordinate1
First y coordinate2
Second x coordinate7
Second y coordinate10
Distance between points10

How to read the result and visual

Distance is always nonnegative, while coordinates and their differences may be negative. The midpoint is a location, so it needs both coordinates rather than a single length. The length is a direct segment distance, not a route constrained to streets or a path along the coordinate axes. The two calculations answer complementary questions about the same segment.

Assumptions, rounding, and limitations

Latitude and longitude are angular coordinates on Earth and should not be inserted here as if they were equal-scale planar lengths. The calculator excludes a third spatial dimension, map projections, obstacles, and unequal axis scales. Very large nearby coordinates can lose precision when subtracted. Measurement uncertainty remains separate from the ideal coordinate result.

Frequently asked questions

Does reversing the endpoints change the result?

No. Squared differences and coordinate averages are symmetric.

Can I use this for GPS distance?

Use a geographic distance method instead; Earth’s curvature and coordinate units require different assumptions.

Reference sources

How we check calculations and what verification covers