Midpoint Calculator
Last updated: November 4, 2026
Find the coordinate halfway between two endpoints and check their separation.
On this page
Quick summary: Find the coordinate halfway between two endpoints and check their separation.
Read the complete guide
Updated reference sections in this guide are in English.
Using this calculator
Enter the two endpoints of a segment in Cartesian coordinates. The midpoint is halfway along the segment, independent of which endpoint is entered first. The calculator returns an ordered pair (x, y), with the endpoint distance as a separate check. Use coordinate pairs from the same reference system.
Calculation method
Midpoint y = (y₁ + y₂) / 2
Each coordinate is averaged independently. This is an equal-weight average of the two positions. It does not calculate the midpoint of a curved path, the center of an arbitrary group of points or a location weighted by population or travel time.
Worked examples
A segment from the origin
For endpoints (0, 0) and (3, 4), the midpoint is (1.5, 2). The full distance is 5, and the midpoint is 2.5 units from either endpoint.
Opposite signed positions
For (−6, 2) and (4, 8), average the x values to get −1 and the y values to get 5. The midpoint is (−1, 5).
Check this scenario in the calculator:
- First x coordinate
- 0
- First y coordinate
- 0
- Second x coordinate
- 3
- Second y coordinate
- 4
Understanding the result
A midpoint does not have to have whole-number coordinates. If both endpoints are the same, that point is also their midpoint. When a segment is horizontal or vertical, the unchanged coordinate remains unchanged while the other is averaged. These properties provide quick checks on manual entry.
Boundaries and assumptions
Coordinates can range from −10¹² to 10¹² and are evaluated in normal browser precision. Geographic coordinates require appropriate spherical or map-projection methods; simple coordinate averaging can fail around the date line. The displayed endpoint distance assumes that both axes use the same linear unit.
Questions and reference
Is the midpoint always on the segment?
In a flat Cartesian plane, yes: it is the point at parameter one half between the endpoints.
Can this find a weighted center?
No. Both endpoints have equal weight. A weighted center needs a different formula.
Reference: OpenStax: rectangular coordinates and graphs.