OhMyCalc

GPS Distance Calculator

Calculate the distance between two geographic coordinates (latitude/longitude) using the Haversine formula. Results in kilometers and miles.

Point A

Point B

Formula: Haversine — great-circle distance on a sphere

How to Use the GPS Distance Calculator

  1. Enter the required values in the input fields.
  2. The result is calculated and displayed automatically.
  3. Copy the result or review the detailed breakdown.
  4. Adjust inputs to explore different scenarios.

使用场景

常见问题

What is the Haversine formula?
The Haversine formula calculates the great-circle distance between two points on a sphere from their latitudes and longitudes. It accounts for the curvature of the Earth.
How accurate is the result?
The Haversine formula assumes the Earth is a perfect sphere (radius ≈ 6371 km). The actual error is typically less than 0.3% because the Earth is slightly ellipsoidal.
What format should coordinates be in?
Enter decimal degrees (e.g., 55.7558 for latitude, 37.6176 for longitude). Northern latitudes and eastern longitudes are positive; southern and western are negative.
What is the maximum possible distance?
The maximum distance between two points on Earth is about 20,015 km — the distance along a great circle from one point to its antipodal point.
How do I find GPS coordinates?
You can find coordinates using Google Maps (right-click on a point) or from your smartphone's GPS. The first number is latitude, the second is longitude.