geographical distance calculator

Point A

Point B

Coordinates must be entered in decimal degrees. This tool returns great-circle (straight-line) distance on Earth.

What this geographical distance calculator does

This calculator finds the shortest surface distance between two locations on Earth using latitude and longitude. It is ideal for aviation estimates, shipping routes, mapping education, and quick geospatial comparisons. Instead of using road networks, it computes the great-circle distance, which is the shortest path over the Earth's curved surface.

How to use it

Step-by-step

  • Enter latitude and longitude for Point A.
  • Enter latitude and longitude for Point B.
  • Choose your output unit: kilometers, miles, or nautical miles.
  • Optionally enter a speed to estimate travel time.
  • Click Calculate Distance.

You can also use Swap Points to reverse origin and destination, or load the built-in NYC-to-London sample.

Understanding the output

Distance

The primary result is great-circle distance. This is often useful for flight planning and long-distance overview work. For driving or walking, real path distance will usually be longer.

Initial bearing

The calculator also reports the initial bearing (forward azimuth), which tells you which direction to start moving from Point A toward Point B. Because Earth is spherical, the bearing can change along the route.

Midpoint

A geographic midpoint is included to help with meeting-point analysis, map visual checks, or intermediate routing concepts.

The formula behind the calculator

The distance is computed with the Haversine formula, which is robust for most real-world global distances:

a = sin²(Δφ/2) + cos(φ1) · cos(φ2) · sin²(Δλ/2)
c = 2 · atan2(√a, √(1−a))
d = R · c

Where φ is latitude in radians, λ is longitude in radians, and R is Earth's mean radius (~6371.0088 km).

Practical use cases

  • Comparing international city distances quickly.
  • Estimating fuel and range for air or marine travel.
  • Creating geospatial lessons and classroom exercises.
  • Checking whether two coordinate sets are plausibly close.
  • Building simple GIS workflows before moving to advanced tools.

Common input mistakes

  • Using degrees-minutes-seconds format instead of decimal degrees.
  • Reversing latitude and longitude fields.
  • Entering east/west signs incorrectly (west longitudes are negative).
  • Confusing road distance with great-circle distance.

Frequently asked questions

Is this the same as driving distance?

No. This tool calculates straight-line surface distance on a sphere, not road route length.

Why does flight distance differ from this result?

Real flights include air traffic corridors, winds, altitude constraints, and airport routing, so actual flown distance varies.

Can I use this for short local distances?

Yes. It works globally, including nearby points, though very short distances may require more displayed decimal precision for detailed surveying work.

🔗 Related Calculators