Distance Between Cities

Enter two city names and their coordinates to instantly get the straight-line distance in kilometers and miles.

Enter Two Cities

City 1
City 2

Enter two city coordinates and click Calculate

Try an Example
Copied!

Summary

Enter two city names and their coordinates to instantly get the straight-line distance in kilometers and miles.

How it works

  1. Enter the name and decimal-degree coordinates (latitude, longitude) for City 1.
  2. Enter the name and decimal-degree coordinates for City 2.
  3. Click "Calculate Distance" to run the Haversine formula.
  4. Read the result in both kilometers and miles.
  5. Use the copy buttons to copy either distance value.
  6. Click "Swap Cities" to reverse the two city entries, or "Reset" to start over.

Use cases

  • Estimate how far apart two travel destinations are as-the-crow-flies.
  • Compare city distances when planning a multi-stop itinerary.
  • Check airline route distances for rough flight-time estimates.
  • Educational projects that need quick great-circle distance lookup.
  • Validating distance data in logistics or geography homework.
  • Comparing road-trip vs. straight-line distances between cities.
  • Finding which of several cities is closest to a reference point.
  • Quick sanity-checking of GPS coordinates before using them in code.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu