Endpoint Calculator

Enter one known endpoint and the segment's midpoint to find the other endpoint using (x₂, y₂) = (2Mx − x₁, 2My − y₁), plus segment length and slope.

Quick Facts

Endpoint formula
(x₂, y₂) = (2Mx − x₁, 2My − y₁)
Reverses the midpoint formula to solve for the unknown endpoint.
Midpoint formula
M = ((x₁+x₂)/2, (y₁+y₂)/2)
The point exactly halfway between two known endpoints.
Distance formula
d = √((x₂−x₁)² + (y₂−y₁)²)
Finds the full segment length once both endpoints are known.

Your Results

Calculated
Other Endpoint
-
(x₂, y₂) = (2Mx − x₁, 2My − y₁)
Full Segment Length
-
Distance between the two endpoints
Distance to Midpoint
-
Half of the full segment length
Slope of Segment
-
Rise over run between the two endpoints

Ready

Enter one endpoint and the midpoint, then press Calculate.

Formula and Method for the Endpoint Calculator

Given the midpoint of a line segment and one of its endpoints, you can always solve algebraically for the other endpoint. If M is the midpoint of a segment with endpoints A(x₁, y₁) and B(x₂, y₂), the midpoint formula states M = ((x₁+x₂)/2, (y₁+y₂)/2). Rearranging that equation to isolate the unknown endpoint gives the endpoint formula: x₂ = 2Mx − x₁ and y₂ = 2My − y₁. This calculator applies that formula directly, then reports the full segment length, the distance from the known endpoint to the midpoint, and the slope of the segment.

How the calculation works

Enter the coordinates of the endpoint you already know (x₁, y₁) and the coordinates of the midpoint (Mx, My). The calculator doubles each midpoint coordinate and subtracts the corresponding known-endpoint coordinate to get the missing endpoint: x₂ = 2Mx − x₁, y₂ = 2My − y₁. It then applies the distance formula, d = √((x₂−x₁)² + (y₂−y₁)²), to compute the full segment length between the two endpoints — this distance is always exactly twice the distance from the known endpoint to the midpoint, since the midpoint splits the segment into two equal halves. Finally, it reports the slope, (y₂−y₁)/(x₂−x₁), which is undefined when the segment is vertical.

Common mistakes

  • Swapping the midpoint and endpoint: entering the midpoint's coordinates in the "known endpoint" fields (or vice versa) reverses the calculation and gives the wrong answer.
  • Confusing this with the midpoint formula: if you already know both endpoints and want the point between them, use a midpoint calculator instead — this tool solves the reverse problem.
  • Assuming the segment length equals the endpoint-to-midpoint distance: the midpoint is exactly halfway, so the full segment is twice as long as the distance from either endpoint to the midpoint.

Real-world applications

  • Geometry and coordinate proofs use the endpoint formula to reconstruct a missing vertex when a midpoint and one vertex are known.
  • Computer graphics and CAD tools use it to mirror or reflect a point through a center point.
  • Surveying and mapping use it to locate an unknown boundary marker when the midpoint of a property line and one marker are already recorded.
  • Physics problems use it to find a symmetric point along projectile or oscillation paths where the midpoint represents an equilibrium or turning point.

Frequently Asked Questions

What is the endpoint formula?
If M is the midpoint of a segment with endpoints A(x₁, y₁) and B(x₂, y₂), then M = ((x₁+x₂)/2, (y₁+y₂)/2). Solving for the unknown endpoint B gives the endpoint formula: x₂ = 2Mx − x₁ and y₂ = 2My − y₁.
How do I find a missing endpoint from one endpoint and the midpoint?
Double the midpoint's coordinates and subtract the known endpoint's coordinates: x₂ = 2Mx − x₁, y₂ = 2My − y₁. For example, if A = (2, 3) and M = (5, 4), then B = (2×5−2, 2×4−3) = (8, 5).
How is the endpoint formula different from the midpoint formula?
The midpoint formula finds the point exactly between two known endpoints: M = ((x₁+x₂)/2, (y₁+y₂)/2). The endpoint formula reverses this — it uses one known endpoint plus the midpoint to solve for the other endpoint.
Can the segment be vertical or horizontal?
Yes. If the known endpoint and the midpoint share the same x-coordinate, the segment is vertical and its slope is undefined. If they share the same y-coordinate, the segment is horizontal with a slope of 0. The endpoint and distance formulas still work normally in both cases.