CalculatorForEver
MATH / CALCULATOR

Midpoint Calculator

Calculate midpoint with worked steps, clear input conventions and a result table.

For endpoints A(x₁,y₁) and B(x₂,y₂), the midpoint is M((x₁+x₂)/2,(y₁+y₂)/2). Endpoints (−2,3) and (6,7) have midpoint (2,5).

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the midpoint calculator works

How to use this calculator

Enter the values in the stated format. Calculate and review the method, exact distinctions and any numerical limits before using the result.

What the result means

A midpoint is the point halfway between two endpoints of a straight line segment. Average the x coordinates and average the y coordinates separately. The construction works for horizontal, vertical and sloping segments because both coordinate directions use the same halfway fraction. The result does not depend on which endpoint you enter first. Use a consistent coordinate system and scale for both points; an arithmetic midpoint of longitude and latitude is not automatically a midpoint along Earth’s surface.

The formula

M = ((x₁+x₂)/2, (y₁+y₂)/2)

A worked example

The midpoint between (0,0) and (4,6) is (2,3).

Assumptions & methodology

Use consistent units and inspect the displayed working. Numerical results are rounded for display; unsupported or unstable inputs are rejected. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

OpenStax: coordinates and the midpoint formula

WORK THROUGH THE DETAILS

Using your midpoint result

Handle vertical and horizontal segments without a special formula

For endpoints (4,−3) and (4,9), both x coordinates are 4. Their midpoint is (4,3), because the vertical average is 3. A slope formula would encounter a zero horizontal change, but the midpoint formula remains defined. For the horizontal segment from (−5,8) to (7,8), the midpoint is (1,8). An unchanged coordinate stays unchanged. If the endpoints coincide, their midpoint is that same point and the segment has zero length.

Recover an endpoint from a known midpoint

The relationship can be reversed. Given endpoint A(−2,3) and midpoint M(2,5), calculate B = 2M − A. The x coordinate is 2×2 − (−2) = 6, and the y coordinate is 2×5 − 3 = 7. The Endpoint Calculator performs that reverse task directly. Entering the midpoint as a second endpoint in this tool would find the midpoint of half the original segment instead, giving a different point. Identify which two pieces of information the problem actually supplies.

Keep units, dimensions and rounding aligned

If x and y describe meters on a plan, the midpoint coordinates also use meters. A screen coordinate system may increase y downward while a mathematical plot increases y upward; the averaging still works when both endpoints follow the same convention. Round only the final display if another calculation needs the midpoint, since premature rounding can move it away from the exact halfway position. This interface handles two-dimensional Cartesian points. For a three-dimensional segment, average the z coordinates as a third separate operation rather than dropping elevation data.

Compare a midpoint with another division ratio

A point one quarter of the way from A to B is A + 0.25(B−A), whereas the midpoint uses 0.50. For A(0,0) and B(8,4), the quarter point is (2,1), the midpoint is (4,2), and the three-quarter point is (6,3). The endpoint coordinate average specifically chooses equal halves. If a drawing divides a segment in a ratio such as 1:3, a midpoint calculation would answer a different question. Keep the requested fraction along the segment visible, and use a section or interpolation formula when the two parts are unequal.

INTERPRETATION

Understanding midpoint results

Average corresponding coordinates

Pair x with x and y with y. In the example (−2,3) and (6,7), the horizontal average is (−2+6)/2 = 2 and the vertical average is (3+7)/2 = 5. Averaging all four numbers together would produce one scalar, not a coordinate pair. Keep the comma between coordinates when copying the result. A negative coordinate is a location relative to the origin, so preserve its sign when adding the endpoint values.

Check that the midpoint lies on the segment

From (−2,3) to (2,5), the displacement is (4,2). From (2,5) to (6,7), it is also (4,2). Equal displacement vectors establish both the halfway distance and the common line direction. Checking only equal distances is insufficient by itself because other points away from the segment can be equally far from its endpoints. The coordinate-average construction supplies the on-segment condition without needing a slope calculation or dividing by a horizontal difference.

RELATED GUIDES

Related questions and worked examples

Read a worked explanation before trying another calculation.

QUESTIONS

Midpoint questions

Does reversing the endpoints change the midpoint?+

No. Addition is commutative, so the same coordinate averages result when the two endpoints are swapped.

Can a midpoint have fractional coordinates?+

Yes. The midpoint of (0,0) and (3,5) is (1.5,2.5). Endpoints with whole coordinates do not require a whole-coordinate midpoint.