Midpoint Calculator
Enter the endpoints of a line segment to find the point exactly halfway between them, plus the segment length.
Formula
| Symbol | Meaning |
|---|---|
| M | Midpoint of the segment |
| (x₁, y₁), (x₂, y₂) | The two endpoints |
How to Use This Calculator
- Enter the x₁.
- Enter the y₁.
- Enter the x₂.
- Enter the y₂.
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| x₁ | -2 |
|---|---|
| y₁ | 5 |
| x₂ | 8 |
| y₂ | -1 |
| Midpoint | (3, 2) |
|---|---|
| Midpoint x | 3 |
| Midpoint y | 2 |
| Segment length | 11.6619 |
About This Calculation
The midpoint of a segment is the point that sits exactly halfway between its two endpoints. Its coordinates are simply the averages of the endpoints' coordinates: add the two x-values and halve them, then do the same for y. The midpoint is equally far from both ends, so each half of the segment is exactly half the total length shown above.
A useful check is that the midpoint must lie between the endpoints in each coordinate. If your x-values are −2 and 8, the midpoint's x must be somewhere between them (here 3). A common slip is subtracting instead of adding — that gives half the distance, not the midpoint. You can also run the formula backwards: if you know one endpoint A and the midpoint M, the other endpoint is 2M − A.
Midpoints are used to find the center of a circle from the ends of a diameter, to construct perpendicular bisectors, to place labels or supports at the center of a beam or wall, and in computer graphics for subdividing lines and curves. The same averaging idea extends to three dimensions — just average the z-coordinates as well — and to finding the centroid of a triangle, which averages all three vertices.
Frequently Asked Questions
- How do I find an endpoint if I know the midpoint?
- Double the midpoint and subtract the known endpoint: x₂ = 2·Mx − x₁ and y₂ = 2·My − y₁.
- Is the midpoint the same as the average?
- Yes — each coordinate of the midpoint is the mean of the corresponding endpoint coordinates.