# Coordinate distance & midpoint calculator

Canonical HTML: https://easycalculatorsonline.com/geometry/distance-midpoint/

Compare two points in a flat Cartesian plane.

Interactive calculations run in your browser. Values below are the published example, not a calculation for your circumstances.

## Calculator inputs

| Input | Example value | Constraints and options |
| --- | --- | --- |
| First x coordinate | 1 | min: -1000000000000. max: 1000000000000. step: any |
| First y coordinate | 2 | min: -1000000000000. max: 1000000000000. step: any |
| Second x coordinate | 7 | min: -1000000000000. max: 1000000000000. step: any |
| Second y coordinate | 10 | min: -1000000000000. max: 1000000000000. step: any |

**International formulas and units**

Use the units and assumptions stated on this page. Mathematical definitions apply across countries; material, device and measurement conditions remain your inputs.

## Published example result

> Coordinate distance & midpoint
> Distance between points: 10
> Midpoint: (4, 6)
> Euclidean distance, not geographic or curved-surface distance.
> https://easycalculatorsonline.com/geometry/distance-midpoint/

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**

| Input or output | Value |
| --- | --- |
| First x coordinate | 1 |
| First y coordinate | 2 |
| Second x coordinate | 7 |
| Second y coordinate | 10 |
| Distance between points | 10 |

### 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

- [OpenStax: distance and midpoint ↗](https://openstax.org/books/intermediate-algebra/pages/11-1-distance-and-midpoint-formulas-circles)

[How we check calculations and what verification covers](https://easycalculatorsonline.com/methodology/)

## Related calculators

[**Point-to-line distance ↗**

Measure the shortest perpendicular distance to a planar line.](https://easycalculatorsonline.com/geometry/point-line-distance/)[**Intersection of two lines ↗**

Solve the crossing point of two slope-intercept equations.](https://easycalculatorsonline.com/geometry/line-intersection/)[**Slope from two points ↗**

Calculate rise over run and recognize vertical lines.](https://easycalculatorsonline.com/geometry/line-slope/)

[← Explore all calculators](https://easycalculatorsonline.com/#browse)

## Publisher and access

Published by Wolfpack Labs. Free to use; no account or payment required.

[Email wolfpack.labs.in@gmail.com](mailto:wolfpack.labs.in@gmail.com)

[About](https://easycalculatorsonline.com/about/) · [Methodology](https://easycalculatorsonline.com/methodology/) · [Contact](https://easycalculatorsonline.com/contact/) · [Privacy](https://easycalculatorsonline.com/privacy/) · [Terms](https://easycalculatorsonline.com/terms/)
