Try Mathsqrt x2-x1 x2-x1 y2-y1 y2-y1. This online calculator finds the distance and midpoint between two points in cartesian coordinates. Dx 1-x 2 2 y 1-y 2 2.
And the middle point is the average of both coordinates.
However this calculator also displays the line on the graph in blue and shows the. The distance is about 5656854 not 4. The distance between two points AxA yA A x A y A and BxB yB B x B y B in two-dimensional Cartesian coordinate plane is the length of the segment connecting them AB dA B xB xA2 yB yA2 A B d A B x B - x A 2 y B - y A 2. The shortest path distance is a straight line.