Midpoint calculator

Where is halfway between two places, or the middle of several? The midpoint on the globe, how far each place is from it, and the nearest town to it.

How to use it

  1. Add two or more places: search, use your location, or click the map.
  2. Read the midpoint, the nearest town to it, and the distance from each place.
  3. Copy the link to share the meeting point.

5 practical uses

  1. Pick a fair place to meet a friend who lives across town.
  2. Find a venue between several offices or families.
  3. Plan a halfway stop on a long drive.
  4. Find the centre of a group of homes for a car pool.
  5. Locate the midpoint of a flight or a sea crossing.

The maths behind it

For two points the midpoint on the great circle is φ = atan2(sin φ₁ + sin φ₂, √((cos φ₁ + Bₓ)² + Bᵧ²)), with Bₓ = cos φ₂ cos Δλ and Bᵧ = cos φ₂ sin Δλ. For more points each is converted to a unit vector, the vectors are averaged, and the average is converted back to latitude and longitude: the geographic centre, or centre of gravity, of the points.

Which middle

For two places the midpoint is the point halfway along the shortest path between them over the surface of the Earth. For more, it is the geographic centre: the point that balances them all, found by averaging their positions in three dimensions and projecting back onto the sphere. That is the centre of gravity, not the point with equal travel time; someone on their own far to the east pulls the middle towards them less than a road-based "fair meeting point" would.

The nearest town comes from GeoNames places with 5,000 or more people, with the distance from the midpoint.

Questions and answers

How is the midpoint found?

For two places, halfway along the great circle between them. For more, the centre of gravity of the points on the sphere.

Is the midpoint fair in travel time?

It is fair in straight-line distance, not in travel time. Use the driving distance tool to check the drive from each place.

Can I find the nearest city to the midpoint?

The card gives the nearest town and the nearest city over 100,000 people from the GeoNames data.

Embed this tool on your website

Paste this code where the tool should appear. It shows the tool alone, without this page's text, and links back here. It is free to use; the map data credit stays on the map.

<iframe src="https://waymorphic.com/tools/midpoint-calculator?embed=1" width="100%" height="760" style="border:0;border-radius:12px;max-width:100%" loading="lazy" allow="geolocation; fullscreen; clipboard-write" title="Midpoint calculator – Waymorphic Map"></iframe>

Change height to suit your page. To open the tool with a place already set, add the settings from this page's address bar (the part after #) to the end of the src. The embedded tool asks the visitor's browser for their location only when they press the button, and the allow attribute lets that work inside the frame.