Steps
- Write the coordinates of both endpoints in the same order. Choose 2D for x and y, or 3D if both points have z values.
- Average the two x values, then the y values. In three dimensions, average the z values separately.
- Use the resulting ordered pair or triple as a position in the same coordinate system.
Worked example
For endpoints (−6, 4, 2) and (2, −8, 10), the averages are (−6 + 2) ÷ 2 = −2, (4 − 8) ÷ 2 = −2, and (2 + 10) ÷ 2 = 6. The midpoint is (−2, −2, 6). Each half moves 4 units in x, −6 in y and 4 in z.
What to check
A quick check is to subtract the first endpoint from the midpoint, then subtract the midpoint from the second endpoint. The two displacement vectors should match.