Math calculator

Midpoint Calculator

Halfway along — and every other fraction of the way.

Halfway, and every other fraction

Exact — there is no square root here.

(0, 0) and (4, 6)

(2, 3)

The average of the coordinates, one axis at a time. If the endpoints are exact, so is this — there is no square root anywhere in it.

Midpoint

(2, 3)

halfway along

If the second WERE the midpoint

(8, 12)

the far end would be here

Ratio split

enter a ratio to compute one

Dimensions

2

in the plane

One axis at a time

Each coordinate of the two points and the average that gives the midpoint
AxisFromToAverage
x042
y063
  • The midpoint is the average of the coordinates, one axis at a time. There is no square root and no approximation — if the endpoints are exact, so is the midpoint.
  • Reading it backwards: if 4, 6 were the MIDPOINT rather than an endpoint, the far end would be at 8, 12. Double the midpoint, subtract the known end.
  • To divide a segment in a ratio other than 1 : 1, the section formula weights each endpoint by the OPPOSITE part of the ratio — which is the step that trips people up, since the m goes with the far point.

Exact fractions throughout, so a coordinate of 1/3 gives a midpoint of 1/6 rather than 0.1666666667.

What this tool shows

The midpoint is just the average of the coordinates, one axis at a time. No square root, so if the endpoints are exact the answer is too — and the same arithmetic run backwards answers “where is the other end”, which is asked as often and rarely offered.

  • The midpoint of any segment
  • The same in three dimensions
  • The far endpoint, given one end and the midpoint
  • The point dividing a segment in a given ratio
  • The average taken axis by axis
  • Why this answer is exact when the distance is not
2D and 3D Exact, always Any ratio, not just half The reverse problem too

Exact — averaging has no square root in it.

Updated 7 September 2026 · Works in any browser, no installation

Average the coordinates. The midpoint of (0,0) and (4,6) is ((0+4)/2, (0+6)/2) = (2,3). One axis at a time, and no square root anywhere — which is why this answer is exact when the distance between the same two points usually is not.

At a glance

Formula shown
The midpoint of (x\u2081, y\u2081) and (x\u2082, y\u2082) is ((x\u2081 + x\u2082)/2, (y\u2081 + y\u2082)/2). To divide the segment in the ratio m : n from the first point, the point is ((n\u00b7x\u2081 + m\u00b7x\u2082)/(m + n), (n\u00b7y\u2081 + m\u00b7y\u2082)/(m + n)) \u2014 note that m weights the FAR point.
Scenario support
The centre of a segment on a plan; the far end of a line when you know one end and the centre; a point a third of the way along.
Educational estimate
Planning support from the values you enter — not professional advice.

Why it is exact

Distance and midpoint use the same two points and behave completely differently.

The distance squares, adds and roots. That last step almost always produces an irrational number, and every decimal you write is an approximation.

The midpoint adds and halves. Both operations keep rational numbers rational, so if the endpoints are exact so is the answer — a midpoint of 1/6 stays 1/6.

It is worth noticing because it decides where rounding can safely happen. Chain midpoints together and nothing degrades; chain distances and error accumulates.

The reverse problem

“One end is at (1,2) and the midpoint is at (4,6). Where is the other end?” This is asked as often as the forward question and rarely has a calculator for it.

Rearrange: if M = (A + B)/2 then B = 2M − A. Double the midpoint, subtract the known end. Here that is (8−1, 12−2) = (7,10).

A quick check: the midpoint of (1,2) and (7,10) is (4,6). Substituting back is worth the five seconds, because the doubling step is easy to apply to the wrong point.

The page reports this alongside the midpoint, so whichever question you arrived with is answered.

Dividing in a ratio

The midpoint is the 1 : 1 case. For any other split, the section formula applies — and it contains one detail that catches nearly everyone.

To divide from A to B in the ratio m : n, the point is (n·A + m·B) / (m + n). The m weights B, not A. The part nearer your starting point multiplies the FAR endpoint.

A sanity check that settles it: a 1 : 3 split from A should land close to A. With the formula that is (3A + B)/4, which is indeed mostly A. With the weights swapped it would be (A + 3B)/4, which is mostly B and clearly wrong.

Setting m = n = 1 recovers (A + B)/2, which is a useful check that you have the formula the right way round.

Where it gets used

Construction and layout. Marking the centre of a wall, a beam or an opening.

Geometry proofs. The midpoint theorem, medians of a triangle, diagonals of a parallelogram bisecting each other — all of them start by computing midpoints.

Graphics and animation. Interpolating halfway between two positions is a midpoint; interpolating a fraction of the way is the section formula, which is what a linear tween does on every frame.

Statistics, carefully. The midpoint of a class interval is used in grouped-data calculations, and it is a midpoint rather than a mean of the underlying values.

The centroid, and what it is not

For two points, the midpoint is the centre. For three or more, the equivalent is the centroid — the average of all the coordinates — and it is not the same as the centre of the shape.

The centroid of a triangle’s three VERTICES sits where the medians meet, two thirds of the way along each from the vertex. That is the balance point of three equal weights at the corners.

The centroid of the triangle as a solid lamina happens to be the same point, which is a genuine coincidence of triangles and does not hold for other shapes. For a general polygon the vertex average and the area centroid are different points.

A common slip

The midpoint formula ADDS and the distance formula SUBTRACTS, and under exam pressure they get swapped.

A midpoint computed with subtraction gives half the gap rather than the centre — a number that looks plausible and is not a point on the segment at all.

The check that catches it immediately: the midpoint must lie BETWEEN the two endpoints on every axis. If it does not, the wrong operation was used.

Sources and methodology

The midpoint and section formulas are curriculum standards; these are the references.

Method. Coordinates are carried as exact rationals and averaged, so nothing is rounded at any point — a midpoint of 1/6 is reported as 1/6 rather than 0.1666666667. The reverse problem and the section formula run on the same exact arithmetic. The suite checks that the returned midpoint is genuinely equidistant from both endpoints across three thousand generated segments, which is the definition rather than the formula. That engine is verified on every change against 67 hand-written assertions, including that the midpoint is equidistant from both endpoints across three thousand generated segments — a check against the definition rather than against the formula that produced it. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

DistanceThe distance between two points in the plane or in space, kept exact as a surd wherever the square root does not come out — √50 stays √50, and is also shown as 5√2.
SlopeSlope as an exact fraction, with the vertical case reported as undefined rather than as a division by zero — and the angle, gradient percentage and both related slopes alongside it.
Line EquationThe equation of a line in all three standard forms from two points or from a point and a slope, with the intercepts and the vertical case that has no y = mx + c form at all.
RatioSimplify a ratio and share a total by it, with each term's fraction of the whole shown — because 3 : 2 means three fifths, not three halves.
Parallel and Perpendicular LinesBoth lines through your point at once — and the two cases where the slopes-multiply-to-−1 rule does not apply, because 0 × undefined is not −1.
TriangleSolve any triangle from three measurements — and when two sides and a non-included angle describe TWO triangles, this one shows both instead of picking one.

More in Math, or browse all calculators.

Read the guide

The distance between the same two points does involve a square root, and the Distance Calculator keeps the exact and the decimal parts separate.

Educational use disclaimer

This is an educational tool. Everything here is exact for the coordinates entered, because averaging involves no square root — unlike the distance between the same two points.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 7 September 2026

  1. Published the midpoint page with the reverse problem built in — given one endpoint and the midpoint, the other endpoint is 2m − p, and that is the version exams actually set.
  2. Midpoints stay exact: the average of two whole numbers is either whole or a half, and the page prints the half rather than rounding it away.
  3. Notes that the midpoint of a diagonal is what proves a quadrilateral is a parallelogram, since both diagonals then share it.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.