The short answer: The midpoint of a segment is the average of its endpoints: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). It sits exactly halfway along the straight line, so each coordinate is halfway between the endpoints. Distance and slope describe the segment; the midpoint locates its centre. Order does not matter for the midpoint.

Key takeaways

  • Average each coordinate separately. Never average x with y.
  • The order of the points does not matter. Swapping them leaves the midpoint unchanged.
  • Half the distance is a length. The midpoint is a point, not half the distance.
  • The midpoint lies on the segment. It also lies on the perpendicular bisector.
  • Add a third coordinate for 3D. Average z exactly as you average x and y.

Midpoint is an average, not half the distance

The midpoint formula is M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Each coordinate is the arithmetic mean of the corresponding endpoint coordinates. For a segment from (2, 3) to (8, 7), the midpoint is ((2 + 8) ÷ 2, (3 + 7) ÷ 2) = (5, 5). The point is on the segment, three units right and two units up from the first endpoint, and the same distance from the second.

Two common confusions are worth naming. First, the midpoint is not half the distance: that would be a number such as 3.6, while the midpoint is an ordered pair. Second, the midpoint is not found by averaging all four numbers and splitting them; x pairs with x, and y pairs with y. The formula works for positive, negative, fractional, and zero coordinates, because it is just addition and division.

Worked example: (2, 3) to (8, 7)

M = ((2 + 8) ÷ 2, (3 + 7) ÷ 2) = (5, 5). The horizontal change is dx = 8 − 2 = 6 and the vertical change is dy = 7 − 3 = 4. The distance is d = √(6² + 4²) = √52 ≈ 7.211. The slope is dy ÷ dx = 4 ÷ 6 = 2/3, so the line rises two units for every three it runs.

Check the midpoint by measuring to each endpoint. From (2, 3) to (5, 5): dx = 3, dy = 2, distance = √13 ≈ 3.606. From (5, 5) to (8, 7): dx = 3, dy = 2, distance = √13. The two halves match, and their sum is 2√13 = √52, the full distance.

Negative coordinates and fractional midpoints

Signs need care, but the formula is unchanged. For (−3, 4) and (5, −2): M = ((−3 + 5) ÷ 2, (4 + (−2)) ÷ 2) = (1, 1). The changes are dx = 5 − (−3) = 8 and dy = −2 − 4 = −6, so the distance is √(64 + 36) = 10 and the slope is −6 ÷ 8 = −0.75. The midpoint (1, 1) is four units right and three units down from (−3, 4), and four right and three down again from (1, 1) to (5, −2).

Midpoints do not have to be integers. For (1, 2) and (2, 5), M = (1.5, 3.5). A midpoint with a decimal is normal and often more accurate than rounding to a grid point. If a problem demands integer coordinates, check whether the endpoints were chosen to make that possible; if not, rounding the midpoint moves it off the exact centre.

Distance, slope, and what each tells you

Distance, slope, and midpoint answer different questions about the same segment. Distance measures length and is never negative. Slope measures steepness and direction: positive rises to the right, negative falls, zero is horizontal, and a vertical line has undefined slope because dx = 0. The midpoint gives position, not size or direction. Mixing them up produces answers that look plausible but answer the wrong question.

All three come from the same two coordinate differences. With dx = x₂ − x₁ and dy = y₂ − y₁, the slope is dy ÷ dx, the distance is √(dx² + dy²), and the midpoint is (x₁ + dx/2, y₁ + dy/2). The last form is equivalent to the average formula and is often easier to use when you already have the changes.

The perpendicular bisector

The perpendicular bisector of a segment is the line through the midpoint that is perpendicular to the segment. Every point on it is equidistant from the two endpoints, which is why it is used to find a centre, a cell tower, or a fair meeting point. Its slope is the negative reciprocal of the segment’s slope. For the segment from (2, 3) to (8, 7), the midpoint is (5, 5), the segment slope is 2/3, and the perpendicular slope is −3/2.

The equation is y − 5 = −(3/2)(x − 5), which rearranges to 3x + 2y = 25. Check the midpoint: 15 + 10 = 25. Pick another point on the line and its distances to both endpoints will be equal by construction.

Three dimensions: averaging z as well

In space, the midpoint adds a third average: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2, (z₁ + z₂) ÷ 2). For (1, 2, 3) and (3, 6, 11), the midpoint is (2, 4, 7). The distance is √(2² + 4² + 8²) = √(4 + 16 + 64) = √84 ≈ 9.165. Each coordinate difference is halved on the way to the midpoint, so the midpoint is equidistant from both endpoints in three dimensions too.

The same logic extends to any number of dimensions: average each coordinate. That is useful in data work, where a centroid is the coordinate-wise mean of points, and in graphics, where a bounding-box centre is the midpoint of opposite corners.

Finding the other endpoint from the midpoint

If M is the midpoint of A and B, then B = 2M − A. For M = (5, 5) and A = (2, 3), B = (10 − 2, 10 − 3) = (8, 7). This is the same relationship rearranged: M = (A + B) ÷ 2, so A + B = 2M. The result is worth checking by recomputing the midpoint from A and B.

The vector view makes the formula intuitive. The displacement from A to B is B − A; half of it is (B − A) ÷ 2; adding that to A gives A + (B − A) ÷ 2 = (A + B) ÷ 2. The midpoint is therefore the point you reach by travelling half the displacement, and the other endpoint is the point you reach by travelling the full displacement from A.

Weighted midpoints and division points

A weighted midpoint moves the centre toward one endpoint. If A has weight m and B has weight n, the weighted average is (mA + nB) ÷ (m + n). The section formula for a point P dividing AB in the ratio AP:PB = m:n is P = (nA + mB) ÷ (m + n), because the weights are swapped relative to the distances. For A = (0, 0), B = (6, 3), and a 1:2 ratio, P = (2 × 0 + 1 × 6) ÷ 3, (2 × 0 + 1 × 3) ÷ 3) = (2, 1).

The centroid of a triangle is the average of its three vertices: ((x₁ + x₂ + x₃) ÷ 3, (y₁ + y₂ + y₃) ÷ 3). It is not the midpoint of any side, but it lies two-thirds of the way from each vertex to the opposite side’s midpoint.

Units, maps, and curvature

Coordinates carry units, and the midpoint is reported in those units. If the axes are in metres, the midpoint is in metres; if one axis is in feet and the other in inches, convert before averaging or the result is meaningless. The distance uses the same unit as the coordinates, not square units. On a scaled drawing, the midpoint scales linearly, so its position on the paper corresponds to the same fractional position on the ground.

Latitude and longitude are angles, not planar coordinates. Averaging them gives a reasonable approximate centre over a small area, but over long distances it is not the true geographic midpoint: lines of longitude converge toward the poles, and the shortest path is a great-circle arc. For anything larger than a city block or a local site plan, use a projected coordinate system or a geodesic calculation.

Common mistakes

  • Averaging x with y, as in (x₁ + y₁) ÷ 2, instead of keeping the coordinates separate.
  • Halving the distance and calling it the midpoint; the midpoint is a point.
  • Dropping a negative sign when adding coordinates, especially when both are negative.
  • Using the midpoint to compute slope; slope needs the coordinate differences, not the averages.
  • Forgetting the z coordinate in a three-dimensional problem.
  • Treating latitude and longitude as flat x and y over long distances.

Frequently asked questions

What is the midpoint formula?

M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). It is the average of the x-coordinates and the average of the y-coordinates.

Does the order of the points matter?

No. Addition is commutative, so swapping the endpoints leaves the midpoint unchanged. Slope and the signs of dx and dy do reverse.

How do I find the midpoint of (0, 0) and (6, 8)?

M = (3, 4). The distance is 10, and the midpoint is 5 units from each endpoint.

Can the midpoint be outside the segment?

No. For two distinct endpoints, the midpoint always lies between them on the segment.

What is the midpoint in three dimensions?

Average all three coordinates: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2, (z₁ + z₂) ÷ 2).

How do I find an endpoint from the midpoint?

Use B = 2M − A. If M = (5, 5) and A = (2, 3), then B = (8, 7).

Further reading

Keep exploring

Read next Logarithm: Base, Product Rule, and Scale A logarithm is an exponent in disguise. Learn the definition, the product, quotient and power rules, change of… Read next Order of Operations: PEMDAS and Ambiguous Expressions PEMDAS is a shared convention, not a law of mathematics. Learn the real precedence rules, the exponent and… Read next Significant Figures: Counting, Rounding, and Precision Significant figures record how precisely a value was measured. Learn the counting rules, the addition and multiplication rules,…