Endpoint Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the known endpoint A and the midpoint M of the segment.
Result
Other endpoint B: x = 2xₘ − x₁
Other endpoint B: y = 2yₘ − y₁
- Length of the segment AB
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Known endpoint A: x: enter a number.
- Known endpoint A: y: enter a number.
- Midpoint M: x: enter a number.
- Midpoint M: y: enter a number.
- Read the result: Other endpoint B: x = 2xₘ − x₁; the panel also shows Other endpoint B: y = 2yₘ − y₁ and Length of the segment AB.
How this calculator works
The midpoint formula M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2) solved for the missing endpoint gives x₂ = 2xₘ − x₁ and y₂ = 2yₘ − y₁.
The segment is twice as long as the distance from A to M: AB = 2√((xₘ − x₁)² + (yₘ − y₁)²).
The formula
| Symbol | Meaning |
|---|---|
| Known endpoint A: x | |
| Midpoint M: x | |
| Other endpoint B: x = 2xₘ − x₁ |
Worked example
| Known endpoint A: x | 1 |
|---|---|
| Known endpoint A: y | 2 |
| Midpoint M: x | 4 |
| Midpoint M: y | -1 |
| Other endpoint B: y = 2yₘ − y₁ | -4 |
|---|---|
| Length of the segment AB | 8.4853 |
Other endpoint B: x = 2xₘ − x₁ 7
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
If A = (1, 2) and the midpoint is (4, −1), what is B?
B = (2 × 4 − 1, 2 × (−1) − 2) = (7, −4); AB is about 8.4853 long.
If the midpoint is the origin, where is B?
At the opposite of A: A = (−3, 5) gives B = (3, −5).