The Short Answer
To find the distance between two GPS coordinates, plug both latitude-longitude pairs into the haversine formula — or easier, into a free distance calculator. The result is the straight-line distance "as the crow flies," in miles or kilometers. For example, the coordinates of New York City (40.7128° N, 74.0060° W) and Los Angeles (34.0522° N, 118.2437° W) are about 2,445 miles apart. This method gives you direct distance, not driving distance.
What GPS Coordinates Actually Are
Every spot on Earth can be described with two numbers: latitude and longitude.
Latitude measures how far north or south you are from the equator, from 0° at the equator to 90° N at the North Pole and 90° S at the South Pole. Longitude measures how far east or west you are from the Prime Meridian in Greenwich, England, from 0° to 180° east or west.
You will see coordinates written two main ways:
- Decimal degrees: 40.7128, -74.0060 (the minus sign means south or west). This is what phones, Google Maps, and most tools use.
- Degrees, minutes, seconds (DMS): 40° 42' 46" N, 74° 0' 22" W. This is the traditional format on paper maps and in surveying.
They describe the same point — just in different notation. A coordinate converter switches between them instantly, which is handy because mixing formats is one of the most common sources of wrong answers.
Meet the Haversine Formula
The standard way to compute distance from coordinates is the haversine formula. The name sounds intimidating, but the idea is simple: it calculates the shortest path between two points on a sphere — the "great-circle distance."
Why a sphere and not flat math? Because the Earth is round, and flat-map geometry goes wrong fast over long distances. The straight line between New York and London on a flat map looks nothing like the actual shortest path, which arcs far north over the Atlantic. The haversine formula handles the curvature correctly.
The formula dates back to 19th-century navigation, when sailors needed reliable ways to compute distances at sea. It uses the sines and cosines of the latitudes and the difference in longitude, plus the Earth's radius (about 3,959 miles). Feed in two coordinate pairs, and out comes the distance along the planet's surface.
You do not need to memorize it. But knowing its name helps: when a tool says it uses "haversine distance," you know it is giving you the true shortest surface distance — the gold standard for coordinate math.
Doing It by Hand in Four Steps
If you ever need to do this without a tool — a spreadsheet, a bit of code, or plain curiosity — here is the process in words:
- Convert to radians. The formula works in radians, not degrees. Multiply each degree value by pi divided by 180 (about 0.01745).
- Find the differences. Subtract the latitudes to get the north-south gap, and subtract the longitudes to get the east-west gap.
- Apply the haversine math. Square half the sines of those gaps, combine them with the cosines of the two latitudes, and take the square root steps the formula specifies. This is the part where a calculator earns its keep.
- Multiply by Earth's radius. Multiply the result by 3,959 for miles, or 6,371 for kilometers.
Honestly? Step three is where most people give up, and that is fine. The formula exists so computers can run it — a GPS distance calculator does all four steps in milliseconds with zero chance of a slipped decimal.
The Easy Way: Use a Calculator
For real-world use, skip the hand math. A good coordinate distance tool needs just two inputs and gives you everything:
- Paste or type both coordinate pairs — decimal degrees work best.
- Get the distance instantly in miles, kilometers, feet, or meters.
- See both points on a map to confirm you entered the right locations.
The map preview matters more than people realize. A single mistyped digit can move your point hundreds of miles — typing 74.0060 vs. 47.0060 is the difference between New York and the middle of the Atlantic. Always glance at the map before trusting the number.
If your coordinates are in DMS format, convert them first with a GPS coordinate converter. And if you work with UTM grid coordinates from paper topo maps, a UTM converter turns those into latitude and longitude you can measure from.
Straight-Line vs. Driving Distance: Do Not Mix Them Up
This is the single most common mistake with coordinate distances: treating the answer as a driving distance.
The haversine result is the direct distance — the line a bird flies or a plane travels (roughly). It knows nothing about roads. The driving distance between the same two points is almost always longer, sometimes dramatically: 10 miles straight across a bay can be 60 miles by road.
- How far apart two places are geographically
- Whether something is inside a radius ("within 25 miles of downtown")
- Flight or radio-range estimates
- Property, surveying, or scientific measurements
Use driving distance when wheels are involved — trip planning, fuel estimates, delivery zones, or splitting travel fairly. Many tools show both numbers side by side so you can pick the right one.
How Accurate Is It?
For most purposes, extremely accurate — with two caveats worth knowing.
The Earth is not a perfect sphere. It bulges slightly at the equator. The haversine formula assumes a perfect sphere, which introduces a tiny error — at most about 0.3%, or 3 miles in 1,000. Survey-grade work uses fancier formulas, but for hiking, travel, real estate, and everyday questions, haversine is more than good enough.
Your coordinates are only as good as your source. A phone GPS in the open is typically accurate to about 16 feet. In dense cities with tall buildings or deep canyons, it can be worse. If you pulled coordinates from a map pin dropped casually, the distance inherits that sloppiness. For important measurements, zoom in and place your pins carefully — or better, stand at the spot and record the coordinates your phone reports.
One more precision tip: decimal degrees with 4 decimal places pin a location to about 36 feet; 5 places gets you to about 4 feet. For distance calculations between cities, 4 places is plenty.
Everyday Uses You Might Not Expect
Coordinate distance math quietly powers a lot of daily life:
- Hiking and running. Measuring trail distances from a GPX file, or checking how far that peak really is from the trailhead.
- Real estate. Verifying "only 2 miles from the beach" claims, or measuring lot dimensions from survey coordinates.
- Delivery and service areas. Businesses draw radius zones — "we deliver within 10 miles" — computed from coordinates.
- Emergency planning. Estimating distances to hospitals, fire stations, or flood zones from an address.
- Travel curiosity. Settling debates: is Paris or Rome closer to London? (Paris, by about 180 miles.)
- Photography. Figuring out how far you are from a landmark to pick the right lens.
Once you can measure between any two coordinates, you start seeing uses everywhere. It is one of those small skills that quietly upgrades how you read maps.
Formats and Gotchas to Watch For
A few final traps that catch even experienced map users:
- Latitude comes first. The standard order is latitude, then longitude — "40.71, -74.00" means New York. Swapping them puts you somewhere near the Indian Ocean. Some European systems write longitude first, so check when importing data.
- Mind the minus signs. Negative latitude means south of the equator; negative longitude means west of Greenwich. Dropping a minus sign mirrors your point across the equator or the Prime Meridian.
- DMS needs converting. If your coordinates look like 40° 42' 46" N, convert to decimal before calculating — most distance tools expect decimal degrees.
- Antimeridian weirdness. Points near the International Date Line (longitude near 180°) can confuse naive calculations. Good tools handle the wrap-around; hand-rolled spreadsheet formulas sometimes do not.
- Altitude is ignored. Haversine measures surface distance. If you need true 3D distance — say, between a valley floor and a peak — you need elevation data too, which standard coordinate math does not include.
Get the format right, glance at the map preview, and remember you are measuring the direct line — and you will get reliable numbers every time.
A Worked Example: New York to Chicago
Let us run the whole method on a real pair of cities so you can see every step land.
The coordinates. New York City sits at about 40.7128° N, 74.0060° W. Chicago is at about 41.8781° N, 87.6298° W. Notice the latitudes are close — both cities sit at roughly the same distance from the equator — while the longitudes differ by about 13.6 degrees.
The straight-line distance. Plug both pairs into the haversine formula (or a distance calculator) and you get about 710 miles. That is the shortest path across the Earth's surface between them — roughly the line a plane follows.
The driving distance. By road, it is about 790 miles via the interstate through Pennsylvania and Ohio. The road adds roughly 80 miles of curves, city bypasses, and terrain detours — about 11 percent more than the straight line.
The sanity check. Divide 790 by 710 and you get 1.11 — a ratio near 1.1, exactly what you expect for flat-to-rolling terrain with a good interstate. If the ratio were 1.5, you would know something big — a lake, a mountain range — sits between the points.
Try your own. Pick two places you know, grab their coordinates from any map app, and run the same comparison. After two or three examples, you will read coordinate distances with the same confidence you read a speedometer.
