Calculator Tools
GPS Distance Calculator
Compute great-circle distance, bearing, and midpoint between two GPS points in your browser. Accepts decimal degrees, DMS, and DDM.
Try an example
Paste any two coordinates. Decimal Degrees, DMS, and DDM all work, with or without hemisphere letters.
Decimal Degrees use comma or space between lat and lon. DMS and DDM also work: 40deg 26' 46" N, 79deg 58' 56" W. Negative numbers mean south or west.
Distance in every unit
Same haversine result, just expressed in the units a hiker, marine operator, or pilot would expect.
Kilometers
5570.23 km
Miles
3461.18 mi
Nautical miles
3007.68 nmi
Meters
5570229.87 m
Feet
18275032.39 ft
Yards
6091677.46 yd
Approximate time at common speeds
Straight-line, no stops or detours. Actual driving and flying routes run longer because roads bend and aircraft follow filed corridors, but the great-circle baseline is a useful upper bound on efficiency.
Walking (5 km/h)
46 d 10 h
Cycling (20 km/h)
11 d 14 h
Driving (90 km/h)
2 d 13 h
Highway (120 km/h)
1 d 22 h
Airliner (900 km/h)
6 h 11 min
Haversine formula
a = sin²(Δlat / 2) + cos(lat1) · cos(lat2) · sin²(Δlon / 2) c = 2 · atan2(√a, √(1 - a)) d = R · c
R is the mean Earth radius (6371.0088 km, the IUGG mean). Haversine assumes a sphere, so it is accurate to roughly 0.5% over any distance on Earth, which is well within hiking, marine, and aviation needs. For survey-grade work use the Vincenty or Karney formulas on the WGS-84 ellipsoid.
Notation tips
- Decimal Degrees: 40.7128, -74.0060. Negative is south or west.
- DMS: 40deg 26' 46" N 79deg 58' 56" W. Curly quotes are accepted.
- DDM (used by Garmin and marine charts): 40deg 26.766' N 79deg 58.944' W.
- Hemisphere letters override sign, so N -40.7 is read as +40.7.
- Bearing is measured clockwise from true north. North is 0deg, east is 90deg, south is 180deg, west is 270deg.
How to use
- Paste a coordinate for Point A into the first field. Decimal Degrees (40.7128, -74.0060), DMS (40deg 26' 46" N 79deg 58' 56" W), and DDM all work.
- Paste a coordinate for Point B into the second field. Use comma, semicolon, slash, pipe, or whitespace between latitude and longitude.
- Read the great-circle distance at the top in kilometers, miles, and nautical miles, with every other unit listed below.
- Check the initial bearing (forward azimuth) and final bearing for navigation; both include a cardinal label like NNE or SSW.
- Use the midpoint coordinates to set up a meeting point, then open the route in Google Maps or the midpoint in OpenStreetMap with the buttons.
- Click Swap A and B to reverse the direction, or Copy report to grab a plain-text summary of every output for a log or ticket.
About this tool
GPS Distance Calculator returns the great-circle (as-the-crow-flies) distance between two latitude / longitude points using the standard haversine formula on a spherical Earth (R = 6371.0088 km, the IUGG mean radius). Distance is reported in kilometers, miles, nautical miles, meters, feet, and yards at once, with copy buttons next to each unit so it drops cleanly into a hike log, a flight plan, a marine waypoint list, a GIS spreadsheet, or a delivery routing table. Inputs accept the three notations people actually paste at each other: Decimal Degrees (40.7128, -74.0060, the Google Maps and GeoJSON format), Degrees Minutes Seconds (40deg 26' 46" N 79deg 58' 56" W, the USGS and marine-chart format), and Degrees Decimal Minutes (40deg 26.766' N, the Garmin and aviation default). Hemisphere letters N, S, E, W are recognized in either position, curly quote marks are normalized, and signs are validated so south and west yield negative DD values. Alongside the distance the tool computes the initial bearing (forward azimuth, the heading you depart on, measured clockwise from true north, with a cardinal label like NNE), the final bearing (the heading you arrive on, useful for charted-course planning), and the spherical midpoint coordinates in decimal degrees ready to paste into Google Maps. An approximate-time-at-speed panel converts the distance into travel time at walking, cycling, driving, highway, and airliner speeds, useful for quick feasibility checks. The haversine method is accurate to roughly 0.5% over any pair of points on Earth, the same accuracy class used by every consumer mapping API; for survey-grade work the page links the alternative Vincenty / Karney ellipsoidal methods. Everything runs locally in your browser using nothing but Math.sin, Math.cos, and Math.atan2 on the IEEE-754 floats the page already has; coordinates are never sent to a server. Useful for trip planning, drone and RC flight ranges, sales territory mileage, marine bearings, sports analytics, GIS sanity checks, real-estate radius search, logistics quoting, and any time you need a quick straight-line answer for the distance between two points on Earth.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
GPS Coordinate Converter
Convert latitude and longitude between DD, DMS, and DDM.
Open tool
ConverterGPX File Viewer
Stats, map preview, elevation profile, and CSV or GeoJSON exports for any GPX file.
Open tool
ConverterKML Viewer and Validator
Preview, validate, and convert any KML document to GeoJSON, CSV, or formatted KML.
Open tool
CalculatorSpeed Distance Time Calculator
Solve speed = distance ÷ time across metric, imperial, and marine units.
Open tool
ConverterLength Converter
Convert any length between metric, imperial, and nautical units, all at once.
Open tool