GEOMETRY

Distance and midpoint calculator

Calculate straight-line distance and midpoint between two Cartesian coordinate pairs.

Calculated on your device

Enter your values

YOUR ANSWER

Results

Select Calculate to see results.

Calculation steps and assumptions

Calculate to see the steps for your inputs; the worked example below is available without JavaScript.

Worked example

Points (0,0) and (3,4) are 5 units apart, with midpoint (1.5,2).

Inputs and units

Use the units shown in each label. For shared dimension selectors, all length fields use the same selected unit and areas use its square. Scientific notation such as 1e-3 is supported in numeric fields. Results are rounded for display.

Browse all calculators

INTERPRET THE ANSWER

Coordinate differences define a right triangle

Points (−1, 2) and (5, 10) differ by 6 horizontally and 8 vertically: distance 10, midpoint (2, 6).

Assumptions and common mistakes

Ordinary Cartesian distance assumes the same linear unit on both axes. Latitude and longitude require a geographic distance model.

Use the worked example above to check the input convention before entering your own values. Displayed decimals are rounded; extra digits do not increase the precision of your measurements. Read about calculation accuracy and corrections.