Midpoint Calculator screenshot

Midpoint Calculator

Find the midpoint of two coordinates with the distance between them, the exact squared distance and the slope of the segment.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Exact where arithmetic allows

Midpoint Calculator

Find the midpoint of two coordinates with the distance between them, the exact squared distance and the slope of the segment.

How this page computes

Each coordinate of the midpoint is the average of the two inputs. The separations are the coordinate differences, and the distance is the hypotenuse of those separations.

The squared distance is the sum of the squared separations, printed exactly. The slope is the vertical separation over the horizontal one, with a zero run reported as undefined.

The calculation runs entirely in this browser tab; nothing is uploaded.

The midpoint of (1, 2) and (5, 10) is (3, 6), because each coordinate is the average of its pair. The page also prints the distance between the points and the slope of the segment, which are the two quantities normally wanted alongside it.

The distance is a square root, so the squared distance is printed exactly beside it: 80 for this pair, with the root shown to six decimals.

How to use Midpoint Calculator

Enter both points and press Run. Two identical points are refused, because they have no midpoint of their own and no distance to measure.

The output gives the midpoint, the horizontal and vertical separations, the distance and its square, and the slope of the segment — which is reported as undefined for a vertical segment.

Averages for the midpoint, differences for the distance

The midpoint averages each coordinate separately: x is (x₁ + x₂)/2 and y is (y₁ + y₂)/2. That is why the midpoint is exactly halfway along the segment in both directions, not just in one.

The distance is the hypotenuse of the horizontal and vertical separations, which is the distance formula. Its square is a sum of squares of coordinate differences and is therefore exact, so the page prints both.

What to Expect

Best for

  • The midpoint of two coordinates
  • The distance between two points
  • The slope of the segment joining them

Not ideal for

  • A weighted midpoint closer to one end, which needs a ratio
  • The midpoint of a line rather than a segment
  • Two identical points, which are refused

What this tool keeps

  • All four coordinates exactly as typed

What may need cleanup

  • Nothing: the midpoint and the distance are final

Common errors

  • Identical points are refused with the coordinates
  • A non-numeric coordinate is refused by name

Example use cases

  • Find the midpoint of (1, 2) and (5, 10)
  • Get the distance between two points
  • Find the slope of the segment joining them

Sample input

(1, 2) and (5, 10)

Sample output

midpoint (3, 6), distance 8.94427191, squared distance 80

Who this is for

  • Students meeting the coordinate plane
  • Readers bisecting a segment

Frequently asked questions

Why is the squared distance printed?

Because the distance itself is usually irrational. 80 is exact and 8.94427191 is the rounded root, so printing only the root would hide the exact value.

What if the segment is vertical?

The slope is undefined, because the run is zero, and the page says so instead of printing infinity as a slope. The midpoint and the distance are unaffected.

Can the coordinates be negative or fractional?

Yes. The averages and differences work the same way, and the output keeps the sign so a midpoint left of the origin is not mistaken for a positive one.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.