Free online formula calculators

Midpoint Calculator

Enter the endpoints of a line segment to find the point exactly halfway between them, plus the segment length.

Midpoint Calculator
Result
Midpoint(3, 2)
Midpoint x3
Midpoint y2
Segment length11.6619

Link to this calculation

Formula

M = ((x1 + x2) ÷ 2, (y1 + y2) ÷ 2)
SymbolMeaning
MMidpoint of the segment
(x₁, y₁), (x₂, y₂)The two endpoints

How to Use This Calculator

  1. Enter the x₁.
  2. Enter the y₁.
  3. Enter the x₂.
  4. Enter the y₂.
  5. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
x₁-2
y₁5
x₂8
y₂-1
Results
Midpoint(3, 2)
Midpoint x3
Midpoint y2
Segment length11.6619

About This Calculation

The midpoint of a segment is the point that sits exactly halfway between its two endpoints. Its coordinates are simply the averages of the endpoints' coordinates: add the two x-values and halve them, then do the same for y. The midpoint is equally far from both ends, so each half of the segment is exactly half the total length shown above.

A useful check is that the midpoint must lie between the endpoints in each coordinate. If your x-values are −2 and 8, the midpoint's x must be somewhere between them (here 3). A common slip is subtracting instead of adding — that gives half the distance, not the midpoint. You can also run the formula backwards: if you know one endpoint A and the midpoint M, the other endpoint is 2M − A.

Midpoints are used to find the center of a circle from the ends of a diameter, to construct perpendicular bisectors, to place labels or supports at the center of a beam or wall, and in computer graphics for subdividing lines and curves. The same averaging idea extends to three dimensions — just average the z-coordinates as well — and to finding the centroid of a triangle, which averages all three vertices.

Frequently Asked Questions

How do I find an endpoint if I know the midpoint?
Double the midpoint and subtract the known endpoint: x₂ = 2·Mx − x₁ and y₂ = 2·My − y₁.
Is the midpoint the same as the average?
Yes — each coordinate of the midpoint is the mean of the corresponding endpoint coordinates.

Category: Math & Algebra. Found a problem with this calculator? Let us know.