The distance between any two points is the length of the line segment joining the points. There is only one line passing through two points. So, the distance between two points can be calculated by finding the length of this line segment connecting the two points.

'

The formula for the distance, dd, between two points whose coordinates are (x1,y1)(x1,y1) and (x2,y2(x2,y2) is:

d = √[(x2x2 − x1x1)+ (y2y2 − y1y1)2]

This is called the Distance Formula.

To find the distance between two points given in 3-D plane, we can apply the 3D distance formula, given as,

d = √[(x2x2 − x1x1)+ (y2y2 − y1y1)2 + (z2z2 − z1z1)2]

Middle point between two point