Small tools. Clear answers.
ƒ MATH Ready to calculate

Endpoint Calculator

Enter one endpoint A and the midpoint M of a line segment. Find the other endpoint B with coordinate-by-coordinate steps, a diagram and a midpoint check.

Let’s work it out

Enter one endpoint and the midpoint, not both endpoints. Negative numbers and finite decimals are supported; fraction expressions such as 1/3 are not. These are 2D coordinates, not latitude and longitude.

◈ Calculated in your browser. Your inputs stay here.
EXAMPLE RESULT
—

Calculate to see your answer.

Calculation methods, precision limits and reproducible checks are explained in our methodology. Review the working and report a correction if a result does not match your inputs. See methods and checks.

01

How to use the Endpoint Calculator

  1. Enter the x- and y-coordinates of the known endpoint A.
  2. Enter the midpoint M. Do not enter the second endpoint in these fields.
  3. Select Calculate. Double each midpoint coordinate and subtract the matching coordinate of A.
  4. 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.

02

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.

THE FORMULA B = (2Mx − Ax, 2My − Ay)

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.
TRY IT ON PAPER

Endpoint worked examples

Find an endpoint with positive coordinates

A = (2, 4) and M = (5, 7). Find B.

  1. Bx = 2 × 5 − 2 = 8.
  2. By = 2 × 7 − 4 = 10.
  3. 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.

  1. Bx = 2 × 1 − (−4) = 6.
  2. By = 2 × (−3) − 2 = −8.
  3. 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.

  1. Bx = 2 × 1.5 − 1 = 2.
  2. By = 2 × 3.5 − 2 = 5.
  3. Check: ((1 + 2)/2, (2 + 5)/2) = (1.5, 3.5).

Answer: B = (2, 5).

03

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.

ONE LESS THING TO WORK OUT

There’s a tool for that.

Explore all calculators ↗