The midpoint formula finds the point halfway between two endpoints. If A = (x₁, y₁) and B = (x₂, y₂), their midpoint is M = ((x₁ + x₂)/2, (y₁ + y₂)/2). Add the two x-coordinates and divide by 2, then do the same with the y-coordinates.

The answer is a pair of coordinates, not a length. This guide covers a labelled graph, negative and decimal coordinates, a missing endpoint and a three-dimensional example.

Midpoint formula at a glance

FindFormulaMeaning
Midpoint in 2DM = ((x₁ + x₂)/2, (y₁ + y₂)/2)Average the x-values and the y-values separately.
Midpoint in 3DM = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2)Average each of the three coordinate pairs.
Missing endpoint BB = (2mₓ − x₁, 2mᵧ − y₁)Use known endpoint A(x₁, y₁) and midpoint M(mₓ, mᵧ).

The subscripts 1 and 2 identify the endpoints; they are not powers. Swapping the endpoint names does not change the midpoint because x₁ + x₂ = x₂ + x₁.

What is a midpoint?

A midpoint lies on a line segment and divides it into two equal lengths. For segment AB, its midpoint M satisfies AM = MB. Each length equals half of AB.

The midpoint is halfway through both the horizontal change and the vertical change. For the x-coordinate, x₁ + (x₂ − x₁)/2 simplifies to (x₁ + x₂)/2. The same reasoning gives the y-coordinate.

How to use the midpoint formula

  1. Write the endpoints as A(x₁, y₁) and B(x₂, y₂). Keep each coordinate paired with its axis.
  2. Add x₁ and x₂, including their signs, then divide the total by 2.
  3. Add y₁ and y₂, including their signs, then divide the total by 2.
  4. Write M = (midpoint x-coordinate, midpoint y-coordinate). Check that it lies halfway along the segment.

Each axis needs its own average. Do not combine all four coordinates into a single number.

Midpoint on a coordinate graph

Midpoint of A(1, 1) and B(7, 5)An equal-scale grid shows A at one, one and B at seven, five. The midpoint M is at four, three. Matching marks indicate that AM and MB have equal length.01234567812345xyA(1, 1)B(7, 5)M(4, 3)Each grid step represents 1 unit on either axis.
The midpoint M lies on AB and divides it into two equal segments. Matching marks show AM = MB.

For A(1, 1) and B(7, 5), the x-coordinate is (1 + 7)/2 = 4, and the y-coordinate is (1 + 5)/2 = 3. Therefore M = (4, 3). From A to M, the changes are +3 horizontally and +2 vertically. The changes from M to B are identical.

Check the lengths with the distance formula: AM = √(3² + 2²) = √13 and MB = √13. The two halves have equal length.

Worked midpoint examples

1. Negative coordinates

Find the midpoint of A(−6, 4) and B(2, −8).

  1. x-coordinate = (−6 + 2)/2 = −4/2 = −2.
  2. y-coordinate = (4 + (−8))/2 = −4/2 = −2.
  3. Therefore M = (−2, −2).

Keep the negative signs inside the sums. Taking absolute values would move the answer to a different point. The midpoint does not have to share a quadrant with either endpoint.

2. Decimal coordinates

Find the midpoint of A(1.5, −2.4) and B(4.5, 5.6).

  1. x-coordinate = (1.5 + 4.5)/2 = 6/2 = 3.
  2. y-coordinate = (−2.4 + 5.6)/2 = 3.2/2 = 1.6.
  3. Therefore M = (3, 1.6).

Fractions work the same way. For example, the average of 1/2 and 3/2 is ((1/2) + (3/2))/2 = 1. Keep exact fractions until the end if a decimal would repeat.

3. Find a missing endpoint

A segment has endpoint A(−3, 2) and midpoint M(4, −1). Find B. Rearrange mₓ = (x₁ + x₂)/2 to get x₂ = 2mₓ − x₁. Rearrange the y-equation in the same way.

  1. x₂ = 2(4) − (−3) = 8 + 3 = 11.
  2. y₂ = 2(−1) − 2 = −2 − 2 = −4.
  3. Therefore B = (11, −4).

Check by averaging the endpoints: ((−3 + 11)/2, (2 + (−4))/2) = (4, −1). This recovers the given midpoint.

4. Vertical and horizontal segments

For A(3, −5) and B(3, 7), the midpoint is ((3 + 3)/2, (−5 + 7)/2) = (3, 1). A vertical segment keeps the same x-coordinate.

For A(−4, 6) and B(8, 6), the midpoint is ((−4 + 8)/2, (6 + 6)/2) = (2, 6). A horizontal segment keeps the same y-coordinate. Neither calculation needs a slope.

Midpoint formula in 3D

A point in three dimensions has coordinates (x, y, z). Average each pair independently: M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2).

For A(−2, 4, 6) and B(8, −6, 2), M = ((−2 + 8)/2, (4 + (−6))/2, (6 + 2)/2) = (3, −1, 4). There is simply one extra coordinate to average.

Distance, midpoint and slope

QuantityWhat it tells youForm of the answer
MidpointThe location halfway along a segmentA coordinate pair (x, y) in 2D
DistanceThe length between two pointsA non-negative number, with length units if given
SlopeThe change in y divided by the change in xA number; undefined for a vertical line

Use addition to average endpoint coordinates for a midpoint. The distance formula uses coordinate differences and a square root. These operations answer different questions.

Using a midpoint to find a centre

The centre of a circle is the midpoint of a diameter. For diameter endpoints (−4, 2) and (6, 8), the centre is ((−4 + 6)/2, (2 + 8)/2) = (1, 5). The midpoint of an ordinary chord is not generally the centre, so check that your endpoints define a diameter.

See the circle formulas for radius, diameter, area and circumference. The same midpoint method finds the centre from opposite ends of a sphere’s diameter in 3D.

Common midpoint mistakes

  • Subtracting instead of adding. A midpoint uses averages: each coordinate is a sum divided by 2.
  • Dropping negative signs. Put parentheses around negative values when substituting.
  • Dividing only one term by 2. Calculate the whole sum first: (x₁ + x₂)/2.
  • Mixing axes. Average x with x, and y with y.
  • Checking only equal distances. A midpoint must also lie on the segment. Many points away from the segment are equally far from both endpoints.

Practice questions

  1. Find the midpoint of A(2, 6) and B(8, 10).
  2. Find the midpoint of A(−8, −3) and B(4, 7).
  3. Find the midpoint of A(0.5, 2) and B(3.5, −6).
  4. Endpoint A is (2, −5) and midpoint M is (−1, 3). Find B.
  5. Find the 3D midpoint of A(−4, 2, 8) and B(6, −2, 0).

Answers

  1. M = (5, 8), from (2 + 8)/2 and (6 + 10)/2.
  2. M = (−2, 2), from (−8 + 4)/2 and (−3 + 7)/2.
  3. M = (2, −2), from (0.5 + 3.5)/2 and (2 + (−6))/2.
  4. B = (−4, 11), from 2(−1) − 2 and 2(3) − (−5).
  5. M = (1, 0, 4), by averaging each coordinate pair.

Frequently asked questions

What is the midpoint formula?

For endpoints (x₁, y₁) and (x₂, y₂), the midpoint is ((x₁ + x₂)/2, (y₁ + y₂)/2). It finds the point halfway along their segment by averaging each coordinate pair.

Does the midpoint formula work with negative numbers?

Yes. Keep the signs, add the coordinates on each axis and divide each sum by 2. For example, the midpoint x-coordinate between −6 and 2 is −2. Do not take absolute values.

How do I find an endpoint when I know the midpoint?

Double each midpoint coordinate and subtract the matching coordinate of the known endpoint. For known endpoint A(x₁, y₁) and midpoint M(mₓ, mᵧ), the other endpoint is B(2mₓ − x₁, 2mᵧ − y₁).

Can a midpoint be outside the line segment?

No. For two distinct endpoints, it lies inside their segment. If both endpoints are the same point, the midpoint is that point. Equal distances alone are not enough: a midpoint must also be on the segment.

Can a midpoint have decimal or fractional coordinates?

Yes. Even integer endpoints can give fractional midpoints. The midpoint of (0, 0) and (1, 3) is (1/2, 3/2), or (0.5, 1.5). Both forms describe the same location.

Explore more geometry formulas

Browse coordinate geometry guides, practise the distance formula, or return to All Geometry Formulas for 2D and 3D topics.

References: OpenStax, College Algebra 2e, Section 2.1; Intermediate Algebra 2e, Section 11.1; Calculus Volume 3, Section 2.2.

All Geometry Formulas shares clear explanations, worked examples and printable resources for learning geometry. Explore guides to shapes, angles, area, volume and coordinates. Visit our About page or report a correction.

Comments are closed.