Math & Algebra Calculators

Midpoint Calculator

Find the midpoint between two points in a number line or coordinate plane.

Midpoint Calculator — Online Calculator

Midpoint Calculator

Point A

Point B

The midpoint of a segment is the point exactly halfway between its two endpoints — equidistant from both, and the natural "center" of the segment. Enter two points in the plane and this calculator returns the midpoint's coordinates together with the full distance between the endpoints.

The Formula

A midpoint is nothing more exotic than an average applied coordinate by coordinate:

M=(x1+x22, y1+y22)M = \left( \frac{x_1 + x_2}{2}, \ \frac{y_1 + y_2}{2} \right)

The tool also computes the segment's length with the Euclidean distance formula — Pythagoras applied to the coordinate differences:

d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

| Input | Meaning | | --- | --- | | x1,y1x_1, y_1 | Coordinates of the first endpoint | | x2,y2x_2, y_2 | Coordinates of the second endpoint | | Output: midpoint | The average of each coordinate pair | | Output: distance | Straight-line length of the segment |

Worked Example

Endpoints A(2,−4)A(2, -4) and B(8,6)B(8, 6):

  • xm=2+82=5x_m = \dfrac{2 + 8}{2} = 5
  • ym=−4+62=1y_m = \dfrac{-4 + 6}{2} = 1
  • Midpoint: (5, 1)
  • Distance: (8−2)2+(6−(−4))2=36+100=136≈\sqrt{(8-2)^2 + (6-(-4))^2} = \sqrt{36 + 100} = \sqrt{136} \approx 11.66

Sanity-check the midpoint the way mathematicians do: the distance from (5, 1) to each endpoint should be half of 11.66, i.e. about 5.83 — and it is, in both directions, by construction.

Running the Formula Backwards: Finding a Missing Endpoint

The same equation solves the classic inverse problem — one endpoint and the midpoint given, the other endpoint wanted. Since the midpoint is the average, the unknown endpoint is twice the midpoint minus the known one:

x2=2xm−x1y2=2ym−y1x_2 = 2x_m - x_1 \qquad y_2 = 2y_m - y_1

With midpoint M(4,3)M(4, 3) and endpoint A(1,1)A(1, 1): x2=8−1=7x_2 = 8 - 1 = 7 and y2=6−1=5y_2 = 6 - 1 = 5, so B=(7,5)B = (7, 5). This tool computes midpoints and distances directly; for the inverse, apply the doubling trick by hand — it is the single most common midpoint exam question after the basic formula.

Where Midpoints Earn Their Keep

Beyond homework: the midpoint is the center used to bisect segments in construction, to position labels and sprites between two anchors in graphics and game development, to find the center of a plot or a room from opposite corners, and — generalized as the average of coordinates — it is the seed idea behind centroids and the center of mass. Negative coordinates behave exactly like positive ones: the midpoint of (−4,2)(-4, 2) and (2,−6)(2, -6) is (−1,−2)(-1, -2), sitting in the third quadrant between two points in the second and fourth. One boundary worth knowing: for geographic coordinates, simple averaging is a fine approximation over short distances, but latitude/longitude live on a sphere — long-haul route midpoints (for flights or shipping) need great-circle mathematics, not this formula.

Frequently Asked Questions

Can a midpoint have decimal or negative coordinates?

Yes to both. Averaging an odd sum gives .5 fractions — the midpoint of (1, 1) and (2, 2) is (1.5, 1.5) — and points in negative quadrants average into negative coordinates whenever their sum is negative. There is no rule that midpoints must be whole or positive.

What is the difference between the midpoint and the distance?

The midpoint is a point (a location), the distance is a length (a number). This calculator returns both: where the center is, and how long the whole segment is — the distance from the midpoint to either endpoint is exactly half the full distance.

Does order matter — is the midpoint of A→B different from B→A?

No. Addition is commutative, so swapping the endpoints gives the identical midpoint. Direction matters for vectors and slopes, not for centers.

Related Tools