How it works
The distance formula is the Pythagorean theorem applied to the gap between two points. Subtract the x values and the y values, square each, add them and take the square root. The result is in the same unit as your coordinates.
Formula
midpoint = ((x1 + x2)/2, (y1 + y2)/2)
Sources
Example
From (1, 2) to (7, 10): difference in x is 6 and in y is 8. d = √(36 + 64) = 10. Check: 10² = 100 = 36 + 64. The midpoint is (4, 6).
Frequently asked questions
Does the order of the points matter?
No. Swapping the points gives the same distance.
Can I use negative numbers?
Yes.
Does it work in 3D?
Add (z2 − z1)² under the root.
What unit is the answer in?
The same unit as the inputs.