How it works
Enter the coordinates of two points. The distance is the hypotenuse of the right triangle whose legs are the horizontal and vertical differences, and the midpoint is the average of the two x values and the two y values. Works with negative and decimal coordinates alike.
Formula
Midpoint = ((x1 + x2) / 2, (y1 + y2) / 2).
Example
Example in plain words. From (1, 2) to (4, 6).
Legs: 3 and 4, so the distance is sqrt(9 + 16) = 5.
Midpoint: (2.5, 4).
From (-3, -4) to the origin the distance is also 5.
Frequently asked questions
Is this the 3-4-5 triangle?
Exactly. The default example is the famous right triangle with legs 3 and 4 and hypotenuse 5.
Can I use it on a map?
Only for short distances on a flat projection. Across countries the Earth curves, and you need the haversine formula on latitude and longitude instead.