Midpoint Calculator

Enter the two endpoints of a line segment to find the point exactly halfway between them.

Midpoint-
Segment length-

The midpoint formula

The midpoint is the average of the x values and the average of the y values: M = ((x1 + x2) / 2, (y1 + y2) / 2). Add the two x coordinates and halve the result, then do the same for y. The midpoint is the same distance from both endpoints, so it also splits the segment into two equal halves.

Worked examples

Point 1Point 2Midpoint
(0, 0)(6, 8)(3, 4)
(1, 2)(7, 10)(4, 6)
(-3, 4)(5, -2)(1, 1)
(2, 2)(2, 10)(2, 6)
(-5, -5)(5, 5)(0, 0)

FAQ

What is the midpoint formula?

M = ((x1 + x2) / 2, (y1 + y2) / 2): the mean of the x coordinates and the mean of the y coordinates.

How do I find the other endpoint if I know the midpoint?

Double the midpoint and subtract the known endpoint: x2 = 2 x Mx - x1 and y2 = 2 x My - y1. For example, with midpoint (4, 6) and endpoint (1, 2), the other end is (7, 10).

Does the midpoint formula work with negative numbers?

Yes. Add the coordinates with their signs, then halve. The midpoint of (-3, 4) and (5, -2) is (1, 1).

What is the midpoint in 3D?

The same idea with a third coordinate: average x, y and z separately.

See also: slope calculator · distance between two points · pythagorean theorem calculator · all tools