What the midpoint formula finds
The midpoint of a line segment is the single point that sits exactly halfway between its two endpoints — equal distance from each end, lying directly on the segment connecting them. It's one of the first coordinate geometry concepts taught alongside distance and slope, and it shows up constantly in practical work: finding the center of a wall segment for a fixture, locating the halfway point on a map route, centering an object between two anchor points in design software, or splitting a line into two equal parts for construction layout.
This calculator supports both 2D points (X, Y) and 3D points (X, Y, Z) — leave the Z fields blank for a flat, two-coordinate midpoint, or fill in both Z1 and Z2 for a three-dimensional midpoint. It also reports the straight-line distance between your two original points, which is useful context since the midpoint and the distance are calculated from the same coordinate differences.
The formula and what each variable means
2D: M = ( (x₁+x₂)/2, (y₁+y₂)/2 )
3D: M = ( (x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2 )
Where (x₁, y₁, z₁) is the first point and (x₂, y₂, z₂) is the second point — you simply average each coordinate independently. The result, M, is the midpoint. The calculator also computes the straight-line distance between the two points using the distance formula, an extension of the Pythagorean theorem: distance = √[(x₂−x₁)² + (y₂−y₁)² (+ (z₂−z₁)² in 3D)].
Worked example
Find the midpoint between (2, 3) and (8, 11). Mx = (2 + 8) ÷ 2 = 5. My = (3 + 11) ÷ 2 = 7. So the midpoint is M = (5, 7). The distance between the two original points is √[(8−2)² + (11−3)²] = √(36 + 64) = √100 = 10. Entering X1=2, Y1=3, X2=8, Y2=11 (leaving Z1 and Z2 blank) reproduces exactly this: Midpoint M = (5, 7) and a distance of 10.
Common mistakes and how to interpret the result
- Mixing up which point is which. The midpoint formula is symmetric (swapping point 1 and point 2 gives the same midpoint), but if you're also tracking distance or direction, keep your labeling consistent across a multi-step problem.
- Filling in only one Z coordinate. If you intend a 3D midpoint, both Z1 and Z2 need values — leaving one blank while filling the other doesn't default sensibly, so the calculator will ask you to complete both or clear both for a 2D result.
- Confusing midpoint with "closest point" or "average of a data set." The midpoint formula only works for exactly two coordinate points on a line segment — it's not the same as finding a centroid of three or more points, which uses a different formula (dividing by the number of points, not by 2).
- Forgetting the midpoint lies exactly on the segment. Unlike some geometric centers, the coordinate midpoint always falls precisely on the straight line between the two endpoints — if your application needs a point off that line, midpoint isn't the right tool.