Home Tools About Contact Privacy Terms
No sign-up · Free to use

Distance between two places or coordinates

Type two place names or enter GPS coordinates to get the straight-line distance between them, in kilometers, miles, or nautical miles.

Distance Calculator

How the calculation works

This calculator uses the Haversine formula to compute the great-circle distance between two latitude/longitude points — the shortest distance across the Earth's surface, ignoring roads, terrain, and elevation. It's the same basic method used by most "distance as the crow flies" tools.

What gets sent where

The distance math runs on your device using plain JavaScript. If you enter coordinates, nothing is sent anywhere. If you type a place name instead, that text is sent to OpenStreetMap's Nominatim service to find its coordinates, and nothing else leaves your browser.

Entering places or coordinates

For each point, type a place name or address, such as Dubai or Eiffel Tower, Paris, or enter decimal degrees separated by a comma, such as 25.2722, 55.3053. Place names are matched to the top OpenStreetMap result, and the name it matched is shown under your result so you can check it. Adding the country, for example "Springfield, Illinois, USA", avoids mix-ups between places with the same name. You can also use the location icon to fill in your current position.

Frequently asked questions

What kind of distance does this calculate? This tool calculates the great-circle (straight-line, "as the crow flies") distance between two points using the Haversine formula. It does not account for roads, terrain, or travel routes.
What can I enter for each point? Enter a place name or address, such as Dubai or Eiffel Tower, Paris, or decimal-degree coordinates, such as 25.2722, 55.3053. Place names are matched to the top OpenStreetMap result, and the matched name is shown under your result so you can check it. Coordinates need a latitude between -90 and 90 and a longitude between -180 and 180.
Can I use my current location as one of the points? Yes. Click the location icon inside either input field to fill it with your current coordinates via your browser's Geolocation API.