Skip to content
OneKitly

Averaging Two Coordinates Is Not the Same as Meeting in the Middle

Published 11/4/2026 · 3 min read · Developer tools

Daniel Okonkwo

Daniel Okonkwo — Front-end developer and tech writer at OneKitly

Web performance · File formats

Checked against 2 sources

View profile →
In short

The midpoint formula averages the two x values and the two y values independently: (2, 3) and (8, 7) give (5, 5), and (−4, −2) and (10, 8) give (3, 3). That is exactly the point that halves the straight line between them, and it is correct whenever straight-line distance is what matters. It stops being the right answer as soon as the space is not flat and empty. Two towns forty kilometres apart with a river between them have a geometric midpoint in the water; two colleagues in different time zones have a temporal midpoint that may be three in the morning for one of them.

Advertisement

The midpoint of (2, 3) and (8, 7) is (5, 5) — average each coordinate separately. On a map, on a road network or across a time zone, that point is often the wrong place to meet.

Meeting halfway is a travel-time problem, not a geometry one

The point that is geometrically central is rarely the point that both parties reach in the same time, because roads, rails and traffic distribute themselves unevenly. Someone on a motorway covers three times the distance per hour of someone on country lanes, so the fair meeting place lies well over towards the slower traveller. Mapping services solve this by computing travel times outward from both origins and finding where the two contours meet, which is a search rather than a formula and can return several answers or none inside a sensible radius. The coordinate midpoint is a good starting guess for that search and a poor final answer.

On a globe the formula quietly fails

Averaging latitude and longitude works acceptably for points a few kilometres apart and drifts badly over continental distances, because longitude lines converge towards the poles and the shortest path between two distant points curves. The midpoint of London and Tokyo by naive averaging lands in central Asia, while the actual halfway point of the flight path is far to the north over Siberia. Worse, averaging longitudes across the date line produces a point on the opposite side of the planet — a bug that appears only for routes crossing the Pacific, which is why it survives testing so often.

Three pairs and their midpoints
First pointSecond pointMidpoint
(2, 3)(8, 7)(5, 5)
(0, 0)(10, 0)(5, 0)
(−4, −2)(10, 8)(3, 3)

Worked with our own calculator

Midpoint calculator

Given

x₁
4
y₁
6
x₂
16
y₂
14

Result

Midpoint x
10
Midpoint y
10

These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.

Run it on your own figures →
Advertisement

Frequently asked questions

Is there a midpoint of more than two points?
Two different ones, and they answer different questions. The centroid — the average of all the coordinates — minimises the sum of squared distances and is what a spreadsheet computes by default. The geometric median minimises the sum of plain distances and is what you want when nobody should have to travel unreasonably far, but it has no closed formula and must be found by iteration. For a group meeting point the second is the right target and the first is the one most tools give you, a substitution that goes unnoticed until one participant lives much further out than the rest.
Why does the formula have no square root in it?
Because it locates a point rather than measuring a length. Distance requires combining the two coordinate differences into one number, which is where Pythagoras and the square root come in; the midpoint keeps the two dimensions separate and never mixes them. That independence is why the formula extends to any number of dimensions by simply averaging each one, and why it is one of the cheapest operations in graphics code — two additions and two shifts, with no function call at all.

Articles you may find interesting

All guides →

Related tools

Sources

Spotted a mistake in this article?