The midpoint formula: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). Given two points (x₁, y₁) and (x₂, y₂), the midpoint M is the point on the segment joining them that is the same distance from both ends. Its x-coordinate sits halfway between the two x's, and its y-coordinate halfway between the two y's — so each coordinate of M is simply the average of the matching coordinates of the endpoints. That single sentence is the entire formula.
The Variables, Explained
- (x₁, y₁) and (x₂, y₂) are the two endpoints of the segment. Their order does not matter: addition commutes, so swapping them gives the same midpoint.
- M is the midpoint, itself a point with two coordinates — the answer is a pair, never a single number.
- (x₁ + x₂) / 2 is the average of the x-coordinates; (y₁ + y₂) / 2 is the average of the y-coordinates. Average each coordinate separately.
Why Averaging Works
The number halfway between two numbers on a line is always their average: halfway between 2 and 10 is (2 + 10) / 2 = 6, which is 4 above 2 and 4 below 10. A segment in the plane is handled one direction at a time. Moving from the first endpoint to the second, you travel the full horizontal change x₂ − x₁; halfway along, you have travelled half of it, landing at x₁ + (x₂ − x₁)/2, which simplifies to (x₁ + x₂) / 2. The same argument in the vertical direction gives (y₁ + y₂) / 2. So the midpoint formula is not a new rule to memorise — it is the ordinary idea of "halfway means average", applied twice. This is also why the formula generalises: the point one third of the way along is a weighted average, and the midpoint of a segment in 3D just averages a third coordinate the same way.
Worked Example 1: (2, 4) and (10, 8)
Average the x's: (2 + 10) / 2 = 12 / 2 = 6. Average the y's: (4 + 8) / 2 = 12 / 2 = 6. The midpoint is (6, 6). Sanity check with the distance formula: from (2, 4) to (6, 6) is √(16 + 4) = √20, and from (6, 6) to (10, 8) is also √(16 + 4) = √20 — equal distances, as a midpoint must give.
Worked Example 2: (−3, 5) and (7, −1)
Negatives change nothing about the method. Average the x's: (−3 + 7) / 2 = 4 / 2 = 2. Average the y's: (5 + (−1)) / 2 = 4 / 2 = 2. The midpoint is (2, 2). Notice how the negatives partly cancel inside the sums — that is exactly what should happen when the endpoints sit on opposite sides of an axis.
Common Mistakes
- Subtracting instead of adding. Differences belong to the distance and slope formulas. The midpoint adds: (x₁ + x₂) / 2, not (x₂ − x₁) / 2.
- Averaging x with y. (2 + 8) / 2 mixes coordinates from different axes. Keep the two averages in their own lanes.
- Forgetting the answer is a point. Reporting "6" for Example 1 loses half the answer; the midpoint is (6, 6).
- Dividing only one coordinate by 2. Both averages need their own division — the /2 applies to each sum separately.
- Dropping negative signs in the sum. In Example 2, 5 + (−1) = 4; treating it as 5 + 1 = 6 shifts the midpoint to (2, 3), which is not halfway to anything.
Check your endpoints in the distance formula calculator, read the standard treatment in OpenStax Elementary Algebra, and browse the full formulas library for more reference pages.