Skip to content

Midpoint Calculator

The point halfway between two endpoints.

Inputs

Example: Midpoint
(2, 3)

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)

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

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

Formulas for two points (x₁, y₁) and (x₂, y₂), worked for (−2, 5) and (6, 1)
What you wantFormulaFor (−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 pointsThe 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
Source: OpenStax College Algebra 2e, §2.1 (midpoint and distance) and §2.2 (slope); NCERT Mathematics Class X, Chapter 7 (section formula)

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).