Skip to content
Calcora

Midpoint Calculator

The midpoint of a line segment between two (x, y) points.

Input sheet

Browse DIY guidesDo the project yourself, step by step

DIY at your own risk. Calcora's calculators and guides are general estimates and information only — not professional, engineering, legal, or safety advice. Always verify local building codes and permit requirements, and hire a licensed pro for electrical, gas, plumbing, structural, or any work you're not fully comfortable doing yourself.

The midpoint is the exact center of a line segment — the point that sits an equal distance from both endpoints. It comes up constantly in geometry, computer graphics, mapping, and any time you need to split a span evenly.

How it works

Midpoint = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2) — the average of the two endpoints' coordinates.

Finding a midpoint is just averaging. You average the two x-coordinates to get the midpoint's x, and average the two y-coordinates to get its y. Because each axis is handled independently, the formula extends cleanly to three dimensions (average the z-values too) or to any higher dimension.

The order of the points never matters: averaging x₁ and x₂ gives the same result as averaging x₂ and x₁. Negative coordinates work exactly the same way — the average simply lands wherever the true center is, above or below zero.

Midpoint = ( (x₁ + x₂) ÷ 2 , (y₁ + y₂) ÷ 2 ) — average the two x-values for the midpoint's x, and average the two y-values for its y.

Worked examples

Tips & gotchas

FAQ

Is the midpoint always between the two points?

Yes. Because it's the average of the coordinates, it always lands on the segment itself, exactly halfway from each end.

Does it matter which point I enter first?

No. Averaging is order-independent, so swapping point 1 and point 2 produces the identical midpoint.

Can I use the midpoint to find a missing endpoint?

Yes. If you know the midpoint and one endpoint, double the midpoint coordinate and subtract the known endpoint to recover the other one.

Related calculators

Percentage Calculator · Percent Change Calculator · Average (Mean) Calculator · Ratio Calculator · Exponent Calculator