Distance Calculator
Calculate the straight-line distance between two locations using geographic coordinates. View distance paths, compass bearings, and midpoints on an interactive map.
Loading Distance Calculator...
Understanding Great-Circle Distance
The geometry behind measuring separation across Earth's spherical surface.
What is Great-Circle Distance?
The shortest path between any two points on a sphere is known as a great-circle path (or orthodromic distance). Unlike flat Euclidean planes where the shortest distance is a straight line drawn on paper, the shortest path on a sphere is an arc that lies along the intersection of the sphere and a plane passing through the Earth's center.
When projected onto standard flat maps (like Web Mercator), this arc appears curved, often arching toward the poles. This is why intercontinental commercial flights follow curved trajectories.
The Haversine Mathematical Formula
GeoTool uses the Haversine trigonometric formula to calculate distance directly from latitude and longitude coordinates:
c = 2 ⋅ atan2( √a, √(1−a) )
d = R ⋅ c
Where φ represents latitude in radians, λ represents longitude in radians, and R is Earth's volumetric mean radius (6,371 km).
How to Use the Distance Calculator
Follow these simple steps to measure distances between cities or coordinates.
Enter Origin Location
Type any city, town, address, or coordinate into the Point A input. Select the matched suggestion from the autocomplete dropdown.
Enter Destination Location
Choose your target destination in Point B. You can click Swap at any time to reverse the direction.
Analyze Map & Metrics
Instantly view distance across 5 units, compass departure bearings, halfway coordinates, and the interactive distance map.
Straight-Line Distance vs. Driving Distance
Understanding when to use geodesic calculation vs. routing networks.
| Feature | Straight-Line (Geodesic) | Driving Distance |
|---|---|---|
| Measurement Basis | Shortest great-circle path across Earth's surface | Paved road network & highway corridors |
| Terrain & Detours | Ignores mountains, rivers, and borders | Constrained by bridges, passes, and turns |
| Typical Variance | Absolute baseline (100%) | Typically longer than straight-line distance, but the difference varies significantly depending on the road network, terrain, borders, bridges, and local infrastructure. |
| Primary Use Cases | Aviation, maritime, radio signal coverage, science | Automotive travel, fuel estimation, road logistics |
Distance Units and Conversion Ratios
Standard geodetic conversion factors supported by GeoTool.
= 1,000 meters
= 0.621371 statute miles
= 0.539957 nautical miles
= 1.60934 kilometers
= 5,280 feet
= 0.868976 nautical miles
= 1.852 kilometers (exact)
= 1.15078 statute miles
= 1 minute of latitude arc
= 3.28084 feet
= 39.3701 inches
= 0.001 kilometers
Frequently Asked Questions
Common questions regarding distance measurements and geographic calculations.
What is a distance calculator?
A distance calculator is a spatial utility that computes the physical geographic separation between two points on Earth using spherical trigonometry and coordinate data (latitude and longitude).
How is distance between two locations calculated?
GeoTool calculates great-circle distance using a spherical Earth model. Geographic coordinates are represented using the WGS84 coordinate reference system.
Is this driving distance?
No. This calculator measures straight-line great-circle distance between two geographic coordinates. Driving distances follow road networks and traffic conditions and are generally longer than straight-line distances, although the difference varies significantly depending on the location and road network.
How accurate is straight-line distance?
GeoTool calculates straight-line distance from geographic coordinates using a spherical Earth model. It provides an estimate of the shortest surface distance between two points and should not be interpreted as road, navigation, or surveying-grade distance.
Can I calculate distance between raw coordinates?
Yes. You can paste decimal degree coordinates (e.g., 28.6139, 77.2090) directly into the location search inputs or use the interactive map pin placement to calculate distances between arbitrary coordinates.
Can I convert kilometers to miles, feet, and nautical miles?
Yes. Every calculation automatically provides simultaneous conversions into Kilometers (km), Statute Miles (mi), Nautical Miles (NM), Meters (m), and Feet (ft) without needing manual calculations.
Related Geographic Utilities
Explore complementary tools and spatial calculators.
Halfway Point Calculator
Find the exact geographic midpoint, halfway distance, and compass direction between two places.
Radius Map
Draw a custom radius circle around any address, city, or coordinate on an interactive map.
Coordinates Converter
Convert between Decimal Degrees (DD), Degrees Minutes Seconds (DMS), and GPS coordinate formats.
Pin Map
Create, customize, and share custom interactive maps with multi-colored location pins.