Naar de inhoud
OneKitly

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

Gepubliceerd op 4-11-2026 · 3 min leestijd · Ontwikkelaarstools

Daniel Okonkwo

Daniel Okonkwo — Front-enddeveloper en techredacteur bij OneKitly

Webprestaties · Bestandsformaten

Getoetst aan 2 bronnen

Profiel bekijken →
Kort gezegd

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.

Advertentie

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)

Uitgewerkt met onze eigen calculator

Middelpuntcalculator

Gegeven

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

Resultaat

Middelpunt x
10
Middelpunt y
10

Deze cijfers komen uit de calculator hieronder, ze zijn niet met de hand ingetypt — ze worden opnieuw berekend telkens als de tool verandert.

Reken het door met je eigen cijfers →
Advertentie

Veelgestelde vragen

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.

Artikelen die je misschien interesseren

Alle gidsen →

Vergelijkbare tools

Bronnen

Een fout in dit artikel gezien?