simplemaplab

Distance Between Two Places

By Marko Visic · Updated Nov 12, 2026

Get the distance between two places by road, with the drive time, for trips up to 932 mi (1,500 km), and in a straight line for any two points on Earth. Type two cities, addresses or ZIP codes, pick spots on the map, or start from your own location to get the distance from where you are.

Search or tap the map to set your start.
Set your starting point
Search for a location, click the map, or use the location button to set where you're measuring from.

How to find the distance from one place to another

Enter the two places above and the tool gives the distance between them two ways: along the roads, with the drive time, for places up to 932 mi (1,500 km) apart, and in a straight line over the Earth's curved surface for any two points. It takes cities, street addresses, US ZIP codes and any point you pick on the map.

1
Set where you start
Type a city, address or ZIP code in From and pick a suggestion, or pick a spot on the map. To measure from where you are, press "Use location"; your browser asks before it shares your position.
2
Set the destination
Do the same in To. The map draws the straight line as a dashed arc and, when the routing server answers, the road route as a solid line.
3
Read the distance
The sentence above the figures gives the road distance and drive time, for trips up to 932 mi (1,500 km), and the straight-line distance. Below the figures come the initial heading, the midpoint and the travel times, and "Show all unit conversions" lists every unit.

Driving distance and drive time

The tool sends the two points to our server, which asks Valhalla, an open-source route planner, on the public server FOSSGIS e.V. runs on OpenStreetMap road data. Valhalla finds the fastest road route between the two places and gives its length and its time on clear roads, from the speed limits mapped in OpenStreetMap or, where none is mapped, a default speed for the type of road. There is no live traffic, so a rush-hour drive takes longer.

The FOSSGIS server answers only for places up to 932 mi (1,500 km) apart in a straight line, so the tool asks it only for those. Past that, and where no road joins the two places (an island, a point at sea), the tool shows the straight-line distance and says why there is no road distance. Walking and cycling times use the road distance at 3 mph and 12 mph (5 and 19 km/h); the flying time is an estimate over the straight line at 500 mph (805 km/h).

Distance between two addresses

Type each address in full, with the house number and the town, and pick the matching suggestion: the search places it on that address, not on the town center. The road distance then runs door to door along the streets, and the straight line joins the two addresses. To measure from a building the search doesn't know, pick it on the map instead.

What people use the distance calculator for

Flight distance

The straight-line distance is the great-circle distance, the shortest path a plane can fly, so it is the number to compare flights and airports by.

EXAMPLE
New York to London: 3,461 miles (5,570 km, 3,008 nautical miles) in a straight line. At the tool's 500 mph flying estimate that is about 6h 55m in the air.

Moving and long road trips

Before a move, the distance tells you how far you'll be from family and friends. For trips longer than the routing server covers, the straight line is a lower bound for the road distance.

EXAMPLE
Dallas to Seattle: 1,678 miles (2,701 km) in a straight line. That is past the 932 mi (1,500 km) road limit, so the tool shows the straight line only; for road mileage, enter the trip as legs in Multi-Stop Route Distance.

Geography questions

The straight-line distance settles which of two cities is closer to a third, without the road network getting in the way.

EXAMPLE
Is Denver closer to Phoenix or to Dallas? Phoenix: 583 miles (939 km). Dallas: 661 miles (1,064 km). Phoenix is closer in a straight line.

Shipping and logistics

USPS prices zoned mail by weight and by distance, counted in postal zones. A zone is set by the distance between the centroids of the 3-digit ZIP Code areas serving the origin and destination Post Offices, and zone 1 covers centroids up to 50 miles apart (Domestic Mail Manual 608.9, as amended in 2022). That is a point-to-point distance, so the straight-line figure is the one to compare warehouse sites by; the road distance gives the driving route for trips up to 932 mi (1,500 km).

EXAMPLE
Miami to Chicago: 1,190 miles (1,914 km) in a straight line.

Distance between cities

Straight-line distances between popular city pairs, as the tool gives them for each city's point. For the road distance between any two of them, enter both cities in the tool above: it shows road figures for trips up to 932 mi (1,500 km).

US cities

RouteMilesKmNautical mi
New York → Los Angeles2,4513,9442,129
Chicago → Houston9401,514817
New York → Chicago7151,151621
Los Angeles → San Francisco346557301
Miami → Atlanta607976527
Dallas → Houston224361195
Boston → New York185297160
Seattle → Portland146235127
Denver → Phoenix583939507
Washington, DC → New York207333180
San Francisco → Seattle6801,095591
Philadelphia → New York81.713271.0
Dallas → Seattle1,6782,7011,458
Miami → Chicago1,1901,9141,034

Cities outside the US

RouteMilesKmNautical mi
New York → London3,4615,5703,008
Los Angeles → Tokyo5,4788,8154,760
Sydney → Singapore3,9146,2993,401
Paris → Moscow1,5452,4871,343
London → Dubai3,4095,4862,962

Each US row uses one point per city: the population-weighted center of the ZIP codes that carry the city's name in SimpleMaps' free US ZIP file. The other rows use each city's point in GeoNames. A search in the tool lands on the city center as OpenStreetMap marks it instead, so its figures can differ by a few miles.

How the distance is calculated

The straight-line distance is the great-circle distance, the shortest path between two points over a sphere, from the haversine formula on a sphere of radius 3,958.76 mi (6,371.01 km), within about 0.6% of WGS84. On a flat map the great circle is a curve, and the map draws it that way: the line from Tokyo to San Francisco bows north across the Pacific, above the latitudes of both cities.

The midpoint is the great-circle midpoint, halfway along that path and the same distance from both places. Averaging the two latitudes and longitudes gives a different point: for the New York to Los Angeles example the average lands 158 miles (255 km) away. The initial heading is the compass direction at the start; on a great circle it changes along the way.

Unit conversions: 1 mile = 1.609344 km = 0.868976 nautical miles. 1 kilometer = 0.621371 mi = 0.539957 nm. 1 nautical mile = 1.852 km = 1.15078 mi.

Related tools and resources

To meet someone in the middle, the halfway point tool finds the midpoint and lists towns near it. For the distance as the crow flies next to the road distance, with the detour as a percentage, use Crow Flies Distance.

For a trip with several stops, Multi-Stop Route Distance works as a mileage calculator: it adds up each leg, by road or in a straight line. When you need every distance between many points, the Distance Matrix Calculator builds the full table with CSV export.

To price the fuel for a drive, the gas cost calculator takes the same road route and this week’s EIA price for each state on it. To measure on Google Maps instead, see how to measure distance on Google Maps.

To see what lies within a given distance, the Map Radius Tool draws a radius around your location or any point. For US ZIP codes, the Distance Between ZIP Codes tool measures between two ZIP codes and draws their boundaries.

For the full set of bearings between two points (initial, final, rhumb line and magnetic), see the Bearing & Compass Calculator.

Frequently asked questions

With From selected, as it is when the page opens, press "Use location"; your browser asks before it shares your position. Then search the place in To. The tool gives the distance from where you are in a straight line, and by road for places up to 932 mi (1,500 km) away. It sends your position to OpenStreetMap’s Nominatim for the place name and to our server for the road route, and it does not add your position to the page address.
The driving distance follows the road network from one place to the other, the way a car would go. The straight-line distance is the shortest path over the Earth’s surface, ignoring roads, water and terrain. The road distance is almost always the longer one, most of all around lakes, bays, mountains and coastlines.
The routing server, Valhalla, works it out along the road route from the speed limits mapped in OpenStreetMap or, where none is mapped, a default speed for the type of road. It has no live traffic and adds no breaks, so treat it as the time on clear roads. Walking and cycling times use the same road distance at 3 mph and 12 mph.
Pick two spots on the map: the first sets From, the second sets To. Each can be any point, a field or a peak as well as a town. The tool gives the straight-line distance between the two points, and the road distance when roads reach both and they are up to 932 mi (1,500 km) apart.
The free public routing server behind it answers only for places up to 932 mi (1,500 km) apart in a straight line, so the tool asks it only for those. For longer trips the tool shows the straight-line distance and a note that road distance is shown up to that limit. To get road mileage for a long trip, split it into legs shorter than that, for example with Multi-Stop Route Distance.
It is the great-circle midpoint: the point halfway along the shortest path over the globe, the same distance from both places. It is not the average of the two latitudes and longitudes, which lands off the path and grows worse with distance. The halfway tool uses the same point and lists towns near it to meet in.
The tool uses the haversine formula on a sphere of radius 3,958.76 mi (6,371.01 km). The Earth is slightly flattened, so the sphere is an approximation. Checked against Vincenty’s formulae on WGS84 for 140,000 random pairs in November 2026, the result is within about 0.6% of WGS84. The gap is largest on short north–south lines, about 0.56% too long near the equator and 0.45% too short near the poles.
Yes. Search finds places worldwide, and the straight-line distance works for any two points on Earth. The road distance covers trips up to 932 mi (1,500 km) wherever OpenStreetMap maps the roads.
Ships and aircraft measure distance in nautical miles. One nautical mile is 1,852 meters, about one minute of latitude, and their speeds are given in knots (nautical miles per hour).
The tool shows both. One mile is 1.609344 km, one kilometer is 0.621371 miles, and one nautical mile is 1.852 km.
The compass direction you set off in from the start, in degrees clockwise from true north (0° is north, 90° east). Along a great circle the heading changes as you go, except on a meridian or the equator, so the tool calls it the initial heading.
Copy result copies the sentence with the distances, and the small copy buttons copy the midpoint and each place’s coordinates. The tool does not save results or put your places in the page address.
Data sources & methodology

Road distances and drive times come from the Valhalla routing engine on OpenStreetMap road data (© OpenStreetMap contributors). Our server asks the public Valhalla server that FOSSGIS e.V. runs, at the moment you measure; that server routes places up to 932 mi (1,500 km) apart in a straight line and has no live traffic. Straight-line distances use the haversine formula on a sphere of radius 3,958.76 mi (6,371.01 km), within about 0.6% of WGS84 in our check of 140,000 random pairs (November 2026, see the methodology), and the midpoint is the great-circle midpoint. Place search uses the Photon geocoder and place names for map taps and Use location come from Nominatim, both live services on OpenStreetMap data; a ZIP code typed as digits is placed at its point in the SimpleMaps file on our server (the licensed Comprehensive version). The map uses MapLibre GL JS with OpenFreeMap tiles.

Distance in perspective: a marathon is 26.2 mi (42.195 km), per World Athletics; the equator is 24,901 mi (40,075 km), from the equatorial radius in the NASA Earth fact sheet (updated November 15, 2024); and the Moon is 238,855 mi (384,400 km) from Earth on average, per NASA. Gas is figured at 30 mpg.

Units: a mile is 1.609344 km and a nautical mile 1,852 m, both exact, per NIST's Guide to the SI, Appendix B.9 (updated August 18, 2025); nautical miles and knots as NOAA's National Ocean Service explains them (updated September 23, 2026). USPS postal zones: Domestic Mail Manual 608.9 as amended in the Federal Register on May 18, 2022 and November 18, 2022.

City tables: each US city's point is the population-weighted center of the ZIP codes with that city name, with population from the American Community Survey 2020–2024 5-year estimates, in the SimpleMaps US Zip Codes Database v1.95.1 (July 8, 2026), free version under CC BY 4.0. Cities outside the US: GeoNames (CC BY 4.0), as in the site's extract of October 7, 2026.

More free map tools

Related tools