Home / Math / Midpoint Formula

Midpoint Formula Explained: Between Two Points

The midpoint is the average of the coordinates: add the x values and halve, add the y values and halve. For (2, 3) and (8, 7), the midpoint is (5, 5). It is the point exactly halfway along the segment, in every direction at once.

6 min readUpdated October 2026Midpoint Calculator

The midpoint of a segment is the point exactly halfway between its two ends, and the formula is the simplest in coordinate geometry: average the x coordinates, average the y coordinates, and the pair is the midpoint. For points (2, 3) and (8, 7), the x average is (2 plus 8) divided by 2, or 5, and the y average is (3 plus 7) divided by 2, or 5, so the midpoint is (5, 5). No square roots, no slopes, no angles: just two averages. This guide works through the formula, the 3D version, the missing-endpoint trick, and the section formula that generalises it to any ratio.

Key Takeaways

  • Midpoint is ((x1 plus x2) divided by 2, (y1 plus y2) divided by 2). For (2, 3) and (8, 7), it is (5, 5).
  • A midpoint can be fractional: (1, 2) and (4, 6) give (2.5, 4), which is exact, not approximate.
  • The missing endpoint is twice the midpoint minus the known endpoint, and the section formula generalises the midpoint to any ratio.

The formula, and why it is an average

The midpoint formula takes the mean of each coordinate separately. For endpoints (x1, y1) and (x2, y2), the midpoint is ((x1 plus x2) divided by 2, (y1 plus y2) divided by 2). The reason is geometric: moving halfway along the segment means moving half the horizontal distance and half the vertical distance, and the averages are exactly those half-moves applied to the starting point.

The worked examples: (2, 3) and (8, 7) give ((2 plus 8) divided by 2, (3 plus 7) divided by 2), or (5, 5). Check it: (5, 5) is 3 right and 2 up from (2, 3), and 3 left and 2 down from (8, 7), equal steps both ways. (1, 2) and (4, 6) give (2.5, 4), and the fraction is exact: midpoints of integer points are often halves, and halves are answers, not approximations.

Vertical and horizontal segments are the easy cases that confirm the formula. A vertical segment from (3, 1) to (3, 9) has midpoint (3, 5): the x coordinate is unchanged, and the y coordinate averages 1 and 9. A horizontal segment from (1, 4) to (7, 4) gives (4, 4). The formula never needs a special case.

Midpoint versus distance: two different answers

Students confuse the midpoint with the distance, because both start from two points. The distance is a length, a single number, computed with square roots: the square root of ((x2 minus x1) squared plus (y2 minus y1) squared). The midpoint is a point, a pair of numbers, computed with averages. For (2, 3) and (8, 7), the distance is the square root of 52, about 7.21, while the midpoint is (5, 5).

The two answer different questions. Distance asks how far apart the points are. Midpoint asks what lies halfway between them. A question that asks for the centre of a segment, the middle of a line, or the point equidistant from both ends wants the midpoint. A question that asks for length, perimeter, or radius wants the distance. The calculator shows both, because they are the pair most often needed together.

The midpoint is also equidistant from both ends, which is its defining property: the distance from the midpoint to either endpoint is half the total distance. That property is what makes the midpoint useful for bisectors, centres, and constructions, where the halfway point is the anchor.

The missing endpoint: working backwards

Given one endpoint and the midpoint, the other endpoint is twice the midpoint minus the known endpoint, coordinate by coordinate. If the midpoint is (5, 5) and one endpoint is (2, 3), the other is (2 times 5 minus 2, 2 times 5 minus 3), or (8, 7). The algebra is the midpoint formula solved for the unknown: multiply both sides by 2, subtract the known value.

This trick appears constantly in homework, because it is the midpoint formula run backwards, and it is easy to check: average the two endpoints you now have and confirm the given midpoint. If the average does not match, the arithmetic went wrong somewhere, and the check takes seconds.

The same idea extends to the centroid of a triangle, which is the average of all three vertices. For a triangle with vertices (0, 0), (6, 0), and (0, 9), the centroid is (2, 3). The midpoint is the two-point average; the centroid is the three-point average; the pattern generalises to any number of points.

The third coordinate: midpoints in 3D

In three dimensions, average the z coordinates too. For points (1, 2, 3) and (5, 6, 7), the midpoint is (3, 4, 5): each coordinate is the average of its pair. The geometry is identical, with one more direction, and the calculator Advanced panel handles the third coordinate.

The 3D midpoint is the centre of the segment in space, equidistant from both ends, and it is used wherever a centre in space is needed: the centre of a beam, the middle of a flight path, the average position of two sensors. The formula does not change character with dimension; it only gains a coordinate.

A common error is averaging only two coordinates in a 3D problem, or averaging x with y. Each coordinate averages with its own kind only: x with x, y with y, z with z. The calculator keeps them separate, which is the safeguard.

Dividing a segment in a ratio: the section formula

The midpoint divides a segment in the ratio 1:1. The section formula generalises it to any ratio m:n: the point dividing the segment from (x1, y1) to (x2, y2) in the ratio m:n is ((m times x2 plus n times x1) divided by (m plus n), (m times y2 plus n times y1) divided by (m plus n)). At m equals n equals 1, this reduces to the midpoint formula, as it must.

The worked example: divide the segment from (1, 2) to (7, 8) in the ratio 1:2. The point is ((1 times 7 plus 2 times 1) divided by 3, (1 times 8 plus 2 times 2) divided by 3), or (3, 4). It sits one third of the way from the first point to the second, which is what a 1:2 ratio means: one part against two parts.

Ratios appear in centres of mass, in computer graphics interpolation, and in dividing lines for construction. The midpoint is the special case you already know; the section formula is the general case, and learning the general case makes the special case obvious.

Mistakes that move the midpoint

First, adding instead of averaging: (2 plus 8, 3 plus 7) is (10, 10), which is not on the segment at all. Second, averaging x with y, mixing coordinates. Third, dropping the fraction: (1, 2) and (4, 6) give (2.5, 4), and rounding to (3, 4) moves the point off the segment.

Fourth, confusing midpoint with distance, which gives a length where a point was asked for. Fifth, forgetting that the midpoint of a vertical line keeps the x coordinate: (3, 1) and (3, 9) give (3, 5), not (5, 5) or any other pair. The calculator plot shows the segment and its midpoint together, so each of these errors is visible at a glance.

Frequently Asked Questions

What is the midpoint formula?

The midpoint of (x1, y1) and (x2, y2) is ((x1 plus x2) divided by 2, (y1 plus y2) divided by 2). For (2, 3) and (8, 7), it is (5, 5).

What is the difference between the midpoint and the distance?

The midpoint is a point, a pair of coordinates, found by averaging. The distance is a length, a single number, found with square roots. For (2, 3) and (8, 7), the midpoint is (5, 5) and the distance is about 7.21.

How do you find the missing endpoint when you know the midpoint?

Double the midpoint and subtract the known endpoint, coordinate by coordinate. If the midpoint is (5, 5) and one endpoint is (2, 3), the other is (8, 7).

Can a midpoint have fractions or decimals?

Yes, and they are exact. The midpoint of (1, 2) and (4, 6) is (2.5, 4). Halves are the commonest fractional midpoints and should not be rounded away.

What if the two points form a vertical line?

The x coordinate stays the same and the y coordinates average. The midpoint of (3, 1) and (3, 9) is (3, 5).

Is there a midpoint formula for 3D points?

Yes: average the z coordinates as well. The midpoint of (1, 2, 3) and (5, 6, 7) is (3, 4, 5).

Enter two points to see the midpoint plotted on the segment, with distance beside it.

Open the Midpoint Calculator

Related Calculators

Keep going with the tools readers use next.

↑

Similar Posts