Distance Calculator

Find the distance between two points (cities or addresses) in driving miles and as the crow flies, on one map.

Distance between two cities

Type one city into Point A and another into Point B. The map draws the line between them and shows both the straight-line and the driving distance at once, for any two cities worldwide (using OpenStreetMap data). To try it, enter your two cities above, or click the map to drop each point, and read the two figures in the results panel.

Map of the route between Washington, DC and New York City
Example: the straight-line distance from Washington, DC to New York City · Map data © OpenStreetMap contributors

Straight-line (great-circle) distance for common routes. Type your own two places in the tool above to also get the driving distance and estimated drive time.

RouteStraight-Line
New York to Los Angeles2,446 mi
New York to Chicago711 mi
Los Angeles to San Francisco348 mi
Miami to New York1,095 mi
Dallas to Houston225 mi
Seattle to Portland146 mi
Boston to Washington DC394 mi
Denver to Phoenix586 mi

Measured with the haversine formula the tool uses, between the city-center points this site's city pages use (Times Square for New York, for example). International great-circle distances and mile/km conversions are further down the page.

Mileage between two places

“Mileage” usually means the miles you would actually drive along the road network, which is the driving distance figure here, routed over real roads. It is the number you want for fuel, reimbursement, or trip planning. Set Point A and Point B and the mileage between the two places appears with the estimated drive time beside it.

Driving distance

Driving distance follows the roads, so it is always longer than a straight line, and much longer where water, mountains, or one-way streets force a detour. The tool routes the drive and shows the distance plus the estimated time. Once both points are set, the purple “by road” line on the map is the driving route.

As the crow flies distance (straight line)

“As the crow flies” is the straight-line, great-circle distance (also called aerial distance) between two points, the shortest possible distance, ignoring roads entirely. It is what you want for coverage radius, proximity, or a quick sense of how far apart two places really are. The blue dashed line on the map is the straight-line distance, shown in miles, kilometers, and nautical miles.

Air distance and flight distance between cities

Air distance is the same great-circle, straight-line distance, the minimum a plane could cover between two cities. A real flight path is usually a little longer because of departure and arrival routing and air-traffic control, so treat the straight-line figure as the floor, not the exact flight distance. Read the straight-line result above; it now also shows the distance in nautical (air) miles.

Nautical miles and DOT air miles

One nautical mile equals exactly 1.852 km, or 1.15078 statute miles, and an air mile is the same unit as a nautical mile. The straight-line result shows the distance in nautical miles, so you can read it as air miles directly. The DOT/FMCSA short-haul rule (49 CFR 395.1(e)(1)) is written in air miles: 150 air miles equals 172.6 statute miles from the work-reporting location. This tool is a distance reference only, not compliance advice.

See a 150 air-mile radius on the map →

How to Measure Distance on the Map

1

Set Point A

Type a place or click the map

2

Set Point B

Your destination

3

See Distances

Straight-line + road + drive time

4

Add Stops

Optional: Point C, D… up to 10

Just wondering how far a distance like 10 miles actually is, or how long it takes to drive or walk, rather than the gap between two points? Try Miles to Minutes instead.

5 Real-World Distance Measurement Examples

1. Road Trip Planning (US Route 66)

A family planning a road trip from Chicago, IL to Los Angeles, CA uses the distance calculator to understand the journey scope.

Straight-Line Distance
1,742 miles
(2,804 km)
Road Distance (by route)
Routed on the map
Always longer than the straight line

Use case: Read the routed road distance and estimated drive time to budget fuel and plan overnight stops along the way.

2. Flight Distance (NYC to London)

A business traveler checks the distance from New York (JFK) to London (LHR)before a trip.

Great Circle Distance
3,442 miles
(5,540 km)
In Nautical (Air) Miles
2,991 nm
1 nm = 1.852 km

Use case: The great-circle figure is the shortest possible flight; the route actually flown is usually a little longer. Airport points from OurAirports (public domain), same haversine as the tool.

3. Home Buying: Commute Analysis (San Francisco Bay Area)

A couple house-hunting compares two suburbs as a commute to their office in San Francisco (Financial District).

From LocationStraight-Line
Walnut Creek, CA20 mi
San Mateo, CA16 mi

Insight: Walnut Creek is about 3.4 miles farther in a straight line, but the roads narrow the gap: when we checked in November 2026, OSRM (the routing engine the tool uses) took Walnut Creek over CA-24 and the Bay Bridge (I-80) in about 23 miles and San Mateo up US-101 in about 21, both at free-flow speeds. Set each as Point B to compare the routed road distance and drive time yourself. Points: OpenStreetMap's locations for both towns and the Financial District.

4. Trucking Exemption: 150 Air-Mile Radius (FMCSA)

A trucking company determines if drivers qualify for the DOT short-haul exemption (150 air-mile radius from dispatch location in Dallas, TX).

To: Oklahoma City, OK
166 air mi
(191 statute mi)
Over 150 air miles
To: Waco, TX
75 air mi
(87 statute mi)
Within 150 air miles
To: Austin, TX
158 air mi
(182 statute mi)
Over 150 air miles

Regulatory note: The 150 air-mile radius uses straight-line air (nautical) miles, not road miles. 150 air miles equals 172.6 statute miles. Whether a driver actually qualifies for the short-haul exemption depends on other conditions too, so treat this as a distance reference only, not compliance advice.

5. Marathon Training Route Verification (Boston Marathon)

A runner training for the Boston Marathon creates a point-to-point training route from Hopkinton to Boston and verifies the distance.

Official Course Distance
26.2 miles
42.195 km (marathon standard)
Straight-Line Distance
23.9 miles
38.5 km (as the crow flies)

Training insight: The course runs 2.3 miles longer than the straight line from the start line in Hopkinton to the finish line on Boylston Street (both points from OpenStreetMap), because the road winds. Use the routed road distance to place support-crew meeting points at the miles you want.

When Each Measurement Matters

Straight-Line Distance Is Used For:

  • Aviation and flight distance calculations
  • Shipping regulations (FMCSA 150 air-mile exemption)
  • Insurance zone calculations and rates
  • Military and defense planning
  • Quick approximate distance estimates
  • Radio/wireless coverage radius planning

Road Distance Is Used For:

  • Driving directions and navigation
  • Delivery and logistics route planning
  • Fuel cost and consumption calculations
  • IRS mileage reimbursement (rate updated annually; see IRS.gov)
  • Vehicle lease mileage limits
  • Travel time and ETA estimation

Common Distance Reference Tables

International Flight Distances

RouteDistanceNotes
New York (JFK) to London (LHR)3,442 miTransatlantic route
Los Angeles (LAX) to Tokyo (NRT)5,439 miTrans-Pacific route
New York (JFK) to Paris (CDG)3,625 miTransatlantic route
Miami (MIA) to São Paulo (GRU)4,085 miNorth to South America
San Francisco (SFO) to Sydney (SYD)7,425 miTrans-Pacific route
London (LHR) to Dubai (DXB)3,417 miEurope to the Middle East

Great-circle distances by the haversine formula the tool uses, between airport reference points from OurAirports (public domain).

Distance Conversion Quick Reference

1 mile
= 1.609 km
= 1,609 m
= 5,280 ft
5 miles
= 8.05 km
= 8,047 m
= 26,400 ft
10 miles
= 16.09 km
= 16,093 m
= 52,800 ft
100 miles
= 160.9 km
= 160,934 m
= 528,000 ft

How We Calculate: The Haversine Formula

Straight-line distances on Earth's curved surface are calculated using the Haversine formula, which accounts for the Earth's spherical shape:

a = sin²(Δlat/2) + cos(lat₁) × cos(lat₂) × sin²(Δlon/2)
c = 2 × atan2(√a, √(1-a))
d = R × c

Where:
  R = Earth's radius (3,959 miles / 6,371 km)
  lat₁, lat₂ = Latitude of points 1 and 2 (in radians)
  Δlat = Difference in latitude
  Δlon = Difference in longitude
  d = Great-circle distance

Treating the Earth as a sphere keeps the result within about 0.56% of the WGS 84 ellipsoid distance at any range, up to 56 m on 10 km. Surveying-grade work uses ellipsoidal methods such as Vincenty's or Karney's instead.

Why "Great Circle"?

A great circle is the largest circle that can be drawn on a sphere's surface. The shortest path between any two points on Earth follows a great circle arc. This is why flight paths on a flat map appear curved: they're actually following the shortest route on a sphere.

Frequently Asked Questions

How do I find the distance between two cities?
Type each city into the Point A and Point B fields (or click the map). The tool shows the straight-line “as the crow flies” distance and the driving distance by road, plus the estimated drive time. For example, New York to Los Angeles is about 2,446 miles in a straight line; the road distance appears beside it once both points are set.
What's the difference between driving distance and straight-line distance?
Straight-line (“as the crow flies”) is the shortest distance between two points, ignoring roads. Driving distance follows the road network and is always longer, much longer where mountains, water, or indirect roads get in the way. This tool shows both.
Is this more accurate than Google Maps?
Neither is exact to the meter, and they use different data. Road distance here comes from OSRM on OpenStreetMap roads, so it can differ from Google's routing by a little either way. For straight-line distance, this tool computes it from the two places you enter; Google Maps can measure it too (right-click, then Measure distance), but you place the points by hand.
Can I measure distance between more than two points?
Yes. Click additional points to create a multi-stop route. The tool shows cumulative distance for all points in order. This is useful for planning delivery routes, road trips with multiple stops, or walking paths through several waypoints.
How is the driving time calculated?
Driving time is estimated by the routing engine from road types and typical free-flow speeds in the OpenStreetMap data. It does not account for current traffic, construction, weather, or other real-time factors, so expect it to run longer at rush hour.
What's the difference between "as the crow flies" and geodesic distance?
They name the same idea: the shortest distance between two points over Earth's surface. Strictly, a geodesic follows the ellipsoid and a great circle follows a sphere, and the two differ by up to about 0.56%. This tool shows the great-circle value (haversine formula) as the straight-line distance.
Can I use this for flight mile calculations?
For the distance itself, yes: enter the two airports and read the great-circle distance, in statute and nautical miles. How many miles a loyalty program credits for a flight depends on that program's own rules, so check those before you count on a figure.
Does this work for measuring distances overseas?
Straight-line distance works worldwide, from any point to any other point on Earth. Road distance requires a connected road network, so it works within continents but not across oceans. For example, you can get road distance from Madrid to Moscow, but not from New York to London.
What is the 150 air-mile exemption for trucking?
The FMCSA (Federal Motor Carrier Safety Administration) offers a "short-haul exemption" for commercial drivers who operate within 150 air miles of their work reporting location and meet other requirements. These drivers don't need electronic logging devices (ELDs). The key is that it's 150 air miles(straight-line distance), not road miles, and our straight-line measurement shows exactly this.
How accurate is the distance measurement?
Straight-line distance uses the haversine formula on a sphere (radius 6,371 km), which stays within about 0.56% of the WGS 84 ellipsoid at any range: up to 56 m on 10 km. Road distance depends on OpenStreetMap's road data and OSRM's routing where you are.
What does “as the crow flies” mean?
“As the crow flies” is the straight-line distance between two points: the shortest possible path, ignoring roads, rivers, and terrain. It is the same as the great-circle distance on a globe. This tool shows it as the blue dashed line, in miles, kilometers, and nautical miles.
Is flight distance the same as straight-line distance?
Almost. The straight-line (great-circle) distance is the shortest possible distance between two points, so it is the minimum a flight could cover. A real flight path is usually a little longer because of departure and arrival routing and air-traffic control, so use the straight-line figure as a lower bound rather than the exact flight distance.
What is an air mile?
An air mile is another name for a nautical mile. One air mile = one nautical mile = 1.852 km = 1.15078 statute miles. The straight-line result on this tool shows the distance in nautical (air) miles alongside statute miles and kilometers.
What is the DOT 150 air-mile rule?
Under 49 CFR 395.1(e)(1), certain short-haul drivers who stay within a 150 air-mile radius of their work-reporting location may keep simpler records. 150 air miles equals 172.6 statute miles. This tool shows air-mile distances for reference only; it is not compliance advice. Verify eligibility against the FMCSA regulation.