Find the midpoint and the distance between two points, with every midpoint-formula and distance-formula step shown so you can see exactly how the answer was reached.
Two points
Midpoint—
Distance between points—
Step by step
How to Find the Midpoint
Enter two points to see their midpoint, the distance between them, and the working.
1
Enter both points
Type the x and y coordinates of your two points, like (0, 0) and (4, 6). Negative numbers and decimals both work.
2
The calculator applies both formulas
It averages the x-values and the y-values to get the midpoint, then applies the distance formula — really the Pythagorean theorem on the horizontal and vertical gaps — to get the length between the two points.
3
Read the result and steps
The midpoint and distance appear at the top, with every arithmetic step listed below. Need just the two-leg distance instead? The Pythagorean Theorem Calculator solves for any missing side of a right triangle.
Frequently Asked Questions
What is the midpoint formula?
The midpoint formula finds the exact point halfway between two coordinates: M = ((x1 + x2) / 2, (y1 + y2) / 2). It simply averages the two x-values and the two y-values separately. For the points (0, 0) and (4, 6), the midpoint is ((0 + 4) / 2, (0 + 6) / 2) = (2, 3).
How is the midpoint different from the distance between two points?
The midpoint is a location, the point exactly halfway between two others, while the distance is a length, the straight-line span between them. The midpoint is found by averaging the coordinates, M = ((x1 + x2) / 2, (y1 + y2) / 2), and the distance by the Pythagorean-based formula d = √((x2 - x1)² + (y2 - y1)²). For (1, 2) and (7, 10) the midpoint is (4, 6) and the distance is 10. This calculator returns both from the same pair of points.
Can the midpoint formula be used in 3D?
The midpoint formula extends to three dimensions by averaging one more coordinate: M = ((x1 + x2) / 2, (y1 + y2) / 2, (z1 + z2) / 2). Each axis is averaged independently, which is why the pattern keeps working in any number of dimensions. For (0, 0, 0) and (4, 6, 10) the 3D midpoint is (2, 3, 5). This calculator works with 2D points, so for a 3D problem average the z-values the same way alongside the x and y results shown here.
How do you find the midpoint of a line segment on a graph?
Read the coordinates of the segment's two endpoints, add the x-values and divide by 2, then add the y-values and divide by 2. The pair you get is the midpoint, and it always lies exactly on the segment itself. For a segment from (-2, 1) to (6, 7) the midpoint is ((-2 + 6)/2, (1 + 7)/2) = (2, 4). Enter x1, y1, x2 and y2 above to get the midpoint and the segment's length instantly, with the working shown.