# How do you find the midpoint of P(5,8) Q(4,6)?

The midpoint is M=(9/2;7)
If you have coordinates of $2$ ends of a section: points $A = \left({x}_{A} , {y}_{A}\right)$ and B=(x_B;y_B), then to calculate the midpoint you can use the formula:
M=((x_A+x_B)/2;(y_A+y_B)/2)
If the section is located in $3 D$ space then you have to add the third coordinate ${z}_{M} = \frac{{z}_{A} + {z}_{B}}{2}$