Midpoint Calculator
Find the point exactly halfway between two coordinates — or work backwards from a midpoint and one endpoint to the missing endpoint.
- x = (2 + 8) ÷ 2 = 5
- y = (3 + 11) ÷ 2 = 7
- Segment length
- 10
- Each half
- 5
- Slope of segment
- 1.3333
- Trisection points
- (4, 5.6667) · (6, 8.3333)
- Perpendicular bisector
- y = -0.75x + 10.75
How the midpoint formula works
The midpoint's x-coordinate is the average of the two x-values, and its y-coordinate is the average of the two y-values. For (2, 3) and (8, 11): M = ((2 + 8)/2, (3 + 11)/2) = (5, 7).
To find a missing endpoint, reverse it: B = 2M − A. If M = (5, 7) and A = (2, 3), then B = (10 − 2, 14 − 3) = (8, 11).
Distance between the endpoints
The segment length shown with the result uses the distance formula, d = √((x₂ − x₁)² + (y₂ − y₁)²). For (2, 3) and (8, 11) that is √(36 + 64) = 10, so each half is 5. The distance formula calculator also works in 3D and shows the exact radical.
Dividing a segment in any ratio
The midpoint is the 1 : 1 case of the section formula. The point that splits A→B in the ratio m : n is ((n·x₁ + m·x₂)/(m + n), (n·y₁ + m·y₂)/(m + n)). The trisection points above are the 1 : 2 and 2 : 1 cases.
The perpendicular bisector passes through the midpoint at right angles to the segment. Every point on it is the same distance from both endpoints, which is how you find the center of a circle through three points.
Questions people ask
What is the midpoint formula?
M = ((x₁ + x₂)/2, (y₁ + y₂)/2) — the average of the x-coordinates and the average of the y-coordinates.
How do I find an endpoint from the midpoint?
Double the midpoint and subtract the known endpoint: x₂ = 2xₘ − x₁ and y₂ = 2yₘ − y₁.
What is the midpoint between 2 and 8 on a number line?
Average them: (2 + 8) ÷ 2 = 5. On a number line the midpoint formula has only one coordinate.
How do I find the midpoint and the distance together?
Midpoint = average of the coordinates; distance = √(Δx² + Δy²). This calculator shows both: the midpoint as the main result and the segment length below it.
Does the midpoint formula work in 3D?
Yes. Average the z-coordinates too: ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2).