Skip to content

Distance Between Cities Calculator — Free Online Distance Tool

Calculate the straight-line (great-circle) distance between any two cities worldwide using their latitude and longitude coordinates.

City 1 (Origin)

°
°

City 2 (Destination)

°
°

Distance Results

Distance (km)5,570.22 km
Distance (miles)3,461.17 mi
Distance (nautical miles)3,007.68 nmi
Bearing51.21° (NE)
Est. Flight Time6h 11m
Est. Driving Time69h 38m

Popular City-to-City Distance Reference Table

Route Distance (km) Distance (mi) Est. Flight
New York to London 5,570 3,461 6h 11m
New York to Los Angeles 3,940 2,449 4h 23m
London to Tokyo 9,566 5,944 10h 38m
Sydney to Dubai 12,038 7,480 13h 23m
Chicago to Paris 6,657 4,136 7h 24m
Toronto to Mumbai 12,558 7,803 13h 57m

Related Calculators

About this calculator

Haversine Distance Formula

a = sin²(Δlat/2) + cos(lat1) · cos(lat2) · sin²(Δlng/2)
c = 2 · atan2(√a, √(1-a))
Distance = R · c (where R = 6,371 km)

Variables Explained

  • lat1, lat2: The latitudes of the two cities in radians. Latitude measures north-south position from -90 degrees (South Pole) to +90 degrees (North Pole). The formula requires conversion from degrees to radians by multiplying by π/180.
  • Δlat, Δlng: The differences between the two cities' latitudes and longitudes, respectively, in radians. These differences are the inputs to the Haversine function that computes the angular separation between the two points.
  • a: The square of half the chord length between the two points on the unit sphere. This intermediate value ranges from 0 (points are identical) to 1 (points are antipodal, on exact opposite sides of the sphere).
  • c: The angular distance in radians between the two points, computed from the intermediate value a. This represents the central angle subtended by the arc connecting the two points.
  • R: The mean radius of Earth, 6,371 kilometers (3,959 miles). This is the average of the equatorial radius (6,378 km) and the polar radius (6,357 km). Using this value introduces a maximum error of about 0.3%.
  • Distance: The great-circle distance in kilometers, obtained by multiplying the angular distance c by Earth's radius R. This is the shortest surface distance between the two cities.

Step-by-Step Example

Calculate the distance from New York (40.7128° N, 74.0060° W) to London (51.5074° N, 0.1278° W):

  1. Convert to radians: lat1 = 0.7106 rad, lat2 = 0.8989 rad, Δlat = 0.1883 rad, Δlng = 1.2880 rad
  2. Calculate a: sin²(0.0942) + cos(0.7106) · cos(0.8989) · sin²(0.6440) = 0.0089 + 0.764 · 0.627 · 0.361 = 0.182
  3. Calculate c: 2 · atan2(√0.182, √0.818) = 2 · 0.443 = 0.886 radians
  4. Calculate distance: 6,371 × 0.886 = 5,570 km (3,461 miles)

The great-circle distance from New York to London is approximately 5,570 kilometers or 3,461 miles. This matches well with published flight distances and confirms the Haversine formula's accuracy for intercontinental calculations.

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026