Skip to content

DIY Cost Tools

Midpoint Calculator

Find the midpoint and straight-line distance between two points on a 2D coordinate plane. Use the prefilled example or enter your own values for immediate results.

All four coordinates are required. Negative coordinates and zero are valid. Numeric magnitude is limited to 1 trillion.

Midpoint x—
Midpoint y—
Distance (coordinate units)—

How to use this calculator

Enter a number in every field, then select Calculate. The default example runs when the page opens. Invalid entries show an explanation and clear previous results. Outputs use up to ten significant digits, so long answers may be rounded.

Formula and explanation

Midpoint M = ((x₁ + x₂)/2, (y₁ + y₂)/2). Distance = √((x₂ − x₁)² + (y₂ − y₁)²). Each midpoint coordinate averages the matching coordinates; distance follows the Pythagorean theorem.

Worked example

For (2, 4) and (8, 12), midpoint is (5, 8). Coordinate differences are 6 and 8, giving distance √100 = 10.

Limitations

Assumes a flat Cartesian plane with equal length scales on both axes. Longitude and latitude are not Cartesian distance units; this tool does not calculate geographic midpoint or distance over the Earth. Results reflect measurement precision and numerical rounding. This tool supports learning and planning; verify precision requirements for professional applications.

Frequently asked questions

Can coordinates be negative?

Yes. Points may lie in any quadrant.

What if both points are identical?

The midpoint is the same point and distance is zero.

Does the order of points matter?

No. Swapping endpoints produces the same midpoint and distance.

Can I use different units on the axes?

For geometric distance, both axes must use equal scales and matching units.

Review notes

Reviewed October 1, 2026. Default values and boundary examples were independently checked against the formulas. Blank, nonfinite, excessive, and out-of-range inputs were tested before publication.

Related calculators