How to use the Midpoint Calculator
- Write down the coordinates of both endpoints.
- Average the x-coordinates and the y-coordinates separately.
- Combine the two averages into the midpoint coordinate pair.
Midpoint formula
The midpoint divides a straight line segment into two equal lengths. Moving halfway from A to B gives Ax + (Bx − Ax)/2 = (Ax + Bx)/2, with the same reasoning for y. Use 2D Cartesian coordinates, not latitude and longitude.
M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
Missing an endpoint? Use B = (2Mx − Ax, 2My − Ay) in the Endpoint Calculator.
What the terms mean
- (x₁, y₁)
- The coordinates of the first endpoint.
- (x₂, y₂)
- The coordinates of the second endpoint.
- M
- The midpoint: halfway along the straight segment joining the endpoints.
Midpoint worked examples
Find a midpoint with positive coordinates
Find the midpoint between (2, 4) and (8, 10).
- Average the x-coordinates: (2 + 8) ÷ 2 = 5.
- Average the y-coordinates: (4 + 10) ÷ 2 = 7.
Answer: The midpoint is (5, 7).
Use negative coordinates
Find the midpoint between (−4, 2) and (6, −8).
- Average the x-coordinates: (−4 + 6) ÷ 2 = 1.
- Average the y-coordinates: (2 + (−8)) ÷ 2 = −3.
Answer: The midpoint is (1, −3).
Get a decimal midpoint
Find the midpoint between (1, 2) and (2, 5).
- Average the x-coordinates: (1 + 2) ÷ 2 = 1.5.
- Average the y-coordinates: (2 + 5) ÷ 2 = 3.5.
Answer: The midpoint is (1.5, 3.5). Whole-number endpoints can produce decimal midpoint coordinates.
Find the midpoint of a horizontal segment
A = (−2, 5) and B = (8, 5).
- Mx = (−2 + 8)/2 = 3.
- My = (5 + 5)/2 = 5.
- The y-coordinate stays the same because the segment is horizontal.
Answer: M = (3, 5).
Midpoint Calculator FAQs
Can a midpoint have decimals?
Yes. Integer endpoints can produce decimal coordinates. This tool accepts finite decimal coordinates; it does not accept fraction expressions such as 1/3.
Does the order of the points matter?
No. Adding each pair of coordinates gives the same result in either order, so swapping A and B leaves the midpoint unchanged.
Why do I average each coordinate?
Moving halfway from A to B means taking half the horizontal change and half the vertical change. Algebraically, Ax + (Bx − Ax)/2 = (Ax + Bx)/2, with the same reasoning for y.
Can the midpoint equal an endpoint?
Yes, when both endpoints are identical. Then A, B and M are the same point, which the diagram labels explicitly.
How do I find a missing endpoint?
If A and midpoint M are known, B = (2Mx − Ax, 2My − Ay). Use the linked Endpoint Calculator for that task.