Haversine Distance Calculator

Calculate the great-circle distance between two geographic coordinates using the Haversine formula.

Coordinates

Point A
Point B

Quick Presets

Enter two coordinates and click Calculate.

Copied!

Summary

Calculate the great-circle distance between two geographic coordinates using the Haversine formula.

How it works

  1. Enter the latitude and longitude for Point A in decimal degrees (e.g. 40.7128, -74.0060).
  2. Enter the latitude and longitude for Point B in decimal degrees.
  3. Click Calculate to apply the Haversine formula: a = sin²(Δlat/2) + cos(lat1)·cos(lat2)·sin²(Δlon/2).
  4. The central angle c = 2·atan2(√a, √(1−a)) is multiplied by Earth's mean radius (6371 km).
  5. Results are displayed in kilometers, miles, and nautical miles.
  6. Use the city presets or paste coordinates directly from a map application.

Use cases

  • Calculate straight-line distance between two cities for travel planning.
  • Verify GPS distances in geospatial software development.
  • Understand spherical trigonometry in a hands-on, visual way.
  • Compute proximity between two points for logistics and delivery routing.
  • Check coverage radius for antennas, cell towers, or service zones.
  • Educational demonstrations of great-circle geometry in geography courses.
  • Cross-validate distances computed by mapping APIs.
  • Estimate fuel requirements for aviation or maritime routes.

Frequently Asked Questions

Last updated: 2026-06-24 · Reviewed by Nham Vu