Skip to main content

Coordinate Distance Calculator

Calculate the great-circle distance between two latitude/longitude points in kilometers, miles, and nautical miles using the Haversine formula.

Point A

Point B

Results

Kilometers 0
Miles 0
Nautical Miles 0
Meters 0
Rate this tool
0.0 / 5 · 0 ratings

How to Use the Coordinate Distance Calculator

Enter the latitude and longitude of two points in decimal degrees. Latitude ranges from -90 (South Pole) to 90 (North Pole), and longitude ranges from -180 to 180, with negative values west of the prime meridian. The calculator instantly returns the great-circle distance between the two points in kilometers, miles, nautical miles, and meters. The default values are set to New York City (40.7128, -74.0060) and London (51.5074, -0.1278), a well-known transatlantic comparison that shows a distance of roughly 5570 kilometers.

What Is the Haversine Formula?

The Haversine formula is the classic way to compute distance between two points on a sphere given their geographic coordinates. It treats Earth as a perfect sphere with a mean radius of 6371 kilometers and calculates the angle subtended by the two points at the center of the sphere, then multiplies by the radius to get arc length. The formula is numerically stable even for antipodal points and very small distances, which is why it remains the standard choice for most software that needs fast, reliable great-circle distance calculations without the complexity of ellipsoidal models like Vincenty or Karney.

When Would You Use This?

Coordinate distance has countless practical uses: planning a flight, estimating how far a storm is from a city, figuring out how close two wildfires are to one another, measuring the separation between survey markers, and building "find my nearest" features into apps and websites. Hikers use great-circle distance to understand the minimum straight-line distance between waypoints, while shipping and aviation rely on it heavily because long-distance routes on Earth's surface naturally follow great circles. Even casual users find it helpful for settling debates about how far apart two cities really are when the map projection distorts distance.

Limitations You Should Know

The Haversine formula gives distance along the surface of a perfect sphere, not the real Earth, which is slightly flattened at the poles. This introduces errors of up to about 0.5 percent. It also ignores elevation: a hike that climbs 1000 meters over 10 kilometers of horizontal distance will feel longer than the straight-line surface distance suggests. For road trips, use a routing service, because roads rarely follow great circles. And for very high-precision surveying, use Vincenty's inverse formula or a GIS library that implements the WGS-84 ellipsoid.

Frequently Asked Questions

What is the Haversine formula?

It is a trigonometric formula that calculates the great-circle distance between two points on a sphere given their latitude and longitude. It uses Earth's mean radius of 6371 kilometers.

How accurate is the great-circle distance?

Great-circle distance based on a spherical Earth is accurate to about 0.5 percent. For survey-grade precision, use Vincenty's formula or a WGS-84 ellipsoidal model instead.

What's the difference between statute and nautical miles?

A statute mile is 1609.344 meters and is used on roads. A nautical mile is 1852 meters and equals one minute of latitude, which is why it is the standard unit in maritime and aviation navigation.

How do I find coordinates for a place?

Right-click any location in Google Maps, Apple Maps, or OpenStreetMap and copy the decimal coordinates. Paste them directly into the latitude and longitude fields.

Does this include elevation?

No. This calculates horizontal great-circle distance only. Elevation changes are not included, so actual hiking or driving distances can differ.

Related Calculators

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and should not be considered professional expert advice. Consult a qualified professional before making decisions based on these calculations. See our full Disclaimer.