Midpoint Calculator

Find the point halfway between two coordinates, and any other fraction along.

x coordinate of the point
Adjust the inputs

Your result updates live as you type.

The midpoint of a segment is simply the average of the two endpoints, taken one coordinate at a time. It has to be, because averaging is precisely the operation that lands halfway between two numbers. The result is the centre of the segment and also the centre of the circle for which the segment is a diameter.

The same idea generalises to any fraction along the line, which is the linear interpolation used throughout graphics and animation. Setting the fraction to 0.25 gives the quarter point, 0.5 gives the midpoint and values beyond one extrapolate past the second endpoint. That single parameter is enough to reach every point on the infinite line through the two.

The formula

M = ((x1 + x2) ÷ 2, (y1 + y2) ÷ 2)
x₁, y₁
First endpoint
x₂, y₂
Second endpoint
t
Fraction along the segment, 0.5 for the midpoint

How it works, step by step

  1. Enter the coordinates of both endpoints.
  2. Set the fraction along the segment — leave it at 0.5 for the true midpoint.
  3. The gauge shows the x coordinate of the resulting point.
  4. The full coordinates and the segment length appear below.

Worked examples

Midpoint of (2, 4) and (14, 10)

Averaging each coordinate gives (8, 7). The segment length is 13.4164, so the midpoint sits 6.7082 from either end.

A quarter of the way along

Setting the fraction to 0.25 gives (5, 5.5), which is 3.3541 from the first endpoint.

How to read your score

—–0Left of the originThe point sits at a negative x coordinate.
0–8Left halfTowards the lower end of the x range.
8–16Right halfTowards the upper end of the x range.
16–—Far rightA large positive x coordinate.

Frequently asked questions

Why is the midpoint just the average?

Because averaging two numbers lands exactly between them. Doing it separately for x and for y places the point halfway in both directions at once, which is the definition of the midpoint.

What is linear interpolation?

Moving a fraction t along the line from the first point to the second. At t = 0 you are at the start, at t = 1 at the end, and at 0.5 at the midpoint.

How do I find a third endpoint given one end and the midpoint?

Double the midpoint and subtract the known endpoint, coordinate by coordinate. The midpoint of (2,4) and (14,10) is (8,7), and 2 × 8 − 2 is 14 as expected.

Does this work in three dimensions?

Yes, with a third averaged coordinate. The midpoint of a segment in space is the componentwise mean of its endpoints.

Points along a segment

Points along the segment from (2, 4) to (14, 10)
Fraction txyDistance from start
0.002.0004.0000.0000
0.103.2004.6001.3416
0.255.0005.5003.3541
0.335.9605.9804.4274
0.508.0007.0006.7082
0.6710.0048.0028.9487
0.7511.0008.50010.0623
0.9012.8009.40012.0748
1.0014.00010.00013.4164

At t = 0.5 the point is the midpoint; the total segment length is 13.4164.

Related calculators