GEODETIC DATUM: WGS84 · CLIENT-SIDE PRECISION · NO SIGN-UP
Open Map Lab

Distance Between Two Places (Address to Address)

Enter two addresses, places or coordinates, or click two points on the map, to measure the distance between them on the WGS84 ellipsoid in miles, kilometers and nautical miles, with initial and final compass bearings. It is the shortest surface distance, not a driving route.

By ·Updated Runs in your browser
Tool Ready
Ready to Locate· Awaiting input

Ready to Measure Distance

Choose two locations, search addresses, or load a verified sample route below.

Quick Sample Pairs:
AORIGIN LOCATION

New York, NY: 40.7128°, -74.0060°

BDESTINATION LOCATION

Los Angeles, CA: 34.0522°, -118.2437°

Currently setting Point B. Click map to reposition pin.True WGS84 Geodesic Arc (Karney Solution)

Complete Distance & Navigation Telemetry
Statute Miles2,450.95 mi
Kilometers3,944.42 km
Nautical Miles2,129.82 NM
Total Feet12,941,018 ft
Meters3,944,422 m
Initial Bearing (Azimuth 1)273.7° (W)

Forward departure azimuth from Point A.

Final Bearing (Azimuth 2)246.0° (WSW)

Arrival heading across converging meridians.

Rhumb-Line Constant Heading259.3° (W)

Constant compass angle (longer flight path).

Ellipsoidal (WGS84) vs. Spherical (Haversine) Model Comparison

Spherical Haversine formulas assume Earth is a perfect ball of radius 6,371,009 m. Open Map Lab computes exact ellipsoidal geodesics via Karney’s algorithm, accounting for Earth’s polar flattening (1/298.257).

Karney WGS84 (Ellipsoidal Ground Truth)2,450.95 mi (3,944.42 km)
Haversine (Spherical Approximation)2,445.56 mi (3,935.75 km)
Model Discrepancy (Delta)8,670.6 m (0.220%)

How to use the distance calculator

  1. 1Enter two places

    Type two addresses, places or coordinates, or click two points on the map.

  2. 2Measure on the WGS84 ellipsoid

    The shortest surface distance is computed with Karney's geodesic method (GeographicLib), accurate to well under a meter.

  3. 3Read miles, km and bearings

    See the distance in miles, kilometers and nautical miles with the initial and final compass bearings. It is not a driving route.

Straight-Line vs. Rhumb Line vs. Driving Distance

When you measure the distance between two locations on Earth, the answer depends entirely on which trajectory you follow across the physical terrain and mathematical coordinate space:

  • Great-Circle / Geodesic Distance: The shortest physical path between two points across the curved surface of an oblate spheroid. Commercial airline flights follow geodesic paths because they minimize fuel burn and elapsed flight time. On a standard flat Mercator projection map, a geodesic appears as an upward curved arc.
  • Rhumb Line (Loxodrome): A path of constant compass heading that intersects all longitudinal meridians at the same angle. While easier to navigate with a traditional magnetic compass on a nautical paper chart, a rhumb line is significantly longer than a geodesic on transoceanic voyages.
  • Driving / Road Distance: The length of travel constrained to physical asphalt highway networks, bridges, one-way city street grids, and mountain passes. Driving distance is virtually always 15% to 45% longer than straight-line geodesic distance.

How the Distance Between Two Places Is Calculated

Most basic online distance calculators implement the Haversine formula. While computationally cheap, Haversine assumes that Earth is a geometrically perfect sphere with a static average radius of 6,371 kilometers (3,958.8 miles).

Real Earth is an oblate spheroid flattened at the poles by centrifugal force from planetary rotation. The equatorial radius (a = 6,378,137.0 m) is approximately 21.385 kilometers larger than the polar semi-minor axis (b = 6,356,752.3 m), with an ellipsoid flattening ratio of f = 1 / 298.257223563.

Why Open Map Lab Uses Charles Karney’s Geodesic Library

Published in the Journal of Geodesy (2013), Dr. Charles Karney’s algorithms solve the inverse and direct geodesic problems on the WGS84 reference ellipsoid with millimeter precision at any distance, including antipodal points.

Spherical Haversine models produce systematic distortion: they overestimate distances near the Equator by up to +0.2% and underestimate distances in polar regions (Alaska, Scandinavia, Canada) by up to −0.55%. On a 500-mile flight across Alaska, a Haversine calculator will misreport distance by nearly 2.75 miles. Open Map Lab uses Karney’s exact ellipsoidal solution on every calculation.

Why the Compass Bearing Changes Along the Route

If you depart New York City (JFK) flying toward London Heathrow (LHR), your initial compass departure heading is approximately 051° (northeast). However, as your aircraft approaches London, your heading has shifted to approximately 098° (east-southeast).

This occurs because longitudinal meridians are not parallel lines; they converge toward the Geographic North Pole. As an aircraft traverses converging meridians on a straight-line spatial path through three-dimensional space, the local angle between the flight path and true geographic north changes at every single waypoint.

The same geodesic path also fixes the true midpoint: if you need the midpoint between two locations rather than the full distance, it sits exactly halfway along this curve, not at the average of the two latitudes and longitudes.

Straight-Line Distance vs. IRS Mileage Rules

The idiom “as the crow flies” describes the direct, unimpeded straight-line path between two points. In practical commercial operations, understanding the relationship between crow-flies mileage and road mileage is critical:

  • IRS Mileage Reimbursement (Rev. Proc. 2024-08): The Internal Revenue Service (IRS) permits standard business mileage tax deductions based strictly on actual odometer driving miles, not crow-flies distance. Deducting straight-line distance instead of actual driving mileage forfeits significant legal tax deductions.
  • Circuity Factor: The ratio of road driving distance to straight-line distance (Road Distance / Straight-Line Distance). In gridded Midwestern plains, the circuity factor is typically 1.15 to 1.25 (meaning roads take 15% to 25% longer than a straight line). In coastal or mountainous terrain with fjords or canyons, the circuity factor routinely exceeds 1.60 to 2.00.
  • Commercial Drone Delivery: Quadcopter and eVTOL drone logistics operators use geodesic distance buffers to assess battery range feasibility, factoring in headwind vectors and FAA Part 107 airspace restrictions.

Distance Calculation: Worked Example

Here is a formal benchmark calculation demonstrating Karney’s exact ellipsoidal solution for transoceanic aviation:

GOVERNING MATHEMATICAL EQUATIONs_{12} = b \int_0^{\sigma_{12}} \sqrt{1 + k^2 \sin^2 \sigma} \, d\sigma \quad \text{(Karney WGS84 Ellipsoidal Integral)}
VARIABLE DEFINITIONS & CONSTANTS
s_{12}:Geodesic arc length across the WGS84 reference ellipsoid (meters)
a:WGS84 Equatorial Semi-Major Axis (6,378,137.0 m)
b:WGS84 Polar Semi-Minor Axis (6,356,752.3142 m)
f:WGS84 Ellipsoidal Flattening Ratio (1 / 298.257223563)
WORKED BENCHMARK: NEW YORK (JFK) TO LONDON HEATHROW (LHR)
JFK Coordinates = 40.6413° N, 73.7781° WLHR Coordinates = 51.4700° N, 0.4543° W
  1. Evaluate reduced latitudes eta_1 and eta_2 on the WGS84 ellipsoid.
  2. Solve the inverse geodesic problem using 6th-order series expansion for sigma_{12}.
  3. Computed ellipsoidal distance: s12 = 5,554,412.8 meters.
  4. Convert to statute miles: 5,554,412.8 m ÷ 1,609.344 = 3,451.35 statute miles.
  5. Convert to nautical miles: 5,554,412.8 m ÷ 1,852.0 = 2,999.14 nautical miles.
Computed Result:Exact WGS84 Distance = 3,451.35 miles (5,554.41 km / 2,999.14 NM)

Initial departure heading from JFK is 051.2° (northeast). Arrival heading at LHR is 098.4° (east-southeast). Flight tracks across eastern Canada and southern Greenland.

Distances Between Famous Cities (Table)

Reference geodesic distances, nautical miles, and estimated commercial airline block flight times:

World Metro Geodesic Flight Benchmarks

Computed using Charles Karney WGS84 ellipsoidal geodesics. Flight times assume 490 knot average commercial jet cruising speed.

Airport RouteStatute MilesKilometersNautical MilesEstimated Flight Time
JFK → LHR3,451 mi5,554 km2,999 NM~6h 50m
LAX → HND5,488 mi8,832 km4,769 NM~11h 20m
ORD → CDG4,152 mi6,682 km3,608 NM~8h 15m
SFO → SYD7,440 mi11,974 km6,465 NM~14h 45m
MIA → GRU4,073 mi6,555 km3,539 NM~8h 25m

Distance Between Two Places: Accuracy and Limitations

When NOT to Rely on Straight-Line Distance
  • Ground Transportation & Commute Times: Never calculate automobile travel times by dividing straight-line distance by highway speed limits. Use our Drive Time Map tool to account for traffic, intersections, and physical highway geometry.
  • Fuel Planning & Dispatch: Certified maritime and aeronautical navigation requires considering headwinds/jetstreams, Great Circle Waypoint waypoints, and ETOPS emergency alternate airports.
  • Real Estate Radius Searches: A house marketed as "5 miles from downtown" measured straight-line may require a 12-mile drive around bays, rivers, or highway bottlenecks.

Quick facts about the distance calculator

FactValueNotes
Math FormulaHaversine & VincentyAccounts for the spherical curvature of Earth
Earth Mean Radius6,371.0088 kmWGS84 geodetic standard radius
Units Supported5 Standard UnitsMiles, Kilometers, Nautical Miles, Feet, Meters
Bearing CalculationsInitial, Final, RhumbTrue compass headings across converging meridians
PRECISION & EXCEPTIONS

Edge cases and exceptions

Antipodal Points

Points located directly opposite each other on Earth (180° longitude apart) have infinite shortest paths. The calculator gracefully identifies antipodal distances of ~12,450 miles.

High-Latitude Distortion

Standard Mercator maps severely distort distances near the poles. Our WGS84 geodesic calculations (Karney / GeographicLib) stay accurate to nanometers on the ellipsoid even across the Arctic and Antarctic circles.

FIELD APPLICATIONS

The distance calculator: worked examples

1

Flight Distance Calculation

Scenario: Calculating direct flight distance from New York (JFK) to London (LHR).

Outcome: Measures 3,451 statute miles (5,554 km / 2,999 nautical miles) along the great-circle arc.

2

Amateur Radio & Antenna Azimuth

Scenario: Aiming a directional beam antenna from Chicago to Tokyo.

Outcome: Determines initial heading of 326° (NNW) across Alaska rather than a naive flat-map straight line.

FREQUENTLY ASKED QUESTIONS

Frequently asked questions about the distance calculator

What is great-circle distance?

Great-circle distance is the shortest distance between two points on the surface of a sphere or ellipsoid, curved along the Earth's spherical surface.

Why is straight-line distance shorter than driving distance?

Straight-line ("as the crow flies") distance ignores roads, terrain, and rivers. Driving distances are typically 15% to 35% longer due to road network winding.

What is the difference between initial and final bearing?

Because lines of longitude converge at the poles, a great-circle flight path changes compass heading continuously. Initial bearing is your departure heading; final bearing is your arrival heading.

Can I share the calculated distance?

Yes. The coordinates of both points are encoded in the URL hash, allowing you to copy and share the link without creating an account.

What units does this distance calculator support?

Miles, kilometers, nautical miles, feet, and meters are all computed and displayed simultaneously.

How accurate is the distance calculation?

Distances use the WGS84 ellipsoid (Karney's geodesic algorithm), accurate to within millimeters for the model itself. The practical limit is the precision of the two locations you choose.

Haversine or Vincenty: which is better?

Haversine treats Earth as a sphere and can be off by up to about 0.5%. Ellipsoidal methods such as Vincenty and Karney follow the true Earth shape. Our study compares them across latitudes.

What is the shortest path between two points on Earth?

It is the geodesic, the arc of the great circle (on a sphere) or its ellipsoidal equivalent. On a flat map it often looks curved, especially on long east-west routes.

Why do flights follow curved paths on a flat map?

Great-circle routes are the shortest paths on a sphere, and a Mercator map stretches the poles, so the shortest route bends toward them. Winds and airspace rules also shape actual flight paths.

How do I convert miles to kilometers?

Multiply miles by 1.609344 to get kilometers. A nautical mile is exactly 1,852 meters, or about 1.15 statute miles.

Can I measure the distance from my current location?

Yes. Use your device location as the starting point or enter an address, then add the second place by search or by clicking the map.

Does elevation change the distance?

The calculation is along the ellipsoid surface at sea level, so hills and mountains are not included. Terrain adds a small amount to walking distance. Use the elevation profile tool to see the climb along a route.

How far is it across the United States?

New York to Los Angeles is about 2,445 miles (3,935 km) in a straight great-circle line, while the driving distance is closer to 2,800 miles.

What is the longest possible distance between two points on Earth?

The antipodal distance, roughly half Earth's circumference, is about 12,430 miles (20,004 km) along the surface. See the antipode finder for the opposite point of any location.

Can I use this for driving distance?

No, it measures straight-line distance. Roads add curves and detours, typically 15 to 30 percent in the US. See our guide to straight-line versus driving distance.

How do I get the distance between two coordinates?

Enter the coordinates in decimal degrees in each field (for example, 40.7128, -74.0060). The tool accepts addresses, place names and coordinates.

Keep exploring

Data & Cartographic Authority: WGS84 ellipsoid geodesics (GeographicLib/Karney) · OpenStreetMap contributors (ODbL) via Photon & Nominatim geocoding

Written and maintained by . Content updated October 30, 2026; data last verified September 19, 2026. See our editorial policy, methodology, or report an error.