Distance Between Cities
Enter two city names and their coordinates to instantly get the straight-line distance in kilometers and miles.
Enter Two Cities
Enter two city coordinates and click Calculate
From
City 1
To
City 2
Kilometers
—
km
Miles
—
mi
Coordinates Used
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
- Enter the name and decimal-degree coordinates (latitude, longitude) for City 1.
- Enter the name and decimal-degree coordinates for City 2.
- Click "Calculate Distance" to run the Haversine formula.
- Read the result in both kilometers and miles.
- Use the copy buttons to copy either distance value.
- 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