Small tools. Clear answers.
ƒ MATH Ready to calculate

Midpoint Calculator

Find the point halfway between two endpoints on an x–y coordinate plane. Enter their coordinates to see the midpoint, the calculation for each coordinate and a scaled diagram.

Let’s work it out

Enter the coordinates of two points on a flat coordinate plane. Negative numbers and decimals are supported. This calculator does not use latitude and longitude.

◈ Calculated in your browser. Your inputs stay here.
EXAMPLE RESULT
—

Calculate to see your answer.

Calculation methods, precision limits and reproducible checks are explained in our methodology. Review the working and report a correction if a result does not match your inputs. See methods and checks.

01

How to use the Midpoint Calculator

  1. Write down the coordinates of both endpoints.
  2. Average the x-coordinates and the y-coordinates separately.
  3. Combine the two averages into the midpoint coordinate pair.
02

Midpoint formula

The midpoint divides a straight line segment into two equal lengths. Moving halfway from A to B gives Ax + (Bx − Ax)/2 = (Ax + Bx)/2, with the same reasoning for y. Use 2D Cartesian coordinates, not latitude and longitude.

THE FORMULA M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

What the terms mean

(x₁, y₁)
The coordinates of the first endpoint.
(x₂, y₂)
The coordinates of the second endpoint.
M
The midpoint: halfway along the straight segment joining the endpoints.
TRY IT ON PAPER

Midpoint worked examples

Find a midpoint with positive coordinates

Find the midpoint between (2, 4) and (8, 10).

  1. Average the x-coordinates: (2 + 8) ÷ 2 = 5.
  2. Average the y-coordinates: (4 + 10) ÷ 2 = 7.

Answer: The midpoint is (5, 7).

Use negative coordinates

Find the midpoint between (−4, 2) and (6, −8).

  1. Average the x-coordinates: (−4 + 6) ÷ 2 = 1.
  2. Average the y-coordinates: (2 + (−8)) ÷ 2 = −3.

Answer: The midpoint is (1, −3).

Get a decimal midpoint

Find the midpoint between (1, 2) and (2, 5).

  1. Average the x-coordinates: (1 + 2) ÷ 2 = 1.5.
  2. Average the y-coordinates: (2 + 5) ÷ 2 = 3.5.

Answer: The midpoint is (1.5, 3.5). Whole-number endpoints can produce decimal midpoint coordinates.

Find the midpoint of a horizontal segment

A = (−2, 5) and B = (8, 5).

  1. Mx = (−2 + 8)/2 = 3.
  2. My = (5 + 5)/2 = 5.
  3. The y-coordinate stays the same because the segment is horizontal.

Answer: M = (3, 5).

03

Midpoint Calculator FAQs

Can a midpoint have decimals?

Yes. Integer endpoints can produce decimal coordinates. This tool accepts finite decimal coordinates; it does not accept fraction expressions such as 1/3.

Does the order of the points matter?

No. Adding each pair of coordinates gives the same result in either order, so swapping A and B leaves the midpoint unchanged.

Why do I average each coordinate?

Moving halfway from A to B means taking half the horizontal change and half the vertical change. Algebraically, Ax + (Bx − Ax)/2 = (Ax + Bx)/2, with the same reasoning for y.

Can the midpoint equal an endpoint?

Yes, when both endpoints are identical. Then A, B and M are the same point, which the diagram labels explicitly.

How do I find a missing endpoint?

If A and midpoint M are known, B = (2Mx − Ax, 2My − Ay). Use the linked Endpoint Calculator for that task.

ONE LESS THING TO WORK OUT

There’s a tool for that.

Explore all calculators ↗