Distance Calculator

This free distance calculator finds the straight-line (“as the crow flies”) distance between any two places, in kilometers or miles. Enter two city names, addresses, or raw coordinates (like 6.5244, 3.3792), and the tool uses the Haversine formula to calculate the great-circle distance between them based on latitude and longitude. It's useful for quick geography questions, shipping and logistics estimates, or comparing how far apart two locations really are, though keep in mind this is not driving distance, since it doesn't follow roads. Place names are looked up via OpenStreetMap's free Nominatim service; raw coordinates are calculated entirely in your browser.

Units

How to use

  1. Enter a place name or coordinates in the "From" field (e.g. Lagos, Nigeria).
  2. Enter a place name or coordinates in the "To" field (e.g. Abuja, Nigeria).
  3. Choose kilometers or miles as your unit.
  4. Click "Calculate distance" to see the straight-line distance between the two points.

Example usage

Enter Lagos, Nigeria as "From" and Abuja, Nigeria as "To", then click Calculate.

You'll get the straight-line ("as the crow flies") distance between the two cities, not the driving distance.

FAQ

Using the Haversine formula, which calculates the great-circle distance between two points on a sphere from their latitude and longitude. All of the math runs locally in your browser.

Straight-line ("as the crow flies") distance. It doesn't follow roads, so actual travel distance will usually be longer.

Yes. Enter latitude and longitude separated by a comma, e.g. 6.5244, 3.3792, and it will be used directly with no lookup needed.

If you enter raw coordinates, nothing leaves your browser. If you enter a place name, it's sent to OpenStreetMap's free Nominatim geocoding service to look up its coordinates. This is the only lookup involved, and it's a third-party service, not our own servers.

Maps apps calculate driving or walking routes that follow actual roads and paths, which are almost always longer than the straight-line distance this tool calculates.

It's a standard formula for finding the shortest distance between two points on a sphere, using their latitude and longitude. It's accurate for most everyday distance estimates, though it assumes Earth is a perfect sphere rather than accounting for its slight flattening.

When you enter place names instead of coordinates, the tool has to look each one up using OpenStreetMap's free Nominatim service, which adds a short delay (about a second) between lookups to respect its usage limits.