Mathematics calculator

Endpoint Calculator

Find the missing endpoint of a line segment from one known endpoint and the segment midpoint.

Calculator inputs

Enter your values

Coordinate geometry
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

1

What is Endpoint Calculator?

An endpoint calculator finds the missing end of a straight line segment when you know the other endpoint and the midpoint. The midpoint is the exact halfway position, so the unknown point must sit the same horizontal and vertical distance beyond it as the known point sits before it.

This is coordinate geometry rather than a distance estimate. It works with positive, negative, whole-number and decimal coordinates, and it does not require a graph to be drawn. The answer is an ordered pair: keep the x-coordinate first and the y-coordinate second.

2

How to Use This Calculator

  1. Enter the known endpoint as x₁ and y₁. Treat these two values as one ordered pair.
  2. Enter the midpoint in the x and y fields. These are midpoint coordinates, not the coordinates of a second known endpoint.
  3. Select Calculate. The page doubles each midpoint coordinate, then subtracts the corresponding coordinate of the known endpoint.
  4. Read x₂ and y₂ together as the missing endpoint (x₂, y₂).
  5. Check the answer by averaging x₁ with x₂ and y₁ with y₂. Both averages should reproduce the midpoint you entered.

No length unit is required because coordinates may represent centimetres, kilometres, pixels or abstract grid positions. If the coordinates do represent measurements, all four entries must use the same scale and coordinate system. A reflected or rotated axis changes the coordinate values even though the geometry remains valid.

3

Formula Used

The midpoint equations for endpoints (x₁, y₁) and (x₂, y₂) are xₘ = (x₁ + x₂) / 2 and yₘ = (y₁ + y₂) / 2.

Rearranging them gives the missing endpoint: x₂ = 2xₘ − x₁ and y₂ = 2yₘ − y₁. An equivalent way to think about the calculation is x₂ = xₘ + (xₘ − x₁), with the same pattern for y. The vector from the known endpoint to the midpoint is repeated once more to reach the other end.

4

Variables Explained

Symbol or entryMeaning
x₁Horizontal coordinate of the endpoint you already know.
y₁Vertical coordinate of the known endpoint.
xₘ (form label x)Horizontal coordinate of the midpoint, exactly halfway between the two endpoints.
yₘ (form label y)Vertical coordinate of the midpoint.
x₂, y₂Coordinates of the missing endpoint returned by the calculation.
5

Worked Example

Suppose the known endpoint is (1, 2) and the midpoint is (4, 6). For the horizontal coordinate, x₂ = 2(4) − 1 = 8 − 1 = 7. For the vertical coordinate, y₂ = 2(6) − 2 = 12 − 2 = 10. The missing endpoint is therefore (7, 10).

The check is quick: (1 + 7) / 2 = 4 and (2 + 10) / 2 = 6. Both averages match the supplied midpoint. Negative values follow exactly the same rule. If a known endpoint is (−3, 5) and the midpoint is (1, −2), then x₂ = 2(1) − (−3) = 5 and y₂ = 2(−2) − 5 = −9, giving (5, −9).

6

Why Use This Calculator?

The output identifies one unique point because one endpoint and the midpoint fix both the direction and the half-length of the segment. A result with a negative coordinate is ordinary; it only means the point lies on the negative side of that axis. Decimal results are also valid and should be retained at a precision suitable for the source coordinates.

The calculation says nothing about elevation, curvature or a third dimension. It assumes a straight two-dimensional segment in one Cartesian coordinate system. For geographic latitude and longitude over a substantial distance, a simple coordinate average is not generally the geodesic midpoint on Earth. Use a geographic method when curvature or map projection matters.

If the returned point looks surprising, plot the three points. The midpoint must lie on the segment, with equal coordinate changes on either side. The distances from endpoint one to the midpoint and from the midpoint to endpoint two will also be equal.

The ordering of the endpoints does not affect the midpoint. If the recovered point later becomes endpoint one and the original point becomes endpoint two, averaging them still returns the same centre. That symmetry is useful when checking a drawing, animation path or design coordinate. It also explains why the formula does not require a slope: horizontal, vertical and diagonal segments all use the same coordinate-by-coordinate reflection.

7

Common Mistakes

  • Entering the second endpoint as the midpoint: the form is designed to recover that second endpoint, so its second pair must be the midpoint.
  • Swapping x and y: calculate horizontal coordinates together and vertical coordinates together.
  • Dropping a negative sign: subtracting a negative coordinate becomes addition.
  • Using x₂ = xₘ − x₁: the midpoint must first be doubled.
  • Mixing coordinate systems: values from different map projections, origins or units cannot be combined directly.
  • Rounding too early: keep the supplied decimals through both operations and round the final ordered pair only if needed.
8

Frequently Asked Questions

Can either the endpoint or midpoint contain negative coordinates?

Yes. The formulas work across every quadrant. Keep each minus sign when doubling the midpoint and subtracting the known coordinate.

What happens when the known endpoint equals the midpoint?

The missing endpoint is the same point. This describes a zero-length segment, since both ends and the midpoint coincide.

Can I use decimal coordinates?

Yes. Decimal coordinates are handled like whole numbers. Avoid rounding them before the calculation because that changes the recovered point.

How do I verify the missing endpoint?

Average the two endpoint x-values and then the two endpoint y-values. Those averages must equal the entered midpoint coordinates.

Does the calculator return the segment length?

No. It returns the other endpoint. Once both endpoints are known, length can be found with the distance formula.

Will this work for three-dimensional coordinates?

The same rearrangement can be applied to a z-coordinate, but this form accepts only x and y. Calculate z₂ = 2zₘ − z₁ separately.

9

Sources & References