Skip to content
Calc.

Midpoint Calculator

Find the midpoint of a line segment from the coordinates of its two endpoints, (x₁, y₁) and (x₂, y₂).

Last updated: October 2026

Midpoint (x, y)

(5, 7)

Formula below · 2 sources (mathworld.wolfram.com, Wikipedia) · Updated Oct 2026

Compare with similar

About this calculator

The midpoint of a segment is the point exactly halfway between its endpoints. For (x₁, y₁) and (x₂, y₂):

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

Each coordinate is the average of the two endpoint coordinates, so the midpoint is the same distance from both ends. The diagram under the result plots both points and the segment.

The same idea works in three dimensions (average the z-coordinates too). To find a missing endpoint when you know one endpoint and the midpoint, reverse the formula: x₂ = 2 × Mx − x₁ and y₂ = 2 × My − y₁. Midpoints are used to find the center of a circle from the ends of a diameter and to draw perpendicular bisectors.

How to use

Enter the x and y coordinates of both points. The default points (2, 4) and (8, 10) give ((2 + 8) ÷ 2, (4 + 10) ÷ 2) = (5, 7). Check: (5, 7) is √18 ≈ 4.24 units from each endpoint. Negative coordinates work the same way: (−3, 5) and (4, −2) give (0.5, 1.5).

Frequently asked questions

How do I find the midpoint of a line segment?

Add the two x-coordinates and divide by 2, then do the same with the two y-coordinates. Those two averages are the midpoint's coordinates.

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

Double the midpoint and subtract the known endpoint: x₂ = 2Mx − x₁ and y₂ = 2My − y₁. If the midpoint is (5, 7) and one end is (2, 4), the other end is (8, 10).

Is the midpoint the same as the distance between points?

No. The midpoint is a location; the distance is a length, √((x₂ − x₁)² + (y₂ − y₁)²). For (2, 4) and (8, 10) the distance is √72 ≈ 8.49, and the midpoint is 4.24 from each end.

Related calculators

Sources & references

Think a result is wrong? Report a problem with this calculator.