Calculate Distance Between Two GPS Coordinates
Enter decimal degrees (example: 40.7128, -74.0060). Latitude range: -90 to 90, Longitude range: -180 to 180.
What is a GPS distance calculator?
A GPS distance calculator measures the shortest distance between two points on Earth using latitude and longitude. Instead of drawing a straight line on a flat map, it accounts for Earth’s curved surface. This gives a much more accurate result for travel planning, route analysis, logistics, and outdoor activities.
How this calculator works
This tool uses the Haversine formula, a common geodesic equation for finding great-circle distances. A great-circle route represents the shortest path between two locations on a sphere.
Inputs you need
- Latitude A / Longitude A: Starting location in decimal degrees.
- Latitude B / Longitude B: Ending location in decimal degrees.
- Unit: Kilometers, miles, or nautical miles.
What you get
- Total great-circle distance in your selected unit.
- Equivalent values in kilometers, miles, and nautical miles.
- Initial compass bearing from Point A to Point B.
Common use cases
You can use a GPS distance calculator for much more than road trips. It’s useful in professional planning and everyday problem-solving.
- Estimating drone flight range and waypoint spacing.
- Comparing distances between potential office or warehouse sites.
- Measuring marine routes in nautical miles.
- Planning hiking, cycling, and running routes.
- Quickly checking travel distances for budget estimates.
Coordinate format tips
Use decimal degrees
This calculator accepts decimal degrees only. If your source gives coordinates in degrees, minutes, and seconds (DMS), convert them first.
Use negative values correctly
- Latitudes south of the equator are negative.
- Longitudes west of Greenwich are negative.
Double-check ranges
- Latitude must be between -90 and 90.
- Longitude must be between -180 and 180.
Accuracy notes
The Haversine approach is highly reliable for most consumer and business applications. Tiny differences can appear when compared to advanced ellipsoidal Earth models, but for route estimation and planning, the error is usually very small.
FAQ
Does this tool calculate driving distance?
No. It calculates straight-line great-circle distance. Driving distance depends on roads, turns, traffic patterns, and terrain.
Why is my GPS app distance different?
Navigation apps generally report path distance along roads or trails. This calculator reports the shortest possible path over Earth’s surface.
Can I use this for aviation or boating?
Yes. Select nautical miles and review the initial bearing for a practical starting direction.