esc
Calculators

Distance calculator:
points or latitude/longitude

Type two points as x, y (and z) coordinates, or two places as latitude and longitude, and get the straight-line distance, plus the compass bearing and halfway point for places.

°
Decimal degrees; south is negative.
°
West is negative.
°
°
Great-circle distance5,570.23 km3,461.18 miles
Kilometres
5,570.23
Miles
3,461.18
Nautical miles
3,007.684
Initial bearing
288.3° (WNW)
Halfway point
52.36844, -41.29031
  • Haversine formula on a sphere with the mean Earth radius of 6,371.0088 km. Because the Earth is slightly flattened, the true distance can differ by up to about 0.5%. Road and flight distances are longer.

How to use Distance calculator

  1. 01Pick 2D, 3D or placesCoordinates or lat/long.
  2. 02Type both pointsSouth and west are negative.
  3. 03Read the distanceIn km, miles, nautical miles.
File character arranging marked pages

Straight line or great circle.

On a flat grid the distance is √((x₂ − x₁)² + (y₂ − y₁)²), and a third squared difference is added for 3D. Between places on Earth the shortest route follows a great circle, which the haversine formula measures on a sphere with the mean Earth radius of 6,371 km. The initial bearing is the compass direction to set off in.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

How far is London from New York?

From 51.5074, −0.1278 to 40.7128, −74.0060 the great-circle distance is about 5,570 km (3,461 miles, 3,008 nautical miles), setting off at a bearing of about 288°, roughly west-north-west.

How do I type coordinates like 40°26′46″N?

Convert them to decimal degrees first: 40 + 26/60 + 46/3600 = 40.4461. Use the angle converter on this site for that, and make southern latitudes and western longitudes negative.

What is the distance between (1, 2) and (7, 10)?

The differences are 6 and 8, so the distance is √(36 + 64) = √100 = 10.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.