Coordinates let you measure a segment even when it is not horizontal or vertical. The distance formula comes from a right triangle, and the midpoint formula comes from averaging positions. Understanding those origins makes the formulas easier to use correctly.
Horizontal and vertical changes form legs
For points and the changes are and Their absolute values are the lengths of the horizontal and vertical legs of a right triangle. The segment joining the points is the hypotenuse.
By the Pythagorean theorem,
Squaring makes the result independent of which endpoint you name first. The square root turns the squared distance back into a length.
Example: triangle in the plane
Find the distance from to The horizontal change is and the vertical change is Therefore
A sketch with a horizontal segment followed by a vertical segment shows the right triangle. The route along those two legs has length 7, but the direct diagonal is only 5. Adding the changes measures a different route from the straight-line distance.
For points and the changes are and 8, giving Negative displacement indicates direction; distance itself cannot be negative.
The displacement from (-1, 1) to (3, 4) makes a right triangle with horizontal leg 4 and vertical leg 3.
The displacement from to (3, 4) makes a right triangle with horizontal leg 4 and vertical leg 3.
Describe this figure
The displacement from to (3, 4) makes a right triangle with horizontal leg 4 and vertical leg 3.
Marked points: A: filled marker at ; B: filled marker at (3, 4).
The midpoint averages each coordinate
Halfway between two x-coordinates is and halfway between two y-coordinates is Thus
For endpoints and the midpoint is It is halfway left-to-right and halfway up-to-down. Average matching coordinates; do not average with .
A midpoint need not have whole-number coordinates. Between and it is That location is still exact.
Example: find a missing endpoint
One endpoint is and the midpoint is From A to M, the movement is 4 right and 3 up. Repeat the same movement to reach the other endpoint,
Algebra gives the same result: implies and implies Averaging A with M would find a point only one quarter of the way along the original segment, not B.
Apply the formulas to shapes
To check whether four points make equal sides, compare their squared distances. If each side's squared length is 25, each side is 5; repeated square roots are unnecessary.
Equal sides alone do not prove a quadrilateral is a square. You also need a right-angle condition, such as perpendicular adjacent sides. Coordinate evidence should support every part of the shape's definition.
Try it yourself
For endpoints and find the distance and midpoint. Pause before checking.
Answer: The changes are 6 and 8, so distance is 10. The midpoint is because the coordinate averages are and
What to remember
Distance uses coordinate differences and the Pythagorean theorem. Midpoint uses coordinate sums and division by two. A missing endpoint requires extending the half-segment, not taking another midpoint.