Latitude Longitude Distance Calculator

Calculate the great-circle distance between two geographic coordinates using the Haversine Formula. Supports km, miles, meters, and nautical miles.

850.2K usesUpdated · 2026-04-29Runs locally · zero upload

How to Use Latitude Longitude Distance Calculator

The Latitude Longitude Distance Calculator makes it easy to find the surface distance between any two points on Earth in seconds.

  1. Enter Point A coordinates — Type the latitude and longitude of your origin location. For example, Beijing is approximately 39.9042° N, 116.4074° E.
  2. Enter Point B coordinates — Type the latitude and longitude of your destination. For example, Shanghai is approximately 31.2304° N, 121.4737° E.
  3. Choose your unit — Select kilometers, miles, meters, or nautical miles from the dropdown.
  4. Read the result — The Latitude Longitude Distance Calculator instantly shows the great-circle distance alongside all unit conversions.

Latitude must be between −90° and 90°; longitude must be between −180° and 180°. Use negative values for South latitude and West longitude.

Formula & Theory — Latitude Longitude Distance Calculator

The Latitude Longitude Distance Calculator applies the Haversine Formula, which computes the shortest path along the surface of a sphere:

a  = sin²(Δlat/2) + cos(lat1) · cos(lat2) · sin²(Δlon/2)
d  = 2 · R · arcsin(√a)
Symbol Meaning
lat1, lat2 Latitudes of the two points in radians
lon1, lon2 Longitudes of the two points in radians
Δlat Difference in latitudes
Δlon Difference in longitudes
R Earth's mean radius ≈ 6371 km
d Great-circle distance between the two points

The Haversine Formula is numerically stable even for very small distances, making the Latitude Longitude Distance Calculator reliable across all scales from metres to thousands of kilometres.

Assumptions and Limitations

The Latitude Longitude Distance Calculator assumes a perfectly spherical Earth. For applications requiring sub-metre precision (e.g. surveying), consider the Vincenty formula, which accounts for the Earth's oblate spheroid shape.

Use Cases for Latitude Longitude Distance Calculator

The Latitude Longitude Distance Calculator is useful in a wide variety of scenarios:

  • Travel & tourism — Estimate flight distances or driving detours before a trip.
  • Logistics & shipping — Quickly compare straight-line distances between warehouses and delivery points.
  • Geography & education — Visualise how far apart cities, mountains, or ocean features are.
  • Mapping & GIS — Validate coordinate data and sanity-check spatial queries.
  • Outdoor recreation — Plan hiking or cycling routes by measuring baseline distances between waypoints.
  • Marine & aviation — Convert great-circle distances to nautical miles for navigation planning.

Whether you are a student, traveller, developer, or logistics professional, the Latitude Longitude Distance Calculator provides an instant, unit-flexible answer backed by proven spherical geometry.

Frequently asked questions about Latitude Longitude Distance Calculator

How accurate is the Latitude Longitude Distance Calculator?

The Latitude Longitude Distance Calculator uses the Haversine Formula with a spherical Earth model (R = 6371 km). Accuracy is within ~0.5% of real distances for most use cases; it does not account for Earth's ellipsoidal shape or terrain elevation.

What coordinate format does the Latitude Longitude Distance Calculator accept?

The Latitude Longitude Distance Calculator accepts decimal degrees (e.g. 40.7128, -74.0060). Latitude ranges from -90 to 90 and longitude from -180 to 180.

When should I use the Latitude Longitude Distance Calculator?

Use the Latitude Longitude Distance Calculator for travel planning, logistics estimation, geography studies, mapping projects, and any scenario where you need a quick straight-line distance between two places on Earth.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.