Enter the coordinates of two points to find the straight-line distance, midpoint, and slope between them.
This tool finds the straight-line distance between two points on a 2D coordinate plane, along with the midpoint and slope of the connecting line.
Distance equals the square root of (x2 minus x1) squared plus (y2 minus y1) squared, derived from the Pythagorean theorem.
Enter the x and y coordinates of both points, then click Calculate to find the distance, midpoint, and slope.
Example: The distance between points (2, 3) and (7, 9) is the square root of 25 plus 36, which is approximately 7.81 units.
What if the two points have the same x-coordinate. The line is vertical, and the slope is undefined.
Is this the same as the Pythagorean theorem. Yes, the distance formula is a direct application of the Pythagorean theorem to coordinate geometry.