Distance Calculator
Use this distance calculator to find the straight-line distance between two cities or towns anywhere in the world, and view the result in kilometers, miles, and nautical miles.
Distance Calculator
Type a city or town and pick it from the list. Where several places share a name, the population beside each one tells them apart.
The other units are listed alongside it.
Enter values above to see results
About This Distance Calculator
This tool measures the direct geographical separation between a starting location and a destination. Enter two places to view the result in kilometers, miles, and nautical miles, together with a map and the coordinates each result was calculated from.
The result is useful for comparing how far apart places are without following roads. It can be used for city-to-city checks, flight planning estimates, geographic research, international comparisons, and general travel preparation.
How to Use the Tool
- Enter a city or town in the starting-location field.
- Select the correct suggestion from the location list.
- Enter and select the destination.
- Choose the preferred display unit.
- Click Calculate.
- Review the direct distance, coordinates, compass direction, and map.
- Use the swap button to reverse the locations, or reset the fields for a new search.
Select the intended place carefully when several cities share the same name. The population shown beside each suggestion is there to help: there is one London with 7.6 million people and several others with a few thousand.
How does this distance calculator work?
The tool identifies the latitude and longitude associated with both selected places. It then uses those coordinates to calculate distance along the Earth's surface rather than measuring a flat line on a paper map.
The result also includes the initial bearing from the starting point toward the destination. This bearing is measured clockwise from north and is expressed as both an angle and a general compass direction.
Earth is not flat, so location calculations must account for its curved surface. Small differences can still appear between tools because they may use different coordinate sources, Earth models, city-center points, or rounding methods.
Straight-Line Distance vs Driving Distance
| Straight-Line Result | Driving Route |
|---|---|
| Measures the direct separation between coordinates | Follows available roads |
| Does not account for road access or barriers | Accounts for the selected road network |
| Is usually shorter than a road route | May change with the chosen route |
| Does not include traffic or travel time | May include traffic and time estimates |
| Can compare places across countries and oceans | Requires connected roads or transport links |
This page reports a straight-line surface result. It should not be used as a substitute for a navigation or route-planning service.
What the Results Mean
Direct Distance
This is the estimated shortest surface separation between the two selected geographical points.
Kilometers and Miles
The same result is displayed in metric and imperial units, allowing users to compare locations using their preferred measurement system.
Nautical Miles
Nautical miles are commonly used in marine and aviation contexts. This unit is useful when comparing ports, coastal locations, or flight paths.
Coordinates
Latitude shows how far north or south a point lies, while longitude shows how far east or west it lies. The selected coordinates determine the two endpoints used in the calculation.
Initial Bearing
The initial bearing indicates the direction from the first location toward the second at the start of the shortest surface path.
The Map
The map plots both points and draws the great-circle route between them. On this projection that route is a curve, not a straight line, which is exactly why the distance is shorter than a ruler laid across a flat map would suggest.
Location Calculation Example
Suppose a user selects New York as the starting point and London as the destination. The tool identifies the coordinates assigned to each location — 40.7128° N, 74.0060° W and 51.5072° N, 0.1276° W — and returns their direct surface separation of roughly 5,570 kilometers, or about 3,461 miles.
The displayed number will not match the length of a driving route because the two cities are separated by the Atlantic Ocean. It may also differ slightly from another website if that service uses different coordinates for either city.
Coordinates, 2D and 3D Modes
Three further modes sit beside the location search.
Lat/long takes two coordinate pairs in decimal degrees, for a spot with no city name — a trailhead, a survey marker, a point copied out of a mapping service. South and west are negative.
2D and 3D apply the distance formula to points on a coordinate grid, which is the version that appears in geometry and algebra coursework:
d = √((x₂ − x₁)² + (y₂ − y₁)²)
For two points in space, the depth difference is added before the square root:
d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²)
For example, the distance between (2, 3) and (8, 11) is √(6² + 8²) = √100 = 10. These modes are unit-agnostic: whatever unit the coordinates are in, the answer comes back in the same one.
Why Results May Differ Between Tools
Two services may show slightly different answers because of:
- Different city-center or landmark coordinates
- Airport coordinates being used instead of city coordinates
- Different geocoding sources
- Spherical versus ellipsoidal Earth models
- Rounding rules
- Different interpretations of a place name
These variations are usually more noticeable when the selected locations cover large areas or do not have one obvious central point.
Common Uses
You can calculate distance for several practical tasks without following a road route. Use the result to:
- Compare the separation between two cities
- Check the approximate direct span of a planned flight
- Review distances between landmarks
- Compare international locations
- Support geography assignments
- Estimate direct separation between ports
- Check how far a place is from a chosen reference point
The result does not include ticket prices, route availability, border requirements, fuel needs, or actual journey duration.
Start Measuring
Enter your starting point and destination above, then use the distance calculator to compare their direct separation in the available units.
Frequently Asked Questions
What does a distance calculator do?
It finds the direct geographical separation between two selected places and displays the result in several measurement units, together with the coordinates used, the initial bearing, and a map of the route.
Can I calculate distance between two cities?
Yes. Type both cities, select the correct suggestion for each, and review the direct surface result. Where several places share a name, the population shown beside each suggestion tells them apart.
Does the result show driving miles?
No. The calculation does not follow roads and should not be interpreted as a driving-route length. Roads must go around water, mountains, restricted areas, and other barriers, so a road route is always longer.
Can I use addresses or landmarks?
Not directly. The place list covers cities and towns of 15,000 people or more, not street addresses or individual landmarks. For an exact spot, switch to Lat/long mode and enter the coordinates, which you can copy from any mapping service.
Why is the road route longer?
Roads must follow available infrastructure and may go around water, mountains, restricted areas, or other barriers. The straight-line result ignores all of that and measures the shortest path across the surface, so it is a lower bound rather than a travel estimate.
Can the tool show kilometers and miles?
Yes. Choose which unit leads and the same direct result is converted into kilometers, miles, and nautical miles at once, so there is no need to convert anything by hand.
What is the initial bearing?
It is the direction from the first location toward the second at the start of the shortest surface path, measured clockwise from north and also given as a compass point. A great-circle route is not a constant heading, so the bearing changes as you travel.
Is the displayed value exact?
It is an estimate based on the selected coordinates and a spherical Earth of mean radius 6,371.0088 km. Because the Earth is slightly flattened at the poles, results are typically within about half a percent of the true ellipsoidal distance. Coordinate sources, city-center points, and rounding can create small differences between tools.
