Endpoint Calculator - Missing Endpoint From Midpoint

Use this endpoint calculator with the endpoint formula to find the other endpoint of a line segment from one endpoint and the midpoint in real time.

Updated: June 16, 2026 • Free Tool

Endpoint Calculator

x-coordinate of the known endpoint A.

y-coordinate of the known endpoint A.

x-coordinate of the midpoint M between A and B.

y-coordinate of the midpoint M between A and B.

Results

x2 (missing endpoint)
0
y2 (missing endpoint) 0
Half-segment length (A to M) 0units
Full segment length (A to B) 0units

What Is the Endpoint Calculator?

An endpoint calculator finds the missing endpoint of a line segment when you already know one endpoint and the midpoint of that segment. You enter the coordinates of the known endpoint A and the midpoint M, and the tool returns the coordinates of the other endpoint B using the endpoint formula B = (2x - x1, 2y - y1). It pairs naturally with a midpoint calculator, the segment-length tool, and the slope calculator, and removes the algebra when you only need the final coordinates. Use it when a problem hands you a starting point and a halfway point and asks where the line ends.

  • Coordinate geometry homework: Solve textbook problems that hand you one endpoint and the midpoint and ask for the other endpoint.
  • Plotting forecast or trend points: Extend a known two-point trend forward by one step using a midpoint anchor.
  • Finding a mirror point: Recover the point that sits on the opposite side of M, the same distance away.
  • Cross-checking by hand: Plug in coordinates you have already solved and confirm the result.

It works in the same Cartesian plane used in most geometry, physics, and finance-graph problems, so any (x, y) pair from a worksheet can be entered directly. The result updates the moment you finish typing, so you can flip between candidate midpoints.

If you know both endpoints and need a midpoint, swap roles and use the midpoint formula. If you want the slope of the same line, the slope calculator picks up the coordinates you typed. For longer segments in 3D, a dedicated distance calculator handles the extra axis.

Once the endpoint is in hand, plug the same coordinates into the Slope Percentage Calculator to see how steep the segment is, which is the natural next step in any coordinate-geometry worksheet.

How the Endpoint Calculator Works

The tool is built directly on the midpoint identity. The midpoint of a line segment is the average of its two endpoints, so solving the midpoint identity for the missing endpoint gives the endpoint formula B = (2x - x1, 2y - y1).

B = (2x - x1, 2y - y1)
  • x1: x-coordinate of the known endpoint A.
  • y1: y-coordinate of the known endpoint A.
  • x: x-coordinate of the midpoint M between A and B.
  • y: y-coordinate of the midpoint M between A and B.
  • x2: x-coordinate of the missing endpoint B, computed as 2x - x1.
  • y2: y-coordinate of the missing endpoint B, computed as 2y - y1.

The half-segment and full-segment length use the standard distance formula d = sqrt((x - x1)^2 + (y - y1)^2) and act as a sanity check; if you typed the wrong midpoint the ratio between them will look off and you can re-check your inputs.

The same formula is used for every input, so the calculator is exact for any real-valued coordinates in the supported range. Negative coordinates, fractions, and decimals all work the same way; only the input units matter, not their sign.

Worked example - Khan Academy FAQ

Known endpoint A = (1, 3); midpoint M = (3, 5).

x2 = 2(3) - 1 = 5, y2 = 2(5) - 3 = 7.

B = (5, 7).

The segment AB runs from (1, 3) to (5, 7); the half-length from A to M is sqrt(4 + 4) = 2.83, so the full length from A to B is 5.66 units. This matches the Omni endpoint page, which uses the same identity.

According to Omni Calculator endpoint page, starting point (0, 0) and midpoint (4, 54000) give endpoint (8, 108000), confirming x2 = 2 * 4 - 0 and y2 = 2 * 54000 - 0

According to Khan Academy midpoint formula, the midpoint of segment AB is M = ((x1 + x2) / 2, (y1 + y2) / 2), so solving for x2 and y2 gives the endpoint formula

The half-length and full-length readouts in the result panel use the same distance formula as the Length of a Line Segment Calculator, so you can cross-check both calculations against the same pair of endpoints.

Key Concepts Behind the Endpoint Formula

These four concepts are the building blocks of the endpoint formula; understanding each one keeps the algebra transparent and helps you apply the same logic to 3D coordinates later.

Cartesian coordinates

A point in the plane is written as (x, y); x measures the horizontal distance from the y-axis, y the vertical distance from the x-axis.

Line segment

A line segment is the straight piece of a line between two endpoints, written AB when the endpoints are A and B. A segment has finite length, unlike a line that extends forever.

Midpoint identity

The midpoint of a segment is the average of its two endpoints: M = ((x1 + x2)/2, (y1 + y2)/2). The endpoint formula is this identity solved for the unknown B.

Vector reflection through the midpoint

B is the reflection of A through the midpoint M. The half-vector from A to M equals the half-vector from M to B, so B sits the same distance from M as A but on the opposite side.

The endpoint formula is the discrete version of vector reflection through a point. Once you accept that M is the average of A and B, the formula drops out by simple algebra, and the same pattern extends to higher dimensions with one extra coordinate per axis.

If you start to mix up signs, sketch the four points on a quick grid. Mark A and M, then check which side of M is further from A; that is the side where B lives.

When the focus is the distance between two known points rather than the missing endpoint, the 2D Distance Calculator applies the same d = sqrt((x - x1)^2 + (y - y1)^2) identity to a pair of endpoints.

How to Use the Endpoint Calculator

The endpoint calculator needs only two pieces of information: the coordinates of the starting endpoint and the coordinates of the midpoint. Follow the four steps below to read the missing endpoint off the result panel.

  1. 1 Enter the starting endpoint A: Type x1 and y1, the coordinates of the endpoint you already know, into the first row of inputs.
  2. 2 Enter the midpoint M: Type x and y, the coordinates of the midpoint between A and the missing endpoint, into the second row of inputs.
  3. 3 Read the missing endpoint B: Read x2 and y2 in the results panel. They are the coordinates of the other endpoint of the segment.
  4. 4 Check the half and full lengths: Use the half-segment length and the full segment length to verify that B is twice as far from A as M is.

If A = (1, 3) and M = (3, 5), the tool shows x2 = 5 and y2 = 7 as soon as you finish typing, with a half-length of 2.83 and a full length of 5.66. Plot those four points on a graph to confirm the segment is straight.

When the segment you are extending sits in a 3D model with an extra z-axis, the 3D Distance Calculator picks up the same endpoint-plus-midpoint pattern and computes the missing third coordinate alongside x2 and y2.

Benefits of Using the Endpoint Calculator

The endpoint calculator does the algebra, the sign handling, and the rounding in one pass. It is built for the situations where you would rather verify a number than redo the calculation by hand.

  • Real-time coordinate output: Both x2 and y2 update the moment you finish typing, so you can iterate between candidate midpoints without clicking a Calculate button.
  • Built-in length check: Half-segment and full-segment lengths are shown alongside the coordinates, the fastest way to catch a sign error or a swapped input.
  • Works with any real-valued coordinates: Negative, fractional, and decimal coordinates are all supported, so the calculator handles the full range of textbook and applied problems.
  • Pairs naturally with related tools: The result is the natural input for the slope calculator, the line-segment-length calculator, and the regression-line calculator that live next to it.
  • Transparent formula: The page shows the endpoint formula in plain text and links to the midpoint identity, so you can quote the result and show your work in the same answer.

Compared with doing the algebra by hand, this tool removes the most common slip - losing track of which sign goes on which variable - by performing the two multiplications and two subtractions for you. The full-segment length is then a one-line check that the segment you just built is consistent with the problem statement.

For a quick visual confirmation, copy x1, y1, x2, y2 into the slope calculator. The slope, the length, and the half-length should all be consistent, a good habit when a coordinate problem hands you two endpoints and asks for a third quantity.

When the same two-point pattern repeats across a dataset and you want the best-fit line, the Linear Regression Calculator generalizes the slope-and-endpoint idea across many data points in one step.

Factors That Affect Endpoint Results

The endpoint formula is exact, so most of the factors that change the result are factors in the input, not factors in the math. Watch these four inputs and you will rarely need a second pass.

Sign of the midpoint coordinates

Negative midpoints still give exact results, but they often look surprising on first glance because B is the reflection of A through M, not the average of A and M.

Distance between the known endpoint and the midpoint

Doubling the half-length gives the full segment length, so a larger gap between A and M directly produces a larger gap between A and B in the same direction.

Rounding and decimal precision

The result is shown to two decimals, but the formula is exact. If a downstream calculation needs higher precision, multiply and subtract the original inputs, not the rounded output.

Degenerate or zero-length segment

When A and M coincide, the segment collapses to a single point and B equals A. The full-length readout is the fastest way to spot this case.

  • The endpoint calculator only handles 2D Cartesian coordinates. For 3D segments you need a 3D distance calculator or the equivalent endpoint formula in three variables.
  • The result assumes a single segment AB. If the midpoint and the endpoint belong to different segments, the algebra still works but the geometric interpretation no longer does, so always check the segment you are extending.

When the half-segment length comes out much larger or smaller than you expected, the most common cause is a transposed input. Re-check the rows: x1 and y1 belong to the known endpoint, x and y to the midpoint.

The endpoint formula is exact for any real numbers, but the values you enter are usually rounded measurements from a sketch or a sensor. Propagate measurement error separately when that matters.

According to OpenStax Algebra and Trigonometry, the distance formula is d = sqrt((x2 - x1)^2 + (y2 - y1)^2) and the midpoint identity M = ((x1 + x2)/2, (y1 + y2)/2) both follow from the Pythagorean theorem in the Cartesian plane

Plotting the input and result on a quick sketch is the easiest sanity check, and the Coordinate Plane Calculator draws the four points and the segment for you when a mental picture is not enough.

Endpoint calculator - find the missing endpoint of a line segment from one endpoint and the midpoint using the endpoint formula.
Endpoint calculator - find the missing endpoint of a line segment from one endpoint and the midpoint using the endpoint formula.

Frequently Asked Questions

Q: How do I find the missing endpoint of a line segment?

A: Use the endpoint formula. With the known endpoint A = (x1, y1) and the midpoint M = (x, y), the other endpoint is B = (2x - x1, 2y - y1). The endpoint calculator on this page applies that formula the moment you finish typing, so you can read B off the results panel in real time.

Q: What is the endpoint formula in coordinate geometry?

A: The endpoint formula is B = (2x - x1, 2y - y1). It comes from rearranging the midpoint identity M = ((x1 + x2)/2, (y1 + y2)/2) so that the unknown endpoint B is expressed in terms of the known endpoint A and the midpoint M.

Q: What is the other endpoint of a line segment with one endpoint at (1,3) and a midpoint at (3,5)?

A: Plug the values into the endpoint formula: x2 = 2(3) - 1 = 5 and y2 = 2(5) - 3 = 7. The missing endpoint is B = (5, 7), and the half-length from (1, 3) to (3, 5) is about 2.83, so the full segment AB has length about 5.66 units.

Q: Can the endpoint and the midpoint of a segment have the same coordinates?

A: Yes, but only in the degenerate case where the segment has zero length. If the midpoint equals the known endpoint, the distance between them is zero, so the second endpoint must also equal the same point and the segment collapses to that point.

Q: How do you find the endpoint of a line segment on a graph?

A: Plot the known endpoint A and the midpoint M, then mark a point B that is the same distance from M as A but on the opposite side. The endpoint formula B = (2x - x1, 2y - y1) gives the same answer in coordinates, so you can read B off the graph or compute it directly.

Q: What units does the endpoint calculator use?

A: The endpoint calculator is unitless on the axes. If your coordinates are in centimeters, the resulting x2, y2, and segment lengths are in centimeters; if the coordinates are in inches, the outputs are in inches. Keep the units consistent between the known endpoint and the midpoint for the result to be meaningful.