Distance Calculator — Calculate Distances Between Any Two Points
Enter any city name worldwide to calculate accurate distances using the Haversine formula. Supports millions of cities with smart geocoding. Local database + API fallback for global coverage.
Select Unit
From Location
Enter the first city name
Enter any city worldwide. For common names, add state/country (e.g., "Cambridge, UK")
To Location
Enter the destination city name
Supports cities worldwide. Be specific for better results (e.g., "Portland, Oregon")
Quick Presets
🌍 Accurate Global Distance Calculations
Using the Haversine formula for precise spherical distance calculations.
Haversine Formula
Mathematical precision for Earth's curvature
Privacy Protected
All calculations done in your browser
Multiple Units
5 different measurement units supported
Features
Global City Database
Millions of cities worldwide with smart geocoding
Haversine Formula
Accurate great-circle distance calculations
Offline + Online
Local database with API fallback for global coverage
Multiple Units
Kilometers, miles, nautical miles, meters, feet
Smart Search
Fuzzy matching and intelligent city name resolution
Instant Results
Fast calculations with helpful error messages