Midpoint of Two Points
Enter two pairs of coordinates and get the exact point halfway between them — the centre of the segment, found by averaging each coordinate.
The midpoint formula
midpoint = ((x1 + x2) / 2, (y1 + y2) / 2) — average the x-coordinates and the y-coordinates independently. Enter four numbers, read the centre point.
Order doesn't matter
Going from point A to B gives the same midpoint as B to A — addition is commutative, so the centre never moves.
What is the midpoint of two points?
The exact centre of the segment
The midpoint of two points is the point that sits exactly halfway along the straight line connecting them — the centre of the segment. Given a first point (x1, y1) and a second point (x2, y2), it is found with the midpoint formula: midpoint = ((x1 + x2) / 2, (y1 + y2) / 2). You average the two x-coordinates to get the centre's x, and average the two y-coordinates to get its y. That single point is the same distance from each endpoint, whether the points are pixels on a screen, cities on a map, or anchors in a design.
Enter the four coordinates and the calculator returns the midpoint (mx, my) instantly, with each coordinate shown separately.
The formula has two short steps, one for each coordinate of the midpoint.
midpoint = ((x1 + x2) / 2, (y1 + y2) / 2)First add the two x-coordinates and divide by 2 — that is the midpoint's x, the point halfway across. Then add the two y-coordinates and divide by 2 — that is the midpoint's y, the point halfway up. Averaging each coordinate independently is the whole idea: the result lands precisely in the centre of the segment, equidistant from both endpoints.
Suppose the first point is (0, 0) and the second is (4, 6).
Midpoint x
(0 + 4) / 2 = 2 — halfway across, left-to-right.
Midpoint y
(0 + 6) / 2 = 3 — halfway up, bottom-to-top.
Midpoint
The centre of the segment is the point (2, 3).
The output is a single point, (mx, my), that sits exactly halfway along the straight line between the two endpoints — the centre of the segment. It is the same distance from each endpoint, and that distance is half the length of the whole segment. The two supporting numbers, the midpoint x and midpoint y, are simply the average of the two x-coordinates and the average of the two y-coordinates: each axis is handled on its own, and together they pin down the centre. Because addition is commutative, the order of the points never changes the answer — swapping point A and point B gives the identical midpoint. When the two points are identical, the midpoint is that same point. This one idea powers a wide range of real work: finding the centre of a line segment or a circle's centre from a diameter, placing labels and anchors halfway in design, snapping objects to the middle in graphics and CAD, and locating a fair meeting point halfway between two spots on a map.
The formula is exact, but a couple of practical points are worth keeping in mind.
Flat plane and consistent units
This is the midpoint on a flat, two-dimensional plane. It is the centre of the straight segment, not a point along a road, a curved path, or a great circle across the Earth, and it ignores any third dimension. The coordinates are also unit-agnostic, so the midpoint is only meaningful if both points use the same unit and the same scale — mixing metres with pixels, or stretching one axis relative to the other, produces a centre that means nothing.