Midpoint Calculator

Find the point exactly halfway between two points. Drag the points or type coordinates, and see why averaging works.

Answer

(2, 3)

AM = MB = 3.6056. M is exactly halfway along AB.

−10−10−8−8−6−6−4−4−2−2224466881010xyMAB

Drag A or B. They snap to halves; arrow keys move them by 0.5.

Why this answer

Step 1 · x on its own

On the x-axis, A is at 0 and B is at 4. The number halfway between two numbers is the same distance from both, and that is their average.

x = (0 + 4) ÷ 2 = 4 ÷ 2 = 2

Step 2 · y on its own

Do the same with the heights. A is at 0 and B is at 6, so halfway up is their average.

y = (0 + 6) ÷ 2 = 6 ÷ 2 = 3

Step 3 · combine

Going halfway across and halfway up at the same time lands exactly halfway along the segment, so M is the same distance from A as from B.

M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2) = (2, 3)

Put it to use

Where the midpoint shows up

  • Maps and meeting points: on a flat map grid, the midpoint is the fair halfway spot between two locations.
  • Construction layout: marking the centre of a wall, a beam or a window opening from two measured ends.
  • Geometry: the perpendicular bisector, a circle's centre from a diameter, and the centre of a rectangle all start from midpoints.
  • Graphics and CAD: splitting a line into halves is how curves and meshes get subdivided.

How it works

The midpoint calculator finds the point exactly halfway between two points on a coordinate plane. You enter A = (x₁, y₁) and B = (x₂, y₂), or drag them, and it returns M, the point that splits segment AB into two equal halves.

The idea is simple averaging. The x-coordinate of the midpoint is the average of the two x-values, and the y-coordinate is the average of the two y-values. Going halfway across and halfway up at the same time lands you exactly halfway along the segment.

The page also shows that AM and MB have the same length, so you can see the answer is correct. Points outside the −10 to 10 picture still get an exact answer, though the drawing is clipped.

M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)AM = MB = ½ × √((x₂ − x₁)² + (y₂ − y₁)²)

Worked example: Midpoint of A(−3, 5) and B(7, −1)

  1. x-coordinate: (−3 + 7) ÷ 2 = 4 ÷ 2 = 2.
  2. y-coordinate: (5 + (−1)) ÷ 2 = 4 ÷ 2 = 2.
  3. So the midpoint is M = (2, 2).
  4. Check: AM = √((2 − (−3))² + (2 − 5)²) = √(25 + 9) = √34, and MB = √((7 − 2)² + (−1 − 2)²) = √(25 + 9) = √34. They match.

Common mistakes

  • Subtracting instead of adding. The midpoint uses (x₁ + x₂) ÷ 2, not (x₂ − x₁) ÷ 2. The difference gives half the horizontal distance, not a coordinate.
  • Dropping a negative sign. With A(−3, 5), the sum −3 + 7 is 4, not 10.
  • Mixing coordinates, such as averaging x₁ with y₂. Keep the x-values together and the y-values together.
  • Forgetting to divide by 2 for both coordinates. Each one is an average.

Frequently asked questions

What is the midpoint formula?

M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). You average the x-coordinates and average the y-coordinates.

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

Reverse the averaging: x₂ = 2 × Mx − x₁ and y₂ = 2 × My − y₁. For midpoint (2, 2) and endpoint (−3, 5), the other endpoint is (2 × 2 + 3, 2 × 2 − 5) = (7, −1).

Does the order of the points matter?

No. Addition does not depend on order, so swapping A and B gives the same midpoint.

Can the midpoint have decimal coordinates?

Yes. If a sum is odd, the coordinate ends in .5. For example, the midpoint of (1, 2) and (4, 7) is (2.5, 4.5).