How to use the Endpoint Calculator
- Enter the x- and y-coordinates of the known endpoint A.
- Enter the midpoint M. Do not enter the second endpoint in these fields.
- Select Calculate. Double each midpoint coordinate and subtract the matching coordinate of A.
- Check that averaging A and the calculated B reproduces the entered midpoint.
This calculator uses a flat 2D coordinate plane. It accepts negative and decimal coordinates, but not fraction expressions or geographic latitude and longitude.
Endpoint formula
Start from Mx = (Ax + Bx)/2. Multiply both sides by 2 and subtract Ax to get Bx = 2Mx − Ax. Apply the same rearrangement to the y-coordinate. Geometrically, B is the reflection of A through M.
B = (2Mx − Ax, 2My − Ay)
Have both endpoints? Find their halfway point with the Midpoint Calculator.
What the terms mean
- A = (Ax, Ay)
- The known endpoint of the line segment.
- M = (Mx, My)
- The midpoint, halfway between the two endpoints.
- B = (Bx, By)
- The missing endpoint, on the opposite side of M from A unless all three points coincide.
Endpoint worked examples
Find an endpoint with positive coordinates
A = (2, 4) and M = (5, 7). Find B.
- Bx = 2 × 5 − 2 = 8.
- By = 2 × 7 − 4 = 10.
- Check: ((2 + 8)/2, (4 + 10)/2) = (5, 7).
Answer: B = (8, 10).
Work with negative coordinates
A = (−4, 2) and M = (1, −3). Find B.
- Bx = 2 × 1 − (−4) = 6.
- By = 2 × (−3) − 2 = −8.
- Check: ((−4 + 6)/2, (2 + (−8))/2) = (1, −3).
Answer: B = (6, −8).
Use a decimal midpoint
A = (1, 2) and M = (1.5, 3.5). Find B.
- Bx = 2 × 1.5 − 1 = 2.
- By = 2 × 3.5 − 2 = 5.
- Check: ((1 + 2)/2, (2 + 5)/2) = (1.5, 3.5).
Answer: B = (2, 5).
Endpoint Calculator FAQs
How can I check the missing endpoint?
Average the known endpoint A and calculated endpoint B coordinate by coordinate. The result should reproduce M, allowing for floating-point rounding.
Can the answer be negative or a decimal?
Yes. A negative coordinate places a point on the other side of an axis. Decimal coordinates are valid.
What if the known endpoint equals the midpoint?
Then the missing endpoint has the same coordinates too: A = B = M. The segment has zero length.
Does it matter which endpoint I know?
Either endpoint can be entered as A. The midpoint must go in the M fields. Swapping the endpoint and midpoint changes the problem.
Can I enter fractions or latitude and longitude?
The fields accept finite numbers, not fraction expressions such as 1/3. This is a Cartesian coordinate calculation, not a geographic midpoint calculation.
How precise is the result?
Calculations use floating-point arithmetic. Decimal answers display up to 15 significant digits; very large or closely spaced numbers can lose precision. Unsupported infinite results produce an error.
Check an endpoint by reversing the calculation
With A = (2, 4) and B = (8, 10), average the x-coordinates to get 5 and the y-coordinates to get 7. This reproduces M = (5, 7). The result panel performs this check with your inputs.