Calculators

Latitude and Longitude Distance Calculator

Calculate the great-circle distance between two latitude and longitude coordinates in kilometers or miles. Enter decimal degrees below. The result estimates distance over Earth's surface, not driving distance or a route along roads.

Calculate Distance
Enter the latitude and longitude of two points to calculate the distance between them.

Point A

Point B

How to Use the Distance Calculator

  1. Enter Point A coordinates: Type latitude and longitude for the first location. Latitude must be between -90 and 90, and longitude between -180 and 180.
  2. Enter Point B coordinates: Type latitude and longitude for the second location using valid coordinate values.
  3. Choose distance unit: Select kilometers or miles depending on your preferred output format.
  4. Calculate distance: Click Calculate Distance to see the computed distance between the two points.

Common Use Cases

  • Estimate air or straight-line distance between two cities.
  • Plan drone routes, delivery paths, and field operations.
  • Validate coordinate-based distances for mapping projects.
  • Compare travel distance scenarios in miles vs kilometers.

Frequently Asked Questions

Does this calculate driving distance or Cartesian x/y distance?

No. This calculator uses geographic latitude and longitude on a spherical Earth. It does not calculate road routes, journey times, or Euclidean distances between x/y points.

How does this distance calculator work?

It uses the Haversine formula to estimate the shortest path over the earth's surface between two latitude and longitude coordinates.

Can I calculate distance in miles and kilometers?

Yes. You can switch between kilometers and miles before calculating, and the result is displayed in your selected unit.

What coordinate format should I use?

Use decimal degrees for latitude and longitude values, such as 40.7128 and -74.0060.

What if my coordinates are out of range?

The calculator validates input ranges and shows an error if latitude is outside -90 to 90 or longitude is outside -180 to 180.

Example: New York to London

Enter 40.7128, -74.0060 for New York and 51.5074, -0.1278 for London. With an Earth radius of 6,371 km, the result is approximately 5,570.22 km or 3,461.17 miles. Use negative values for south and west. Elevation, road layout and the ellipsoidal shape of Earth are not included.

Convert kilometers, miles and other distance units

Related Calculators