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
GEO MAP TOOLS 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 GEO MAP TOOLS.
= 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
How It Works: Step-by-Step
The exact computational sequence used to determine great-circle distance.
Input Coordinates or Places
User supplies origin (Point A) and destination (Point B) via address search or decimal coordinates.
Coordinate Parsing & Normalization
Inputs are resolved to WGS 84 latitude [-90°, 90°] and longitude [-180°, 180°] in decimal degrees.
Degrees to Radians Conversion
Angle values are converted into radians (rad = deg × π / 180) for trigonometric function evaluation.
Haversine Formula Execution
Computes angular separation c in radians, then multiplies by mean Earth radius R (6,371,000 meters).
Multi-Unit Conversion & Path Rendering
The calculated distance in meters is converted into kilometers, statute miles, nautical miles, and feet, and displayed alongside the great-circle arc on the map.
Calculation Methodology & Formula
The trigonometric equations powering our great-circle calculations.
Haversine Formula
Mathematical Formula
a = sin²(Δφ / 2) + cos(φ₁) ⋅ cos(φ₂) ⋅ sin²(Δλ / 2) c = 2 ⋅ atan2(√a, √(1 − a)) d = R ⋅ c
Variable Definitions
| Variable | Description |
|---|---|
| φ₁, φ₂ | Latitude of Point 1 and Point 2 in radians |
| Δφ | Difference in latitude (φ₂ − φ₁) in radians |
| Δλ | Difference in longitude (λ₂ − λ₁) in radians |
| R | Earth volumetric mean radius (6,371.0088 km / 6,371,000 m) |
| c | Angular distance along the sphere surface in radians |
| d | Great-circle distance along Earth's surface |
How the Math Works
The Haversine formula determines the great-circle distance between two points on a sphere directly from their longitudes and latitudes. By employing the haversine function (sin²(θ/2)), it avoids numerical conditioning problems with small distances that affect the classical spherical law of cosines.
Distance between New York (40.7128° N, 74.0060° W) and London (51.5074° N, 0.1278° W): Δφ = 0.1884 rad, Δλ = 1.2894 rad → a ≈ 0.1868 → c ≈ 0.8751 rad → d = 6,371 km × 0.8751 ≈ 5,575 km (3,464 miles).
Accuracy & Limitations
Calculation & Data Accuracy
- Calculated as straight-line 'as-the-crow-flies' distance across Earth's surface using a spherical model (R = 6,371 km).
- Actual distance across the WGS 84 oblate ellipsoid may vary by up to approximately 0.3% to 0.5% depending on latitude, as Earth's equatorial radius (6,378 km) exceeds its polar radius (6,357 km).
- Elevation differences and topography (mountains, valleys) are not factored into the surface calculation.
- Input coordinate precision directly governs result precision. A coordinate with 4 decimal places has a resolution of roughly 11 meters; 6 decimal places resolves to approximately 0.11 meters.
Important Limitations & Disclaimers
- Do not use for: Driving, walking, or road travel route planning (does not account for road corridors, turns, bridges, or speed limits).
- Do not use for: Certified aviation flight management systems or marine navigation chartwork.
- Do not use for: Legal land surveying or boundary line determinations.
Data Sources & Technologies
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?
GEO MAP TOOLS 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?
GEO MAP TOOLS 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.
What City Am I In?
Find the city or locality at your current location using device GPS or a searched place.
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.
Map Area Calculator
Draw shapes directly on an interactive map to measure land, property, field, and polygon areas.