Distance between two coordinates

Enter two latitude/longitude points and instantly get the straight-line great-circle distance between them in kilometers, miles, meters and nautical miles, along with the initial bearing. Both points and the line connecting them are drawn on a live map — and everything runs in your browser.

5570.23 km / 3461.18 mi
Distance (km)
5570.23 km
Distance (miles)
3461.18 mi
Distance (meters)
5570229.9 m
Distance (nautical miles)
3007.684 nmi
Distance (feet)
18,275,032 ft
Initial bearing
51.2° NE
Compass direction from A to B

Distances are great-circle (haversine) — the shortest path over the surface of a spherical Earth, not road or driving distance. Accurate to well under 0.5% for any pair of points.

Drag the marker to adjust — or tap the map to move it.

What is the distance between two coordinates?

The distance between two coordinates is the length of the shortest path across Earth's surface from one latitude/longitude point to another — the great-circle distance. It is measured along the curve of the globe, not in a straight line through it, and it is shorter than any road or driving route between the same two places.

How to calculate distance between two coordinates

  1. Enter your first point as “latitude, longitude” in the Point A box (or tap the locate button to use your current position).
  2. Enter the second point in the Point B box, or use the swap button to reverse the two.
  3. Read the great-circle distance in kilometers, miles, meters and nautical miles, plus the initial bearing from A to B.
  4. Copy the result, or view both points and the connecting line on the map below.

Distance units and what they mean

UnitExampleBest for
Kilometers (km)5,570.2 kmEveryday distances, most of the world
Miles (mi)3,461.1 miUS/UK road and travel distances
Meters (m)5,570,225 mShort distances, surveying, precision
Nautical miles (nmi)3,008.0 nmiMarine and aviation navigation
Bearing (°)51.2° NECompass heading from start to end

Great-circle vs driving distance

This tool returns the great-circle (haversine) distance — the shortest path over a sphere, also called “as the crow flies.” It is ideal for flight planning, radio range, mapping and proximity checks, but it is always shorter than the road distance a car would travel. The midpoint calculator finds the point halfway along that same great-circle path.

How accurate is the haversine distance?

The haversine formula models Earth as a sphere, which keeps the error below about 0.5% even for points on opposite sides of the planet — far more precise than a consumer distance tool needs. All inputs use the WGS84 datum, and the calculation runs entirely in your browser, so your coordinates are never uploaded. Need to convert a point first? Use the coordinate converter.

Frequently asked questions

How do you calculate the distance between two GPS coordinates?

Use the haversine formula, which computes the great-circle distance between two latitude/longitude points on a sphere. This tool does it for you: enter both points and it returns the distance in kilometers, miles, meters and nautical miles, plus the initial bearing — all in your browser.

What is the haversine formula?

The haversine formula calculates the great-circle distance between two points on a sphere from their latitudes and longitudes. It is the standard method for “distance between two coordinates” and stays accurate to within about 0.5% anywhere on Earth, which is why navigation and mapping apps rely on it.

Is this the same as driving distance?

No. This is the great-circle (straight-line) distance “as the crow flies,” which is always shorter than the distance a car drives on roads. It is best for flight paths, radio coverage and proximity, not turn-by-turn routing. To find the halfway point, try the midpoint calculator.

What is the bearing between two coordinates?

The bearing (or initial azimuth) is the compass direction you would head at the start to travel the great-circle path toward the second point, given in degrees from north (0–360°) and a 16-point compass label. On a curved Earth the bearing changes along the route, so we show the value at the start.

Can I measure distance from my current location?

Yes. Tap the locate button next to either point to fill it with your current GPS position, then enter the other coordinate. Your location stays in your browser. To get your coordinates first, see what are my coordinates.

Is this distance calculator free and private?

Yes — it is completely free, needs no account, and runs entirely in your browser. Your coordinates are never sent to a server. You can paste coordinates in any common format, or convert them first with the coordinate converter.