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, which is what ships often do. 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. Pilots and ships use it because it saves fuel and time — it is the same figure behind an air miles calculation. It is always the smallest number you will see.
Rhumb-Line Distance
A rhumb line is the path you take when you hold one compass direction the whole trip. It is easier to steer, so sailors used it for hundreds of years. It is always a little longer than the great circle. On long east–west trips, the gap gets bigger.
Driving Distance
Roads do not go straight. They bend around lakes, hills, and cities. So driving distance is longer than straight-line distance. For most trips, the road is about 1.2 to 1.4 times longer than the straight line. In mountains or on islands, it can be much more. Once you know the road miles, you can work out gas mileage, fuel cost, and tolls for the trip.
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 Earth is curved. 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. See our metric conversion calculator for other switches.
- Nautical miles (nmi) — used by ships and planes. 1 nmi = 1.852 km.
- Feet and meters — best for short distances, and easy to swap with a meters to feet calculator.
How the Math Works
The haversine formula is the common way to find great-circle distance. 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 radius, about 6,371 km (3,959 miles). The answer is accurate to about 0.5% for most trips. For flat-plane geometry instead, use the distance formula calculator or the Pythagorean theorem calculator.
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, which you can check with a speed, distance and time calculator. 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 — useful when you are weighing a move or comparing the cost of living in two cities.