,

The midpoint of a segment is the point halfway from one endpoint to the other. Its coordinates are the averages of the corresponding endpoint coordinates. This is a location, not a length.

A midpoint is useful for locating the centre of a diameter, checking diagonals and constructing a perpendicular bisector. The method also works when an endpoint has a negative or fractional coordinate.

On this page

Why coordinate averages locate the midpoint

Let A=(x1,y1)A=(x_1,y_1) and B=(x2,y2)B=(x_2,y_2). Starting at AA, travel half the horizontal change and half the vertical change:

M=(x1+x2−x12,y1+y2−y12).M=\left(x_1+\frac{x_2-x_1}{2},\ y_1+\frac{y_2-y_1}{2}\right).

Simplifying gives the familiar formula:

M=(x1+x22,y1+y22).M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right).

This construction puts MM on the segment, with the same displacement from AA to MM as from MM to BB. Consequently the two half-segments have equal length. The OpenStax coordinate-geometry reference develops this midpoint relationship.

Worked example with negative coordinates

Take A=(−2,5)A=(-2,5) and B=(6,−1)B=(6,-1). Average each coordinate separately:

M=(−2+62,5+(−1)2)=(42,42)=(2,2).\begin{aligned}M&=\left(\frac{-2+6}{2},\frac{5+(-1)}{2}\right)\\&=\left(\frac4{2},\frac4{2}\right)=(2,2).\end{aligned}

Equal displacement on either side of a midpoint

Equal displacement on either side of a midpointM at two, two divides the segment from negative two, five to six, negative one into two equal five-unit segments.−4−3−2−112345678−3−2−112345670xyA (−2, 5)M (2, 2)B (6, −1)A to MM to B
Each half changes x by 4 and y by −3, so each has length 5.
Diagram explanation and exact data

The midpoint is found by averaging corresponding coordinates. Both segment halves share direction (4, −3). A point merely equidistant from A and B need not lie on this segment.

Equal displacement on either side of a midpoint: exact reference data
Point Coordinates Distance from A
A (−2,5)(-2,5) 00
M (2,2)(2,2) 55
B (6,−1)(6,-1) 1010

Check the halfway relationship

The change from AA to MM is (4,−3)(4,-3). The change from MM to BB is also (4,−3)(4,-3). Each half therefore has length

42+(−3)2=5.\sqrt{4^2+(-3)^2}=5.

The full segment has length 10. Both the coordinate calculation and the distance check support the midpoint (2,2)(2,2).

Notice that the midpoint’s xx-coordinate is between the endpoint xx-coordinates, and its yy-coordinate is between the endpoint yy-coordinates. This is a useful reasonableness check, though being inside that coordinate rectangle alone does not prove a point is the midpoint.

Recovering a missing endpoint

Suppose A=(−1,2)A=(-1,2) and the midpoint is M=(3,4)M=(3,4). Let the other endpoint be B=(u,v)B=(u,v). Apply the formula to the unknown coordinates:

−1+u2=3,2+v2=4.\frac{-1+u}{2}=3,\qquad\frac{2+v}{2}=4.

Multiply each equation by 2, then isolate the unknown:

−1+u=6⇒u=7,2+v=8⇒v=6.-1+u=6\Rightarrow u=7,\qquad2+v=8\Rightarrow v=6.

Therefore B=(7,6)B=(7,6). Check by averaging AA and BB: ((−1+7)/2,(2+6)/2)=(3,4)((-1+7)/2,(2+6)/2)=(3,4).

A compact equivalent rule is

B=2M−A,B=2M-A,

where the arithmetic is performed coordinate by coordinate. Averaging the known endpoint and the midpoint instead would locate a quarter-point of the full segment, not the missing endpoint.

Equidistant does not automatically mean midpoint

For A=(−2,0)A=(-2,0) and B=(2,0)B=(2,0), the midpoint is (0,0)(0,0). The point P=(0,3)P=(0,3) is also equally far from both endpoints, since both distances are 13\sqrt{13}. Nevertheless, PP is not the midpoint because it is not on the segment.

All points equidistant from two distinct endpoints lie on their perpendicular bisector. The midpoint is the one point where that bisector meets the segment. A midpoint claim therefore needs both location on the segment and equal division of its length.

From a diameter to a circle centre

If the endpoints of a circle’s diameter are A=(−1,2)A=(-1,2) and B=(5,6)B=(5,6), its centre is their midpoint:

C=(−1+52,2+62)=(2,4).C=\left(\frac{-1+5}{2},\frac{2+6}{2}\right)=(2,4).

The radius is the distance from the centre to either endpoint:

r=(5−2)2+(6−4)2=13.r=\sqrt{(5-2)^2+(6-4)^2}=\sqrt{13}.

The diameter has length 2132\sqrt{13}. Do not use the full endpoint separation as the radius. Equations of Circles uses this construction to build the equation of the circle.

Midpoints and other division ratios

A midpoint always divides a segment in the ratio 1:11:1. More generally, a point a fraction tt of the way from AA to BB has coordinates

P(t)=((1−t)x1+tx2,(1−t)y1+ty2),0≤t≤1.P(t)=\bigl((1-t)x_1+tx_2,\ (1-t)y_1+ty_2\bigr),\qquad0\le t\le1.

At t=0t=0 this gives AA; at t=1t=1 it gives BB; and at t=12t=\tfrac12 it gives the midpoint. This is also an early example of a parametric description. Here, “halfway” means halfway along the straight segment, not halfway in travel time along an arbitrary route.

Practice questions

  1. Find the midpoint of (−2,5)(-2,5) and (6,−1)(6,-1).
  2. One endpoint is (−1,2)(-1,2) and the midpoint is (3,4)(3,4). Find the other endpoint.
  3. A point is equally far from two endpoints. Must it be their midpoint?
Check your answers
  1. M=((−2+6)/2,(5−1)/2)=(2,2)M=((-2+6)/2,(5-1)/2)=(2,2).
  2. B=2(3,4)−(−1,2)=(7,6)B=2(3,4)-(-1,2)=(7,6). Averaging this endpoint with (−1,2)(-1,2) recovers (3,4)(3,4).
  3. No. It could be another point on the perpendicular bisector. It must also lie on the segment to be its midpoint.

Related topics

Gradient or Slope of a Line describes the direction of a segment. Parallel and Perpendicular Lines explains how to construct its perpendicular bisector, while Parametric Equations develops the division formula above.

Sources and further reading