Latitude Longitude Distance Converter

Calculate the distance between two GPS coordinates using the Haversine formula

Point 1

Point 2

Distance

5,570.22 km

3,461.39 miles

Meters

55,70,222.18

Feet

1,82,76,134.16

Nautical Miles

3,007.62

Flight Time (~800 km/h)

6.96 hrs

Direction

Initial Bearing

51.21°

Cardinal Direction

NE

Preset Locations

About the Calculation

This calculator uses the Haversine formula to calculate the great-circle distance between two points on a sphere (Earth).

The great-circle distance is the shortest distance between two points on the surface of a sphere, measured along the surface.

Note: Earth is not a perfect sphere, so this calculation has a small margin of error (typically less than 0.3%).

What is GPS Coordinate Distance?

GPS coordinate distance is the shortest distance between two points on the Earth's surface, measured along the great circle connecting them. A great circle is the largest possible circle that can be drawn on a sphere — imagine stretching a rubber band tightly between two points on a globe. The great-circle distance is always the shortest path between two locations on a spherical surface, which is why long-distance airline routes appear curved on flat maps.

This calculator uses the Haversine formula, which is the standard mathematical method for computing great-circle distances from latitude and longitude coordinates. The formula accounts for the Earth's curvature by treating it as a sphere with a radius of approximately 6,371 kilometers (3,959 miles). While the Earth is actually an oblate spheroid slightly wider at the equator, the spherical approximation produces results accurate to within 0.3% for most practical purposes.

The calculator accepts coordinates in decimal degrees — the standard format used by GPS devices, Google Maps, and most mapping software. It outputs distances in kilometers, miles, nautical miles, meters, and feet, along with the initial bearing (azimuth) from the first point to the second and an estimated flight time. Whether you are planning a trip, calculating shipping routes, or simply curious about distances between cities, this tool provides accurate results.

The Haversine Formula

The Haversine formula calculates the great-circle distance between two points on a sphere given their latitudes and longitudes. It is numerically well-conditioned for small distances, making it the preferred choice for most distance calculations.

Haversine Distance Formula

a = sin²(Δlat/2) + cos(lat₁) × cos(lat₂) × sin²(Δlon/2); d = 2R × atan2(√a, √(1−a))

Where:

  • Δlat= Difference in latitude between the two points (in radians)
  • Δlon= Difference in longitude between the two points (in radians)
  • lat₁, lat₂= Latitudes of the two points (in radians)
  • R= Earth's radius: 6,371 km or 3,959 miles
  • d= The great-circle distance between the two points

Understanding Latitude and Longitude

Latitude and longitude form a coordinate grid that uniquely identifies any point on Earth's surface. Understanding these coordinates is essential for accurate distance calculations.

Coordinate Range Direction Example
Latitude-90° to +90°North (+) / South (-)40.7128°N (New York)
Longitude-180° to +180°East (+) / West (-)-74.006°W (New York)

The Equator is at 0° latitude, and the Prime Meridian (through Greenwich, England) is at 0° longitude. These two lines divide Earth into four quadrants and provide the reference points for all coordinate measurements.

How to Use This Calculator

The latitude-longitude distance calculator provides comprehensive distance and direction information:

  1. Enter Point 1 coordinates: Input the latitude (-90 to 90) and longitude (-180 to 180) of your starting point in decimal degrees.
  2. Enter Point 2 coordinates: Input the latitude and longitude of your destination point.
  3. View the distance: The result shows the great-circle distance in kilometers, miles, nautical miles, meters, and feet.
  4. Check the bearing: The initial bearing (azimuth) shows the direction from Point 1 to Point 2 in degrees and cardinal direction.
  5. See flight time: An estimated flight time is provided assuming an average commercial jet speed of 800 km/h.
  6. Use preset locations: Click any preset city button to quickly load its coordinates and calculate distances.

Real-World Applications

GPS distance calculation is essential in aviation and maritime navigation. Pilots and ship captains plan routes along great-circle distances because these represent the shortest paths between locations on Earth. A flight from New York to London follows a great-circle route that curves northward over Newfoundland — appearing curved on a flat map but representing the shortest possible path on the globe.

In logistics and supply chain management, calculating distances between distribution centers, warehouses, and delivery points helps optimize routes and estimate shipping costs. Many logistics software systems use GPS coordinates and Haversine calculations to determine the most efficient delivery routes across multiple stops.

Outdoor recreation and fitness tracking also benefit from GPS distance calculations. Hikers, runners, cyclists, and sailors use GPS coordinates to measure distances between waypoints, track progress along routes, and plan adventures. Fitness apps use similar calculations to convert GPS traces into distance measurements for training logs.

Worked Examples

New York to London Distance

Problem:

Calculate the great-circle distance between New York (40.7128°N, 74.006°W) and London (51.5074°N, 0.1278°W).

Solution Steps:

  1. 1Point 1: lat₁ = 40.7128°, lon₁ = -74.006°
  2. 2Point 2: lat₂ = 51.5074°, lon₂ = -0.1278°
  3. 3Apply Haversine formula with R = 6,371 km
  4. 4Calculate great-circle distance

Result:

5,570 km = 3,460 miles = 3,007 nautical miles, bearing approximately 51° (NNE)

Tokyo to Sydney Distance

Problem:

How far is it from Tokyo (35.6762°N, 139.6503°E) to Sydney (-33.8688°S, 151.2093°E)?

Solution Steps:

  1. 1Point 1: lat₁ = 35.6762°, lon₁ = 139.6503°
  2. 2Point 2: lat₂ = -33.8688°, lon₂ = 151.2093°
  3. 3Apply Haversine formula
  4. 4Compute distance in multiple units

Result:

7,823 km = 4,861 miles = 4,224 nautical miles, bearing approximately 208° (SSW)

Short Distance Between Cities

Problem:

Calculate the distance between Paris (48.8566°N, 2.3522°E) and Berlin (52.5200°N, 13.4050°E).

Solution Steps:

  1. 1Point 1: lat₁ = 48.8566°, lon₁ = 2.3522°
  2. 2Point 2: lat₂ = 52.5200°, lon₂ = 13.4050°
  3. 3Apply Haversine formula
  4. 4Calculate distance and bearing

Result:

878 km = 545 miles = 474 nautical miles, bearing approximately 53° (NE)

Tips & Best Practices

  • Enter coordinates in decimal degrees — the format used by GPS and Google Maps
  • North latitudes are positive, south are negative; east longitudes are positive, west are negative
  • The Haversine formula is accurate to within 0.3% — sufficient for most applications
  • Great-circle routes are the shortest distances on a sphere — they appear curved on flat maps
  • 1 nautical mile = 1,852 m = 1.151 statute miles — used in aviation and maritime navigation
  • Use preset city buttons for quick calculations between major world cities

Frequently Asked Questions

The Haversine formula treats the Earth as a perfect sphere, but the Earth is actually an oblate spheroid — slightly wider at the equator than at the poles. This approximation produces results accurate to within about 0.3% for most distances. For distances under 1,000 km, the error is typically less than 1 km. For applications requiring higher accuracy, the Vincenty formula or ellipsoidal models should be used.
On a flat map, a straight line appears to be the shortest distance between two points. On a sphere, however, the great-circle distance (following the curve of the Earth) is always shorter. This is why flight paths appear curved on flat maps — they follow great circles, which are the true shortest paths on the globe. The difference can be significant over long distances.
To convert decimal degrees to DMS: the whole number is degrees, multiply the decimal part by 60 to get minutes, then multiply the remaining decimal by 60 to get seconds. For example, 40.7128° = 40° + 0.7128 × 60 = 40° 42.77' = 40° 42' 46.1". This format is still used in some navigation and surveying contexts.
A nautical mile is based on the Earth's geometry and equals exactly 1,852 meters. It is defined as one minute of latitude — the distance between two lines of latitude that are one minute apart. This makes it extremely useful for navigation, as latitude measurements directly translate to distance. One nautical mile per hour equals one knot, the standard speed unit in maritime and aviation.
Flight routes follow great-circle distances, which are the shortest paths on the Earth's spherical surface. When projected onto a flat map (especially the common Mercator projection), these great circles appear as curves. The route actually follows a straight line on the globe, but the map distortion makes it look curved. This is why flights from the US to Asia often route over Alaska.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Latitude Longitude Distance Converter?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: NIST Guide to SI Units

by National Institute of Standards

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.