Key facts
- Method: the halfway point lies on the geodesic between the two places on the WGS84 ellipsoid (GeographicLib); for three or more places the geographic midpoint and the minimum-distance point are calculated; a country's centre is given three ways.
- Data and libraries: OpenFreeMap, MapLibre GL JS, GeographicLib (geographiclib-geodesic), GeoNames (via all-the-cities), Natural Earth (via world-atlas).
- Free to use, with no sign-up and nothing to install.
"Where should we meet halfway?" is the classic question behind a midpoint search, but the same calculation helps to place a warehouse between customers, a meeting venue between offices, or a relay station between two sites. Add places by searching for towns and cities or by clicking on the map; the midpoint appears as an orange marker as soon as there are two, with thin lines to every place and the distance from the midpoint to each one. The panel names the nearest town to the midpoint, which is usually the practical answer to "where do we meet?". With three or more places you choose what "middle" should mean: the geographic midpoint, which is the centre of the places as seen from the centre of the Earth, or the point from which the sum of the distances to all places is as small as possible. Drag any place and the midpoint follows. Copy the midpoint's coordinates with one click, share the map with a link, or download the places and the midpoint as KML or GeoJSON.
How to use it
- Type a town in the search box and pick it, then add a second one, or click two points on the map.
- Read the midpoint, the nearest town and the distance to each place in the panel.
- For three or more places, choose the geographic midpoint or the least total travel distance.
- Copy the midpoint's coordinates, share the link, or download KML or GeoJSON.
- For the centre of a country or area, choose the country or open a polygon file under "Centre of a country or area".
How accurate is it?
Two places – the true halfway point
For two places the midpoint lies on the geodesic, the shortest path between them on the WGS84 ellipsoid, at exactly half its length, calculated with GeographicLib. Both places are the same distance from it to within a millimetre. A simple average of the latitudes and longitudes is not the same: between New York and London it lands about 760 km south-east of the real halfway point, because the shortest path curves north over the Atlantic.
Three or more places – two kinds of middle
The geographic midpoint is the average of the places as directions from the centre of the Earth, pushed back out to the surface. It is the usual "centre of gravity" and is pulled towards clusters of places. The least total travel distance point is the geometric median: the spot from which the distances to all places add up to the smallest sum, found by Weiszfeld's iteration with geodesic distances to within a millimetre. It is less affected by one far-away place, and when most places sit together it moves into the cluster.
Searched towns are town centres
A searched town is placed at the point GeoNames gives for it, usually the historic centre or the main square. For an exact start, such as a home or an office, zoom in and click its position on the map, or drag the numbered marker there.
The centre of a country or area – three answers
Below the places, choose a country or open an area from a KML, GeoJSON or GPX file, and the map marks three centres, because "the middle" of an area can mean three different things. G, the centre of gravity, is the point a cut-out of the area would balance on, worked out on the ellipsoid from the whole area (see below for how). F is the point farthest from the edge, the spot where you are as far as possible from any border or coast, with the distance to the nearest edge. E is the middle of the extremes, halfway between the northernmost and southernmost points and between the easternmost and westernmost ones. For a compact country such as Germany or France the three lie within a few dozen kilometres of each other; for a curved or scattered one such as Japan, Croatia or Indonesia the centre of gravity can fall outside the country, and the panel says how far from it. Distant parts, like Alaska and Hawaii for the United States or French Guiana for France, are left out unless you tick the box, which is why the centre of the 48 contiguous states lies in Kansas and the centre of all 50 in South Dakota.
The centre of an area – how it is worked out
The centre of gravity is the average position of the whole area in three dimensions, summed row by row over the WGS84 ellipsoid in strips of about 1 km and moved to the surface along the vertical, so it does not depend on a map projection. The point farthest from the edge is found by dividing the area into ever smaller cells and measuring geodesic distances to the outline, to about 1/4,000 of the area's size. Country outlines come from Natural Earth at 1:50 million, so coasts and borders are simplified: the centres are good to a few kilometres, and the area of the country to about 1 %. For a precise result, open your own detailed outline as a file.
Good to know
Halfway in distance is not halfway in time
The midpoint is measured as the crow flies. Roads, ferries and traffic decide where a drive is really halfway, so treat the nearest town as a suggestion and check the travel time from both sides with a route planner.
The nearest town may be small
The town list holds places with at least 15,000 inhabitants, so the town shown may be a bit further away than a village right at the midpoint. Zoom in on the map to see the villages around the orange marker.
Places on opposite sides of the Earth
Two places exactly opposite each other have no single shortest path, and places spread evenly around the globe have no geographic midpoint. The tool says so instead of guessing; move one place slightly and the midpoint appears.
A pasted town name means the biggest town of that name
A town name in a pasted list or file is matched to the largest town of that name in the GeoNames list (towns from 15,000 people), so "Paris" is Paris, France, and "Springfield" is the largest Springfield. Add the country after a comma, e.g. "Paris, US", and use coordinates for villages, street addresses and postcodes, which the list does not know. Check the numbered points on the map before you use the midpoint.
Frequently asked questions
What is the halfway point between two cities?
Search both cities and the orange marker shows the point on the shortest path that is equally far from both, with its coordinates, the nearest town and the distance to each city.
Is the midpoint the average of the coordinates?
Only roughly, for places close together. Over longer distances the average of latitude and longitude can be hundreds of kilometres off, so the tool calculates the midpoint on the ellipsoid instead.
How do I find a central meeting point for a group?
Add every person's town or address point. Choose "Least total travel distance" to keep the total travelling as small as possible for the whole group, or the geographic midpoint for the centre of the group.
Can I find the midpoint in miles?
Yes. Switch the unit to miles or nautical miles and all distances in the panel and the list are shown in that unit. The midpoint itself does not change.
Can I use the midpoint in Google Maps?
Yes. Press "Copy midpoint" and paste the coordinates into the Google Maps search box, or download the KML and open it in Google Earth.
How do I find a fair meeting town for three or more places?
Add each place, and set how many people come from each one if the groups differ in size. Under "Towns to meet in" the tool lists five towns where the longest trip is shortest, with the longest and the total straight-line distance for each. Travel times by road can differ, so check the route before you book.
How do I find the midpoint of a list of places or addresses?
Paste the places into "Or paste places", one per line – town names, coordinates, or a name followed by coordinates – or open a CSV file with latitude and longitude or town and country columns. A column such as people or count sets the group size. Street addresses are not looked up, so turn them into coordinates first and paste those. You can add up to 200 places in all.
Can I download the distance from each place to the midpoint?
Yes. "Distances (CSV)" saves one row per place with its name, coordinates, number of people, the geodesic (straight-line) distance to the midpoint in your unit and in metres, and the compass direction from the place towards the midpoint. The file opens in Excel, LibreOffice or Google Sheets.
Where is the geographic centre of a country?
Choose the country under "Centre of a country or area". The map shows its centre of gravity (G), the point farthest from the border or coast (F) and the middle of its extremes (E), each with coordinates and the nearest town. Official centres differ because countries pick different methods and outlines, so the tool shows all three and how far apart they are.
How do I find the centre of my own area, such as a field, a district or a lake?
Draw the area on the area calculator and download it as KML or GeoJSON, or use a polygon file from QGIS or Google Earth, then open it under "Or open an area". Holes and several polygons are taken into account.
Something wrong or missing? E-mail [email protected] and it will be fixed.