Midpoint Calculator
Find the exact midpoint between two coordinates (x1,y1) and (x2,y2), or solve for a missing endpoint given one endpoint and the midpoint.
The midpoint formula
The midpoint of the segment joining and is:
Each coordinate of is just the average of the matching coordinates of the two endpoints — the point equally far from both, along the straight segment connecting them.
Worked example
For and :
For whole-number coordinates like and , the midpoint is a whole number too: .
Finding a missing endpoint
Sometimes the midpoint is already known, along with just one endpoint — for example, the midpoint of a circle's diameter is its center, and the center plus one point on the circle determines the point directly opposite it. Solving the midpoint formula for the unknown endpoint gives:
Example: endpoint , midpoint :
So the missing endpoint is .
Distance between the endpoints
Because a segment's two endpoints and its midpoint all sit on the same straight line, this calculator also reports the exact distance between the two endpoints (see the Distance Between Two Points calculator for the full formula) — useful when you need both the midpoint and the segment's length in one step.
Where midpoints show up
- Geometry: the center of a circle is the midpoint of any diameter.
- Construction and design: finding the exact center of a wall, beam, or shape to balance or divide it evenly.
- Graphics and animation: interpolating a point exactly halfway between two positions.
Frequently asked questions
- What is the midpoint formula?
- The midpoint of the segment joining and is — simply the average of the two x-coordinates and the average of the two y-coordinates.
- Why is the midpoint just an average of the coordinates?
- A point exactly halfway between two endpoints is, by definition, equally far from both. Averaging each coordinate spreads the total difference evenly in both directions, which is exactly what "equally far from both" means for a straight segment.
- What does it mean when the midpoint has a coordinate like -1/2?
- It happens whenever the sum of the two matching coordinates is odd — dividing an odd number by 2 never lands on a whole number. For example , and is a perfectly valid (and exact) midpoint coordinate, not a rounding artifact.
- How do I find a missing endpoint if I know the midpoint and one endpoint?
- Invert the midpoint formula: and . This works because the midpoint formula says is the average of and — multiplying by 2 undoes the averaging, and subtracting isolates the unknown endpoint.
- What is a common mistake when finding the missing endpoint?
- Subtracting instead of doubling first — the correct formula is , not . Forgetting the factor of 2 is the single most common error, since it looks superficially similar to the ordinary midpoint formula.
- Does it matter which point I call (x1,y1) and which I call (x2,y2)?
- No. Addition doesn't care about order, so swapping the two endpoints gives the exact same midpoint. This is different from the distance and slope calculators, where swapping the points flips signs along the way (though the final answer still comes out the same).
- How is this related to the Distance and Slope calculators?
- All three take the same two points and and extract a different fact about the segment between them: Distance finds its length, Slope finds its steepness, and Midpoint finds the point exactly halfway along it.