Haversine Distance

Compute the great-circle distance between two coordinates with the haversine formula.

Description

Compute the great-circle distance between two coordinates with the haversine formula.

Haversine Distance: Compute the great-circle distance between two coordinates with the haversine formula.

When to use Haversine Distance

Use this geospatial calculation for a first-pass distance, bearing, destination, or bounding result when coordinates, angular units, datum, and Earth model are stated consistently.

From
Origin coordinate in decimal degrees.
To
Destination coordinate in decimal degrees.

How Haversine Distance works

Compute the great-circle distance between two coordinates with the haversine formula. The tool evaluates the supplied inputs together and returns the named outputs below; it does not infer omitted operating conditions or change the units shown.1

Kilometers (km)
Great-circle distance rounded to two decimals.
Miles (mi)
Great-circle distance rounded to two decimals.

Limitations and assumptions

  • Spherical formulas approximate the Earth and can differ from ellipsoidal geodesics, especially over long or near-antipodal paths. Coordinate order, longitude wrapping, poles, datums, altitude, and projected versus geographic coordinates require care.
  • Use finite inputs in the displayed units and preserve more precision than the final presentation requires. Independently verify safety-critical, financial, compliance, or production decisions.

Alternative or Complementary approaches

Use an ellipsoidal geodesic library and an explicit CRS for survey or high-accuracy work, and visualize results to catch coordinate-order or antimeridian errors.

References

  1. Haversine formula — Wikipedia contributors

Similar or alternative tools

  • Compass Bearing

    Compute the initial compass bearing between two coordinates clockwise from true north.

  • Destination Point

    Project a starting coordinate along a bearing and great-circle distance to its destination point.

  • Haversine Distance Calculator

    Calculate the great-circle distance between two points on a spherical Earth of mean radius 6371008.8 m using the haversine formula.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies