Skip to content
Popular Calculators
Browse Math calculators

Midpoint Calculator

Find the midpoint between two points, or work backwards from a midpoint and one endpoint to find the missing endpoint.

What do you want to work out?
Dimensions

In endpoint mode this is the midpoint.

In endpoint mode this is the midpoint.

About the Midpoint Calculator

The midpoint of a line segment is the point exactly halfway along it, and finding it is one of the few coordinate geometry tasks where the arithmetic is genuinely easy: average the x values, average the y values, done.

The reason averaging works is worth a moment. Halfway between 4 and 10 is 7, and 7 is the mean of 4 and 10. Positions on a number line behave like ordinary numbers, so the centre of a segment is the mean of its ends. Coordinates just do this on two number lines at once, independently, which is why the formula never gets more complicated than "average each axis".

This calculator handles both directions. It finds the midpoint from two endpoints, and it works backwards — given a midpoint and one endpoint, it recovers the one you are missing. That reverse problem appears constantly in exam questions and is where nearly all the errors live.

How to Use the Midpoint Calculator

Find the midpoint. Choose 2D or 3D, enter both endpoints, and press Calculate. You get the midpoint, the segment length, and a confirmation that each half measures the same.

Find a missing endpoint. Switch modes. Enter the endpoint you know as the first point, and the midpoint as the second. The calculator returns the other endpoint and checks its own answer by averaging back.

Watch that second field when you switch modes — it holds the midpoint, not another endpoint. Entering two endpoints in this mode produces a real but unwanted answer: the point twice as far along the same line.

The Midpoint Formula

  Two dimensions:
        ( x₁ + x₂     y₁ + y₂ )
    M = ( -------  ,  ------- )
        (    2           2    )

  Three dimensions:
    add (z₁ + z₂) / 2

  Missing endpoint, given midpoint M and endpoint A:
    B = 2M - A          applied to each coordinate

Notice the plus signs. This is the formula people most often mangle, because neighbouring coordinate formulas subtract — slope subtracts to get a rise, the distance formula subtracts to get a gap. The midpoint adds, because you are finding a position rather than a difference.

A quick sanity rule: the midpoint's coordinates must each lie between the two endpoint values. If your answer for x is outside the range of x₁ and x₂, you subtracted somewhere you should have added.

Where 2M − A comes from

Start with the definition and solve for the unknown end:

  M = (A + B) / 2
  2M = A + B
  B = 2M - A

Three lines, no cleverness. Double the midpoint, subtract the endpoint you have.

Step-by-Step Example

Find the midpoint of the segment joining (2, 3) and (8, 7).

Step 1 — average the x values. (2 + 8) ÷ 2 = 10 ÷ 2 = 5.

Step 2 — average the y values. (3 + 7) ÷ 2 = 10 ÷ 2 = 5.

Step 3 — write the point. M = (5, 5).

Step 4 — sanity check. 5 lies between 2 and 8, and between 3 and 7. Both good.

Now the reverse. The midpoint of a segment is (5, 5) and one end is (2, 3). Find the other end.

  x = 2(5) - 2 = 10 - 2 = 8
  y = 2(5) - 3 = 10 - 3 = 7

So the other end is (8, 7) — which is where we started, as it should be.

A case with a fraction: the midpoint of (0, 0) and (3, 5).

  x = (0 + 3) / 2 = 1.5
  y = (0 + 5) / 2 = 2.5

Halves are entirely normal here. A midpoint only has whole coordinates when both sums happen to be even, and there is nothing wrong with (1.5, 2.5).

And one that catches people out: the midpoint of (−5, −5) and (5, 5) is (0, 0). The negatives cancel against the positives, and the answer is the origin.

Understanding Your Result

The result is the midpoint, or the recovered endpoint, written as a coordinate pair or triple.

The check is the calculator verifying its own work. In midpoint mode it measures from the midpoint to each endpoint and confirms the two are equal. In endpoint mode it averages the two endpoints and confirms it gets back the midpoint you supplied. Either way, the check is the same one you would do by hand.

The segment gives the endpoints and the full length between them.

Each half is the length from the midpoint to either end — exactly half the segment, which is another way to catch an arithmetic slip.

Three Dimensions and Beyond

The 3D mode averages z alongside x and y. That is the entire change.

This independence per axis is the structural point of the formula. Distance mixes the axes together under one square root, so its 3D version needs a new term. Midpoint never mixes them, so a fourth or fifth dimension would simply add a fourth or fifth average. The formula does not get harder, only longer.

When Should You Use This Calculator?

Geometry proofs. The midpoint theorem, medians of a triangle, and the fact that a parallelogram's diagonals bisect each other are all proved by computing midpoints and showing two of them coincide.

Finding a centre. The centre of a circle is the midpoint of any diameter, so two opposite points on the rim give it directly.

Perpendicular bisectors. A perpendicular bisector passes through the midpoint with the negative reciprocal gradient. The midpoint is step one, and the gradient work follows.

Splitting a measurement. Marking the centre of a wall, a beam or a plot from two corner coordinates is this formula with units attached.

Animation and interpolation. The midpoint is the halfway frame between two positions. Generalise the weight from a half to any fraction t and you have linear interpolation, the workhorse of motion graphics.

Averaging paired data. Two readings plotted as points have a midpoint that represents their combined average in both variables at once.

Common Mistakes

Subtracting instead of adding. (x₂ − x₁)/2 gives half the horizontal gap, not the middle position. Add first, then halve.

Dividing only one coordinate. Both averages need their own division by 2. Halving x and forgetting y is a quiet error that still produces a plausible-looking point.

Entering an endpoint where the midpoint belongs. In reverse mode, the second point is the centre. Get this wrong and you land at the reflection of the first point through the second, which is a real point on the line but not the one you wanted.

Forgetting the 2 in 2M − A. Using M − A gives a displacement, not a position. The doubling is what makes it an endpoint.

Sign slips with negatives. 2(0) − (−3) = 3, not −3. Subtracting a negative adds.

Rejecting a fractional answer. Half-integer coordinates are correct and expected. Rounding them to whole numbers moves the point off the segment's centre.

Assuming the midpoint of a curve's endpoints lies on the curve. It does not, except for a straight line. The midpoint of two points on a circle sits inside the circle, not on it.

Frequently Asked Questions

Why is the midpoint an average rather than a subtraction?

Because you want the value halfway between the two coordinates, and halfway between two numbers is their mean. Subtracting gives the gap between them, which is a length rather than a position. Averaging each coordinate separately lands you at the centre of the segment.

How do I find an endpoint when I know the midpoint?

Rearrange the formula. If M is the midpoint and A is the endpoint you have, then the missing endpoint is 2M minus A, applied to each coordinate. Doubling the midpoint and subtracting the known point is quicker than solving the equation each time.

Does the midpoint formula work in three dimensions?

Yes, and nothing changes. Average the z coordinates as well. Each axis is handled independently, which is why the formula extends to any number of dimensions without gaining new terms.

Is the midpoint always equidistant from both endpoints?

Yes, by construction, and this calculator verifies it by measuring both halves. Each half is exactly half the full segment length, which makes it a useful check on your arithmetic.

What if the two points are the same?

The midpoint is that point. A segment of zero length has its centre at its own location, which is consistent rather than an error, though it usually means a coordinate was typed twice by mistake.

Last reviewed September 18, 2026 by the CalculatorPeak editorial team.