How it works
Type the x and y of point A and of point B. The page gives the midpoint, the distance between the points and the slope of the line.
Formula
Distance = square root of ((x2 - x1) squared + (y2 - y1) squared).
Slope = (y2 - y1) / (x2 - x1), with no value when x1 = x2.
Sources
Example
Point A, x: 2; Point A, y: -3; Point B, x: 10; Point B, y: 9. Distance between the points: 14.42
Frequently asked questions
What if both points share the same x?
Then the line is vertical and the slope has no value. The page shows a dash for it, and the distance is just the gap in y.
How do I find the other end of a segment?
Double the midpoint and subtract the end you know: B = 2M - A.