Introduction
This distance calculator tells you how far apart two places are. Type in two spots (cities, addresses, ZIP codes, landmarks, or plain latitude and longitude) and you get the answer right away in miles, kilometers, nautical miles, feet, and meters.
You get three kinds of distance. The straight-line distance (also called "as the crow flies") is the shortest path over the curved Earth, the same one planes use. The rhumb line is the path you take if you hold one compass heading the whole trip.1 The driving distance follows real roads, so it is longer than a straight line.
The tool also shows travel time, the compass bearing from one place to the other, the midpoint between them, time zone differences, an interactive map with each route drawn on it, turn-by-turn directions, and a chart of the land height along the path. You can set your own average speed to see how long the drive would take you.
Every answer comes with a step-by-step solution, so you can see the haversine math behind it. That makes this useful for trip planning, homework, flight and sailing questions, or just settling a "how far is it?" debate.
How to use our Distance Between Two Locations Calculator
Enter your start point and your end point, then pick a driving speed. The calculator shows the straight-line distance, the rhumb-line distance, the driving distance, travel time, bearing, midpoint, a map, turn-by-turn directions, and an elevation profile.
Search by place tab: Type a city, address, ZIP code, landmark, or a lat/long pair. Pick a match from the drop-down list for the best result.
From (starting location): Type where your trip begins. Add the state or country, like Springfield, IL, US, so the right place is found.
To (ending location): Type where your trip ends. Any address, city, postal code, or place name works.
Swap button: Click it to flip the start and end points. The results update right away.
Enter coordinates tab: Use this if you know exact map points instead of place names.
Origin latitude: Type the start point's latitude in degrees, from −90 to 90. Use a minus sign for south.
Origin longitude: Type the start point's longitude in degrees, from −180 to 180. Use a minus sign for west.
Destination latitude: Type the end point's latitude the same way, north as plus and south as minus.
Destination longitude: Type the end point's longitude the same way, east as plus and west as minus.
Average driving speed: Type the speed you expect to drive and choose mph, km/h, m/s, or knots. This gives your own travel time estimate next to the map service's ETA.
Road winding factor: Type how much longer roads are than a straight line, such as 1.20. This is only used if the live routing service is down.
Calculate button: Click it to get all distances and results.
Reset button: Click it to clear your entries and go back to the sample trip.
Chart units: Pick kilometres, miles, or nautical miles for the bar chart that compares the three path lengths.
Profile units: Pick metric or imperial for the elevation chart and its data table.
Map controls: Use zoom in, zoom out, fit to route, or enlarge map to see the paths better. Drag the map to move it.
Distance Between Two Locations
The distance between two locations is how far apart two points on Earth are. But there is more than one answer, because there is more than one path. A plane flies one way. A car drives another way. So the same two cities can have two different distances.
Straight-Line Distance (As the Crow Flies)
This is the shortest path between two points. Earth is round, so this path curves along the surface. It is called the great-circle distance. A great circle is the shortest distance along the surface between two points, so it is always the smallest number you will see.1
Rhumb-Line Distance
A rhumb line is the path you take when you hold one compass direction the whole trip, and it crosses every meridian at the same angle.1 Its big advantage is that the course never changes. It is longer than the great circle except along a meridian or the equator, and the gap grows the farther you are from the equator, the more east–west the trip runs, and the longer it is.1
Driving Distance
Roads do not go straight. They bend around lakes, hills, and cities. So driving distance is longer than straight-line distance, and the gap is biggest in mountains, around water, or on islands.
Bearing and Midpoint
Bearing is the compass direction from the start point to the end point. It is given in degrees, from 0° (north) to 360°. On long trips the bearing changes as you go, because the direction of a great circle changes continually.1 That is why there is a starting bearing and a final bearing.
The midpoint is the halfway spot on the great-circle path. It is handy when two people want to meet in the middle.
Common Distance Units
- Miles (mi): used in the United States and the United Kingdom for roads.
- Kilometers (km): used in most of the world. 1 mile = 1.609 km.3
- Nautical miles (nmi): used in air and sea travel.4 1 nmi = 1.852 km exactly.3
- Feet and meters: best for short distances.
How the Math Works
The haversine formula is a formula of spherical trigonometry for great-circle distance.1 It takes the latitude and longitude of both points, changes the degrees to radians, and finds the angle between the two points as seen from Earth's center. Then it multiplies that angle by Earth's mean radius, about 6,371 km.2 That is about 3,959 miles. Because it treats Earth as a sphere, it is slightly less exact than a method that uses Earth's true shape.
Why Travel Time Is Not Just Distance
Time depends on speed. A 300-mile drive at 65 mph takes about 4 hours and 37 minutes. But traffic lights, city streets, hills, rest stops, and traffic jams add time. Highway trips are faster per mile than city trips, even when the miles are the same, so your average speed matters as much as the distance.
Why This Matters
Knowing the distance helps you plan a road trip, guess your gas cost, compare flight prices, pick a shipping rate, estimate a taxi or rideshare fare, budget a whole trip cost, choose a meeting spot, or check how far a new home is from work or school. That last one helps when you are weighing a move or comparing the cost of living in two cities.