Math

Midpoint Calculator

Find the point exactly halfway between two coordinates, plus the distance separating them.

Midpoint (x, y)
(2.5, 4)

The point exactly halfway between the two.

Distance between points
5

Straight-line length of the segment.

Step by step

  1. xₘ = (x₁ + x₂) / 2 = (1 + 4) / 2 = 2.5
  2. yₘ = (y₁ + y₂) / 2 = (2 + 6) / 2 = 4

How it works

The midpoint is the point that sits dead center between two others. To find it, you average the x-coordinates and average the y-coordinates separately: xₘ = (x₁ + x₂) / 2 and yₘ = (y₁ + y₂) / 2. For (1, 2) and (4, 6), that's (2.5, 4).

Because you're just taking two averages, negative numbers and decimals work exactly the same way — nothing special to worry about. The result always lands on the straight line connecting your two points.

As a bonus, this tool also reports the distance between the two points using the distance formula. So in one step you learn both where the middle is and how far apart the endpoints are.

Frequently asked questions

Is the midpoint always between the two points?

Yes. Averaging two numbers always gives a value between them, so the midpoint lies on the segment joining your points — never outside it. If the two points are identical, the midpoint is that same point.

Can I use negative coordinates?

Absolutely. The formula just averages the values, so negatives are handled naturally. For example, the midpoint of (−4, 0) and (2, 0) is (−1, 0).

What's the difference between the midpoint and the distance?

The midpoint is a location — the halfway point, given as a coordinate pair. The distance is a single length: how far apart the two points are. This calculator gives you both at once.