Endpoint Calculator
- The midpoint is the average of the endpoints, so the missing endpoint doubles the midpoint and subtracts the known point.
- x: 2 x 5 - 2 = 8.
- y: 2 x 7 - 3 = 11.
- Check: the known point is 5.00 from the midpoint, so the whole segment is 10.00 long.
An endpoint calculator finds the missing endpoint of a line segment when you already know one endpoint and the midpoint. You enter the known endpoint (x1, y1) and the midpoint (xm, ym), and the calculator returns the other endpoint as (2xm - x1, 2ym - y1). In plain terms, you double the midpoint and subtract the known point, coordinate by coordinate. For example, endpoint (2, 3) with midpoint (5, 7) gives the missing endpoint (8, 11) and a segment length of 10.00. Another example: endpoint (-4, 6) with midpoint (1, 2) gives (6, -2) and a segment length of 12.81. A third: endpoint (3.5, -1.5) with midpoint (2.25, 0.5) gives (1, 2.50) and a segment length of 4.72.
This method is the accepted standard because it is simply the midpoint formula rearranged. The midpoint is the average of the two endpoints, so each endpoint is twice the midpoint minus the other endpoint. Checking is easy: average the two endpoints and you should get the midpoint back. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.
Worked examples
First-quadrant segment
Primary result: (8, 11) — double the midpoint and subtract the known point; the segment is 10.00 long. (2 · 3 · 5 · 7)
| Other endpoint of the segment | (8, 11) |
| Distance, known point to midpoint | 5.00 |
| Full segment length | 10.00 |
Crossing the origin
Primary result: (6, -2) — the midpoint formula run backwards across quadrants. (-4 · 6 · 1 · 2)
| Other endpoint of the segment | (6, -2) |
| Distance, known point to midpoint | 6.40 |
| Full segment length | 12.81 |
Decimal coordinates
Primary result: (1, 2.50) — decimals work the same way, coordinate by coordinate. (3.5 · -1.5 · 2.25 · 0.5)
| Other endpoint of the segment | (1, 2.50) |
| Distance, known point to midpoint | 2.36 |
| Full segment length | 4.72 |
The endpoint formula
The formula is the midpoint formula rearranged. The midpoint is the average of the two endpoints, so each endpoint is twice the midpoint minus the other endpoint. Given one endpoint (x1, y1) and the midpoint (xm, ym), the other endpoint is (2xm - x1, 2ym - y1): double the midpoint and subtract the known point, coordinate by coordinate. This is the core math behind every endpoint calculator.
The key to applying the formula correctly is handling x and y independently. Work through the x values first to find the missing x coordinate, then do the same for y. Mixing the coordinates is the most common mistake people make, so keeping them separate prevents errors.
Here are three worked examples. First, endpoint (2, 3) with midpoint (5, 7) gives the missing endpoint (8, 11); the segment length is 10.00. Second, endpoint (-4, 6) with midpoint (1, 2) gives (6, -2); the segment length is 12.81. Third, endpoint (3.5, -1.5) with midpoint (2.25, 0.5) gives (1, 2.50); the segment length is 4.72.
Checking is easy: average the two endpoints and you should get the midpoint back. Take the first example. The x values 2 and 8 average to 5, and the y values 3 and 11 average to 7. That matches the given midpoint exactly, confirming the result is correct. The same check works for every problem you solve with an endpoint calculator.
The formula works for any pair of real numbers, including negatives and decimals. As long as you treat x and y separately and double the midpoint before subtracting, you will arrive at the correct missing endpoint every time.
Worked examples
The endpoint calculator applies the formula (2xm - x1, 2ym - y1): double the midpoint and subtract the known point, coordinate by coordinate. This formula is the midpoint formula rearranged. The midpoint is the average of the two endpoints, so each endpoint is twice the midpoint minus the other endpoint. Checking is easy: average the two endpoints and you should get the midpoint back. The three worked examples below show this process in action, including a case with negative coordinates.
First example: given endpoint (2, 3) with midpoint (5, 7), the other endpoint is (2 × 5 - 2, 2 × 7 - 3), which equals (8, 11). The segment length is 10.00. To verify, average the two endpoints: ((2 + 8) / 2, (3 + 11) / 2) gives (5, 7), which matches the midpoint.
Second example: given endpoint (-4, 6) with midpoint (1, 2), the other endpoint is (2 × 1 - (-4), 2 × 2 - 6), which equals (6, -2). The segment length is 12.81. To verify, average the two endpoints: ((-4 + 6) / 2, (6 + (-2)) / 2) gives (1, 2), which matches the midpoint.
Third example: given endpoint (3.5, -1.5) with midpoint (2.25, 0.5), the other endpoint is (2 × 2.25 - 3.5, 2 × 0.5 - (-1.5)), which equals (1, 2.50). The segment length is 4.72. To verify, average the two endpoints: ((3.5 + 1) / 2, (-1.5 + 2.50) / 2) gives (2.25, 0.5), which matches the midpoint.
These examples demonstrate that the endpoint calculator works correctly whether the coordinates are positive, negative, or decimal values. The verification step of re-averaging the two endpoints confirms the result in each case. This check catches arithmetic mistakes and builds confidence in the output.
Endpoint vs midpoint problems
Homework problems can ask for a midpoint or an endpoint, and the wording is usually what tells you which one you need to find. If the problem gives you two endpoints and asks for the point halfway between them, you are solving a midpoint problem. If the problem gives you one endpoint and the midpoint, you are solving for the other endpoint, and an endpoint calculator is the right tool. The key is identifying which quantities are given and which one is missing, then applying the correct formula.
The endpoint formula comes directly from the midpoint formula rearranged. The midpoint is the average of the two endpoints, so each endpoint is twice the midpoint minus the other endpoint. Given one endpoint (x1, y1) and the midpoint (xm, ym), the other endpoint is (2xm - x1, 2ym - y1). In plain terms, double the midpoint and subtract the known point, coordinate by coordinate. For example, if your known endpoint is (2, 3) and your midpoint is (5, 7), the missing endpoint is (8, 11). You can check your work easily: average the two endpoints and you should get the midpoint back.
Negative coordinates are where most students lose points, because the subtraction step requires careful attention to signs. Consider a known endpoint of (-4, 6) with a midpoint of (1, 2). Doubling the midpoint gives (2, 4). Subtracting the known endpoint means 2 - (-4) for the x-coordinate, which becomes 2 + 4, giving 6. The y-coordinate is 4 - 6, giving -2. The missing endpoint is (6, -2), and the segment length is 12.81. The most common sign error happens when students forget that subtracting a negative number is the same as adding a positive number. Writing out each step separately, rather than trying to do the arithmetic in your head, helps catch these mistakes before they cost you points.
Decimal coordinates work the same way, though they require a bit more arithmetic care. Take a known endpoint of (3.5, -1.5) with a midpoint of (2.25, 0.5). Double the midpoint to get (4.5, 1). Subtract the known endpoint: 4.5 - 3.5 gives 1 for x, and 1 - (-1.5) gives 2.50 for y. The missing endpoint is (1, 2.50), and the segment length is 4.72. Again, the check is straightforward: average 3.5 and 1 to get 2.25, and average -1.5 and 2.50 to get 0.5. Both match the given midpoint, confirming the result.
Where endpoints show up
An endpoint calculator is useful whenever a problem gives you one end of a line segment and its midpoint but asks for the other end. In geometry proofs, this situation comes up when you know a midpoint from a construction or a given condition and need to establish the full segment. The formula is the midpoint formula rearranged: the midpoint is the average of the two endpoints, so each endpoint is twice the midpoint minus the other endpoint. Given one endpoint (x1, y1) and the midpoint (xm, ym), the other endpoint is (2xm - x1, 2ym - y1): double the midpoint and subtract the known point, coordinate by coordinate.
In vector problems, the same calculation appears when a vector is defined from one point through a midpoint and you need the terminal point. Worked example: endpoint (2, 3) with midpoint (5, 7) gives the missing endpoint (8, 11); the segment length is 10.00. Another worked example: endpoint (-4, 6) with midpoint (1, 2) gives (6, -2); the segment length is 12.81. A third worked example: endpoint (3.5, -1.5) with midpoint (2.25, 0.5) gives (1, 2.50); the segment length is 4.72. Each result follows the same coordinate-by-coordinate process regardless of whether the values are positive, negative, or decimals.
In computer graphics, extending a segment often requires finding a symmetric point across a known midpoint, such as when mirroring a control point or completing a path. Surveying applications use the same relationship when a surveyed midpoint and one marker are known, and the crew needs to locate the opposite marker. Checking is easy: average the two endpoints and you should get the midpoint back. This verification step catches sign errors and coordinate mix-ups before the result is used downstream.
FAQs
How do you find the endpoint given the midpoint?
Double the midpoint coordinates and subtract the known endpoint. For example, using the midpoint (5, 7) and the known endpoint (2, 3), you calculate (2 x 5 - 2, 2 x 7 - 3) = (8, 11). The missing endpoint in this example is (8, 11).
What is the formula for the missing endpoint?
The formula is Endpoint = (2xm - x1, 2ym - y1), where (xm, ym) is the midpoint and (x1, y1) is the known endpoint. You take twice each midpoint coordinate and subtract the matching coordinate of the known endpoint to get the missing endpoint.
Can the endpoint have negative coordinates?
Yes. For example, with endpoint (-4, 6) and midpoint (1, 2) the missing endpoint is (6, -2). The calculation works the same way with negative values, so do not assume an error just because a coordinate is negative.
How do I check my endpoint answer?
Average the two endpoints coordinate by coordinate; the result must equal the given midpoint. If the average of the x values and the average of the y values both match the midpoint you started with, your missing endpoint is correct.
Does this work in 3D?
Yes; apply the same rule to the z coordinate as well: z2 = 2zm - z1. The logic is identical to the 2D case, just extended to the third coordinate.
What if I know both endpoints instead?
Then you want the midpoint: average the coordinates, which is the reverse of this calculation. Add the two x values and divide by 2, then add the two y values and divide by 2.