Skip to content
Menu
Esc

Distance Calculator

Find the distance between any two places. Type addresses, cities, ZIP codes or coordinates, or click the map, then press Calculate to see the straight line on the map and the driving distance.

Distance calculator tool

Enter two places, ZIP codes or coordinate pairs to measure the distance.

Straight-line distance on the WGS84 ellipsoid

Or click two points on the map.

© OpenStreetMap contributors · OpenFreeMap © OpenMapTiles · Routing: openrouteservice by HeiGIT

Straight-line
—
Bearing
—
Driving
—

Straight-line distance is measured on the WGS84 ellipsoid. Driving distance is an estimate or a route without live traffic, labeled where it appears. This is not a navigation service.

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

  1. 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.
  2. Press Calculate distance. The straight-line result appears at once. The driving result follows when the routing service answers.
  3. 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.
  4. Fix a wrong match. If a place is wrong, pick the right suggestion in its box and press Calculate distance again.
  5. 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.

Frequently asked questions

How do I calculate the distance between two addresses?

Type one address in the From box and the other in the To box, pick the matches from the suggestions, then press Calculate distance. The straight-line distance appears at once. The driving distance follows when the routing service answers. Both show in miles, and the details add the straight line in kilometers and the initial bearing.

What does 'as the crow flies' mean?

As the crow flies means the shortest path over the Earth's surface, ignoring roads, rivers and terrain. It is the straight-line distance. On a curved Earth, that path is a geodesic, so it can look slightly curved on a flat map. It is always shorter than the driving distance, unless the two places are the same.

How accurate is it?

The straight-line result uses the WGS84 ellipsoid, the model used by GPS, so the math is precise for the points you supply. The uncertainty is in the points: a city or ZIP code is a center point, not a door. A geocoded address is close but not exact. The driving distance depends on the routing data and typical speeds.

Why does another calculator show a different number?

A different result usually comes from a different method or input. Some calculators use a sphere instead of the ellipsoid, which can differ by about 0.2%. Others measure from city centers rather than addresses, mix up miles and nautical miles, or choose a different road route. Check the method and the starting points before you compare the numbers.

How do I find the distance between two coordinates?

Type latitude and longitude in each row, such as 40.015, -105.27. The search box recognizes that format without calling a service. You can also paste degrees, minutes and seconds. Press Calculate distance to get the straight-line distance and the initial bearing. A driving route may not be available for a point far from any road.

What is a nautical mile?

A nautical mile is 1,852 meters, or about 1.1508 statute miles. It is based on one minute of latitude and is used in aviation and sailing. A speed of one nautical mile per hour is one knot. This calculator shows miles and kilometers; to get nautical miles, divide the kilometers by 1.852.

Can I add more than two stops?

No. This calculator measures one pair of places at a time: From and To. For a trip with stops, calculate each leg in turn and add the results. To measure a path with many points, use the Map Distance Calculator and click each stop on the map; it measures straight lines, not roads.

  • Great Circle Map

    Enter two airport codes to draw the great-circle flight route on a map, with the distance in miles and kilometers.

  • Distance Between ZIP Codes

    Enter two ZIP codes, or paste a list of pairs, to get the straight-line distance between ZIP centers in miles and km, with a CSV download.

  • Measure Distance on a Map

    Click points on a street map to measure a straight-line path in miles or feet and kilometers or meters.

  • Drive Time Map

    Map drive, bike or walk time zones of 10, 20, 30 and 45 minutes around one start point, on real roads.

  • Elevation Profile

    Draw a route or open a GPX or KML file to get its elevation profile with total climb and descent and more.

All distance and drive time tools

Built and checked by Handy Map Tools. Each tool names its method and data source, and every map page lists its credits.

Updated · How we measure · Report a problem