Midpoint Calculator

Enter the coordinates of two points — x1, y1, x2, and y2 — and the Midpoint Calculator returns the exact midpoint coordinates (xM, yM) halfway between them, along with the distance between the two points. Works with whole numbers, decimals, and negative values.

Results

Midpoint (xM, yM)

--

Midpoint X (xM)

--

Midpoint Y (yM)

--

Distance Between Points

--

Frequently Asked Questions

What is a midpoint?

A midpoint is the point that lies exactly halfway between two other points on a line segment. It is equidistant from both endpoints, effectively dividing the segment into two equal halves.

What is the midpoint formula?

The midpoint formula is: xM = (x1 + x2) / 2 and yM = (y1 + y2) / 2. You simply add each pair of corresponding coordinates and divide by 2 to find the center point between two coordinates.

How do I find the midpoint of a line segment?

To find the midpoint, add the x-coordinates of both endpoints and divide by 2 to get xM, then add the y-coordinates and divide by 2 to get yM. The result (xM, yM) is the midpoint of the segment.

How do you find the endpoint with the midpoint and the other endpoint?

If you know the midpoint (xM, yM) and one endpoint (x1, y1), you can find the other endpoint using: x2 = 2·xM − x1 and y2 = 2·yM − y1. Rearranging the midpoint formula lets you solve for the missing endpoint.

How is the distance between two points calculated?

The distance between two points is found using the distance formula: d = √((x2 − x1)² + (y2 − y1)²). This is derived from the Pythagorean theorem applied to the horizontal and vertical differences between the two points.

Do you round midpoints?

Midpoints are not typically rounded unless required by a specific problem. The midpoint formula can produce decimal values, and it is best practice to keep the full decimal precision unless you are working in a context that demands rounding (such as pixel coordinates).

Can this calculator handle negative coordinates?

Yes. The midpoint formula works with any real numbers, including negative values, decimals, and zero. Simply enter your coordinates as-is and the calculator will return the correct midpoint and distance.

What is the midpoint of a circle?

The midpoint of a circle refers to its center. If you know two opposite ends of a diameter, you can use the midpoint formula with those two points to find the exact center (midpoint) of the circle.

More Math Tools