Midpoint Between Two Points
Find the midpoint between two points (x1, y1) and (x2, y2) in the coordinate plane. The midpoint is the point exactly halfway between them, computed as the average of the x-coordinates and the average of the y-coordinates.
- Distance between points
- 5.6569
- Distance from each point to midpoint
- 2.8284
Enter the coordinates of two points. The midpoint M = ((x1 + x2) / 2, (y1 + y2) / 2) is the point exactly halfway along the line segment connecting them.
What the Midpoint Calculator Does
This Midpoint Calculator finds the exact center point between two points on a coordinate plane. You enter the coordinates of the first point (x1, y1) and the second point (x2, y2), and it returns the midpoint as an ordered pair (mx, my).
It is useful for students working through geometry and algebra homework, anyone studying for the SAT or similar exams, and people doing practical work such as drafting, CAD layouts, mapping, or game development where you need the point that sits halfway along a line segment.
How the Midpoint Formula Works
The midpoint is simply the average of the two x-values and the average of the two y-values. Averaging the x-coordinates gives the horizontal center, and averaging the y-coordinates gives the vertical center.
The formula is:
mx = (x1 + x2) / 2
my = (y1 + y2) / 2
Written as a single point, the midpoint M = ( (x1 + x2) / 2 , (y1 + y2) / 2 ). The order of the two points does not matter, because addition is commutative — swapping point 1 and point 2 gives the same result.
Worked Example with Real Numbers
Suppose point A is (2, 3) and point B is (8, 7). Plug the values into each part of the formula:
mx = (2 + 8) / 2 = 10 / 2 = 5
my = (3 + 7) / 2 = 10 / 2 = 5
So the midpoint is (5, 5). You can sanity-check this: 5 is exactly halfway between the x-values 2 and 8, and 5 is exactly halfway between the y-values 3 and 7. If you graphed all three points, (5, 5) would land right in the middle of the segment connecting A and B.
Handling Negative and Decimal Coordinates
The same formula works for negative numbers and decimals — just keep the signs straight. For example, with A (-4, 6) and B (2, -2):
mx = (-4 + 2) / 2 = -2 / 2 = -1
my = (6 + (-2)) / 2 = 4 / 2 = 2
The midpoint is (-1, 2). A midpoint can fall between integers, such as (3.5, -1.5); that is normal and correct, not a rounding error.
Tips and Common Mistakes
A few habits prevent most errors:
- Add before you divide. A common slip is dividing one coordinate by 2 first instead of summing the pair, then halving.
- Don't subtract. The midpoint formula adds the coordinates. Subtracting is the distance/slope setup, not the midpoint.
- Mind the signs. With negative values, (6 + (-2)) equals 4, not 8 — write the addition out fully.
- Keep x with x and y with y. Never mix an x-value with a y-value when averaging.
- Check that the result is between the two values. Each midpoint coordinate must lie between the originals; if it doesn't, recheck your arithmetic.
Factors That Affect the Result
The midpoint depends only on the four input coordinates, so accuracy comes down to entering them correctly. Confirm you are using the right point for x1, y1 versus x2, y2, and that any units (meters, pixels, grid squares) are consistent between both points.
Note that the standard formula is for a flat 2D plane. For points on a sphere, such as latitude and longitude on a map over long distances, the simple average gives an approximation rather than the true geographic midpoint. For 3D problems, extend the same idea with a z-term: mz = (z1 + z2) / 2.
Frequently asked questions
What is the midpoint formula?
The midpoint of a segment with endpoints (x1, y1) and (x2, y2) is M = ((x1 + x2) / 2, (y1 + y2) / 2). You simply average the two x-values and the two y-values.
Does the order of the points matter?
No. Because the formula uses addition, swapping point 1 and point 2 gives exactly the same midpoint.
Can the coordinates be negative or decimals?
Yes. The midpoint formula works for any real numbers, including negative values and decimals. Just enter them as-is.
What is the distance shown in the results?
It is the straight-line (Euclidean) distance between the two points, sqrt((x2-x1)^2 + (y2-y1)^2). The midpoint sits exactly halfway, so it is that distance divided by two from each endpoint.