Two places can be close on the map and far by road. This calculator shows both numbers at once: the straight-line distance over the Earth and the driving distance from a routing service. You can enter addresses, cities, ZIP codes or coordinates, or click the map.
How to use the distance calculator
- Enter two places. Type an address, city, ZIP code or latitude and longitude in the From and To boxes, and pick a suggestion. You can also click the map: the first click fills From, the next fills To and calculates.
- Press Calculate distance. The straight-line result appears at once. The driving result follows when the routing service answers.
- Read the details. They show the straight-line distance in miles and kilometers, the initial bearing, the driving distance and the two places the page found.
- Fix a wrong match. If a place is wrong, pick the right suggestion in its box and press Calculate distance again.
- Copy or share. Copy result copies the answer sentence; Share sends it with the page link.
Distance finder for addresses, cities and ZIP codes
Address search uses the U.S. Census Bureau geocoder for U.S. street addresses, with Photon as a backup. City and place names are matched to a built-in list of Census places first, then sent to Photon if there is no match. A ZIP code is matched to its Census center point. If a place cannot be found, type coordinates instead; that path needs no search service.
Distance between two locations
The straight-line result answers the simplest question: how far apart are these two points? The details also give the initial bearing, which is the direction to start traveling. A bearing of 273.86° is almost due west.
The driving distance answers a different question: how far is the trip by road? Divide it by the straight-line distance to get the detour: a result of 1.17 means the road is 17% longer than the straight line.
For example, a straight line from a ZIP code in New York to one in Los Angeles is about 2,459 miles, starting almost due west. The road distance will be larger. The exact numbers depend on the points you choose.
Straight-line distance (as the crow flies)
The straight line is the shortest path over the Earth’s surface. It is not a tunnel through the Earth and not a road. On a sphere or ellipsoid, that shortest path is a geodesic. It curves on most flat maps, which is why a flight from New York to London looks curved on a Mercator map.
Because it ignores roads, the straight line is always shorter than the driving distance, except when the two places are the same. It is the right number for a flight, a radio link, a pipeline or a simple separation question. It is the wrong number for a commute.
How the distance is calculated
The straight line uses Karney’s inverse geodesic solution on the WGS84 ellipsoid. Given two points, it returns the distance and the bearings. The ellipsoid is the same model used by GPS, so the result matches survey and navigation software.
Some calculators use the haversine formula on a sphere. That is simpler and usually differs by a few tenths of a percent. On a cross-country pair the gap can be a few miles, which matters if you are comparing tools. This page reports only the ellipsoid result, so expect a small gap from a calculator built on a sphere.
Driving distances come from openrouteservice, which routes on OpenStreetMap roads. The request goes through our server, which rounds your points to about 110 meters first. The route has no live traffic, closures or stops. A city or ZIP code is a center point, not a door. For a real trip, add the address and allow for local roads and stops. If the routing service cannot answer, the driving row shows a labeled straight-line estimate instead of a road distance, and a note under the boxes says routing is unavailable.
Understanding your result
Both numbers use the same two places, but they measure different things.
| What you see | What it means | What to do |
|---|---|---|
| Straight line | The shortest path over the surface | Use it for flights, links or spacing |
| Driving distance | The road route chosen by the routing engine | Use it for a trip, delivery or commute |
| Kilometers | The straight line in metric units | Use it for metric maps and forms |
| Driving far longer than the straight line | Water, mountains or a sparse road network force a detour | Check the route in a map app before you go |
| Bearing | The direction to start, measured from true north | Use it with a compass or a map |
| “straight-line estimate” in the driving row | Routing did not answer, so no road distance is shown | Try again later or use a route planner |
What to do next
Need the halfway point for two people driving from different places? Use the meet-in-the-middle tool. Need the flight path between airports? Use the great-circle map. Have a list of ZIP code pairs? Use the ZIP-to-ZIP distance tool. Need to measure a path with several stops or along a trail? Click it out in the map distance calculator.
If you need elevation change along the route, open the elevation profile tool. If you need a circle rather than a line, use the radius map. Several of these tools use the same place search, so the same names, ZIP codes and coordinates work there too.