Midpoint Calculator
The point halfway between two endpoints.
Inputs
- x-coordinate
- (−2 + 6) ÷ 2 = 2
- y-coordinate
- (5 + 1) ÷ 2 = 3
- Segment length
- 8.9443
- Midpoint to either end
- 4.4721
Use this calculator on your own site
Free embed
- Two lines of HTML, unlimited views
- Shows a small CalculateEveryday bar, with a credit link under the calculator
What each Midpoint input means
- Find
- Choose the midpoint of two endpoints, or the missing endpoint when you know one end and the middle — the usual homework question that begins 'M is the midpoint of AB'.
- x₁
- x₁ and y₁ are the first endpoint: its horizontal and vertical positions. Negative values sit left of or below the axes, and decimals are fine. Keep each point's two coordinates together.
- x₂
- x₂ and y₂ are the second endpoint, used when finding the midpoint. Which endpoint you call first makes no difference to the answer.
- Midpoint x
- In endpoint mode, the midpoint's x- and y-coordinates — the point you were told is halfway.
Midpoint formula
M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
The midpoint of a segment is the point exactly halfway along it, and its coordinates are averages: add the two x-coordinates and halve the sum, then do the same for the two y-coordinates. OpenStax College Algebra explains why: the halfway point has to be the same horizontal and the same vertical distance from each end, and the average is the one number that is. The page shows both averages, the length of the segment by the distance formula, and the distance from the midpoint to either end — always half the length, which is a quick check that the answer really sits in the middle. The second mode runs the formula backwards. If you know one endpoint and the midpoint, the other endpoint is twice the midpoint minus the known end, because the midpoint is as far from one end as from the other.
Formula last checked against OpenStax College Algebra 2e, §2.1 'The Rectangular Coordinate System and Graphs' (midpoint formula); NCERT Mathematics Class X, Chapter 7 'Coordinate Geometry' (section formula) on 2 October 2026. Built and maintained by Suman Kumar · How we check
Midpoint worked example
For endpoints (−2, 5) and (6, 1): x = (−2 + 6) ÷ 2 = 2 and y = (5 + 1) ÷ 2 = 3, so the midpoint is (2, 3). The segment is about 8.9443 long, putting the midpoint 4.4721 from each end.
More Midpoint examples
A textbook question: M(3, 2) is the midpoint of AB and A is (1, −4); find B. Double the midpoint and subtract the known end: x = 2 × 3 − 1 = 5 and y = 2 × 2 − (−4) = 8, so B is (5, 8). The check line averages A and B again: ((1 + 5) ÷ 2, (−4 + 8) ÷ 2) = (3, 2).
Decimals and negatives together, (3.5, −1) and (−4.5, 6): the x-average is (3.5 + (−4.5)) ÷ 2 = −1 ÷ 2, and the y-average is (−1 + 6) ÷ 2 = 2.5, so the midpoint is (−0.5, 2.5). The segment is about 10.6301 long, and the midpoint is 5.3151 from each end.
Where the Midpoint calculator can give the wrong answer
- This is the midpoint of a straight segment on a flat plane. The halfway point between two places on Earth follows a curved path and needs a different calculation.
- To find a missing endpoint instead, double the midpoint and subtract the known endpoint: x₂ = 2·Mx − x₁, and the same for y.
- Add negative coordinates with their signs: the midpoint of −3 and −7 is −5, not 5.
Spotted a mistake? Tell us
Midpoint reference table
| What you want | Formula | For (−2, 5) and (6, 1) |
|---|---|---|
| Midpoint | ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2) | (2, 3) |
| Other endpoint, from one end and the midpoint M | (2·Mx − x₁, 2·My − y₁) | From (−2, 5) and M(2, 3): (6, 1) |
| Quarter points | The midpoint of each end and M | (0, 4) and (4, 2) |
| Point dividing the segment in the ratio m : n | ((m·x₂ + n·x₁) ÷ (m + n), (m·y₂ + n·y₁) ÷ (m + n)) | 1 : 3 gives (0, 4) |
| Length | √((x₂ − x₁)² + (y₂ − y₁)²) | √80 = 4√5 ≈ 8.9443 |
| Slope | (y₂ − y₁) ÷ (x₂ − x₁) | −4 ÷ 8 = −0.5 |
Midpoint FAQ
- Rearrange the formula. If M = (2, 3) and one endpoint is (−2, 5), the other is (2×2 − (−2), 2×3 − 5) = (6, 1).
- Yes — it is the average of the x-values paired with the average of the y-values. That is all the formula says.
- M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2): the average of the x-coordinates and the average of the y-coordinates. The midpoint of (−2, 5) and (6, 1) is (2, 3).
- Average the two numbers. The midpoint of −3 and 11 is (−3 + 11) ÷ 2 = 4. A number line has a single coordinate, so it is the x half of the formula on its own.
- Yes, whenever two coordinates add up to an odd number. The midpoint of (1, 2) and (4, 7) is (2.5, 4.5), which a textbook may write as (5/2, 9/2).
- Use the section formula with the ratio 1 : 2: x = (1·x₂ + 2·x₁) ÷ 3, and the same for y. From (0, 0) to (9, 6) that gives (3, 2). The table on this page lists it with the other two-point formulas.