The midpoint of a line segment joining two points A(x₁, y₁, z₁) and B(x₂, y₂, z₂) is found by averaging the coordinates:
M=(2x1+x2,2y1+y2,2z1+z2)
Worked Example — Midpoint of A and B
Find the midpoint of A(6, 2, 1) and B(−2, 3, 4).
M=(26+(−2),22+3,21+4)=(24,25,25)=(2,2.5,2.5)
The midpoint is M(2, 2.5, 2.5).