Emissions, Dates & Planning

Distance Between Coordinates (Haversine)

Enter the latitude and longitude of two places to get the straight-line (great-circle) distance in km, miles and nautical miles, plus an estimated road distance using a circuity factor.

Also known as: lat long distance calculator · haversine distance · GPS coordinates distance · great circle distance calculator · aerial distance calculator

Enter details

Result

Great-circle distance509.8 km
Distance
316.8 miles
Distance
275.3 nautical miles
Estimated road distance
637 km
Initial bearing
217.9 °

Results are estimates for planning. Confirm final rates, rules and charges with your carrier or authority.

How to use the Distance Between Coordinates

  1. Enter Origin latitude, Origin longitude, Destination latitude, Destination longitude, Road circuity factor.
  2. Read the result instantly – it updates as you type, with a breakdown below the main figure.
  3. Use “Copy link” to share the exact calculation, or “Copy results” to paste it into an email, quote or invoice.

Distance Between Coordinates formula

a = sin²(Δφ/2) + cos φ₁ · cos φ₂ · sin²(Δλ/2)
Distance = 2R · asin(√a), R = 6371 km
Road estimate = distance × circuity factor

About the Distance Between Coordinates

Road distance is always longer than the straight line. A circuity factor of 1.2–1.4 is a common rough estimate; use a routing service for exact road distances.

The haversine formula treats the Earth as a sphere with a mean radius of about 6,371 km and finds the shortest path over its surface between two points. The error compared with the true ellipsoidal shape is small (well under 1%), which is ample for planning, quoting and sanity-checking distances.

Coordinates are entered in decimal degrees: north latitudes and east longitudes are positive, south and west are negative. You can copy them from most map apps. The initial bearing is the compass direction at the start of the great-circle route, useful for air and sea routing.

Worked example

Here is the calculation for the sample values pre-filled in the distance between coordinates above.

Inputs
Origin latitude22.7196
Origin longitude75.8577
Destination latitude19.076
Destination longitude72.8777
Road circuity factor1.25
Results
Great-circle distance509.8 km
Distance316.8 miles
Distance275.3 nautical miles
Estimated road distance637 km
Initial bearing217.9 °

Who uses this tool

  • Logistics planners estimating distance between depots, customers and ports.
  • Developers and analysts checking geocoded addresses for plausible distances.
  • Air and sea freight teams estimating great-circle route length.

Tips to save cost and avoid mistakes

  • Check the sign of coordinates: a missing minus sign moves a point to the other hemisphere.
  • Use a circuity factor that suits the terrain: higher in hills and around coastlines or rivers.
  • For pricing road freight, confirm actual route distance; tariffs are usually based on road km.

Distance Between Coordinates – frequently asked questions

What is the haversine formula?

A formula that gives the shortest distance between two points on a sphere from their latitudes and longitudes.

How do I calculate distance between two coordinates?

Enter both points' latitude and longitude in decimal degrees; the haversine formula returns the great-circle distance. Indore to Mumbai is about 510 km in a straight line.

How accurate is the haversine distance?

Very close for planning purposes: treating the Earth as a sphere introduces an error of well under 1% compared with more exact ellipsoid formulas.

Why is road distance longer than the calculated distance?

Roads curve around terrain, cities and water, so road distance is typically about 1.2–1.4 times the straight line.

Related tools