Midpoint Calculator

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

Inputs

Point A

Point B

Try an example

Midpoint (M)

(3, 2)

M lies exactly halfway along the segment from A to B.

x-coordinate
3
y-coordinate
2
Length of AB
17.204651
Distance from M to each end
8.602325

−6−4−2024681012−4−202468A (−4, 7)B (10, −3)M (3, 2)

Step-by-step solution

  1. Start with the midpoint formula.

    M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)

  2. Substitute the coordinates.

    M = (((−4) + 10) / 2, (7 + (−3)) / 2)

  3. Add each pair.

    M = (6 / 2, 4 / 2)

  4. Halve each sum.

    M = (3, 2)

The midpoint formula

M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2) the average of each coordinate

A(x₁, y₁)
one endpoint of the segment
B(x₂, y₂)
the other endpoint
M
the midpoint of segment AB

The x-coordinate and the y-coordinate can be treated separately. On the number line, the point halfway between 4 and 10 is 7, because it is the average of the two. The midpoint formula does that twice, once along each axis.

That is why the formula never involves squares or roots. It finds a position, not a length. If you want the length of the segment, use the distance calculator; the midpoint is always half of that length from each end.

Worked example

Find the midpoint of A(−6, 3) and B(4, 9).

x = (−6 + 4) / 2 = −2 / 2 = −1

y = (3 + 9) / 2 = 12 / 2 = 6

M = (−1, 6)

To check the answer, compare the two halves. From A to M the point moves 5 across and 3 up: −1 − (−6) = 5 and 6 − 3 = 3. From M to B it moves 4 − (−1) = 5 across and 9 − 6 = 3 up. Both halves are identical, so M is exactly in the middle.

Finding a missing endpoint

Sometimes the midpoint and one endpoint are given, and the other endpoint is the unknown. Rearrange the formula: if M is the midpoint of A and B, then B = (2xₘ − x₁, 2yₘ − y₁).

For example, if M is (3, −1) and A is (7, 2), then B = (2·3 − 7, 2·(−1) − 2) = (−1, −4). Enter A and B above to confirm that the midpoint comes back as (3, −1).

Where midpoints are used

  • Perpendicular bisectors. The bisector of a segment passes through its midpoint at a right angle. Find the slope of AB with the slope calculator, take the negative reciprocal, and use the midpoint as the point on the new line.
  • Circles. If two points are the ends of a diameter, their midpoint is the centre of the circle.
  • Triangles. A median joins a vertex to the midpoint of the opposite side, so finding midpoints is the first step in locating a centroid.

Midpoints of common point pairs

Each coordinate of the midpoint is the average of the matching coordinates, so it always lies exactly halfway along the segment. Points that mirror each other through the origin, such as (−4, −4) and (4, 4), have the origin as their midpoint.

Point APoint BMidpointLength of AB
(0, 0)(6, 8)(3, 4)10
(−2, 3)(6, −5)(2, −1)11.313708
(1, 1)(4, 5)(2.5, 3)5
(0, 0)(10, 0)(5, 0)10
(−4, −4)(4, 4)(0, 0)11.313708
(2.5, 1)(7.5, 4)(5, 2.5)5.830952

Frequently asked questions

Can the midpoint have decimal coordinates?

Yes. Whenever the two x-values (or y-values) add up to an odd number, half of the sum ends in .5. The midpoint of (1, 2) and (2, 4) is (1.5, 3). The calculator keeps full precision and only trims trailing zeros for display.

Does it matter which point is A and which is B?

No. Addition does not depend on order, so x₁ + x₂ equals x₂ + x₁. Swapping the endpoints gives the same midpoint.

What is the midpoint of two identical points?

The point itself. The segment has zero length, so there is nowhere else for the halfway point to be. The calculator shows this case and marks the single point on the graph.

How do I find the midpoint in three dimensions?

Average the z-coordinates too: ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2). This calculator works on a flat plane, so it only handles x and y.

How can I check that the midpoint is correct?

The midpoint must be the same distance from both endpoints. Enter A and M, then M and B, into the distance calculator. The two distances should match and each should be half of the full length shown in the results.