CalcCards

Distance Calculator: Know the Real Distance Between Any Two Cities

Updated Apr 10, 2026

Distance Calculator

Results

Distance (miles)3,461
Distance (km)5,569
Nautical Miles3,008
View saved →

Embed

Add this to your site

<iframe
  src="https://calc.cards/embed/travel/distance-calculator"
  width="600"
  height="700"
  frameborder="0"
  loading="lazy"
  title="Calc.Cards calculator"
  style="border:1px solid #e0e0e0;border-radius:8px;max-width:100%;"
></iframe>

Free with attribution. The Distance Calculator runs entirely inside the iframe.

Branded

Customize & brand for your site

Get the Distance Calculator as a self-contained widget styled with your colors and logo. No iframe, no Calc.Cards branding.

  • Brand color palette (auto-extract from your URL)
  • Your logo, your typography
  • Clean HTML/CSS/JS you can drop on any page
  • Lifetime updates if the formula changes
Brand this calculator — $199

Need something different? Build a fully custom calc

You're Planning a Road Trip. But How Far Are You Really Driving?

You glance at a map and think, "Denver to Las Vegas looks close." But is it? On a flat map projection, distances lie. Reality is more complicated. A distance calculator strips away the guesswork and gives you two numbers that matter: the straight-line distance (great-circle) and the actual driving distance accounting for roads, terrain, and routing. The difference between those two numbers often surprises travelers, and saving 150 miles on a long drive saves money, time, and frustration.

What This Calculator Does

This distance calculator computes both straight-line distance (the shortest path across Earth's surface) and driving distance (the actual road you'll take). The straight-line distance uses the Haversine formula to find the great-circle distance between two geographic coordinates, useful for understanding map projections and what an aircraft would fly. The driving distance uses routing algorithms to find the fastest highway route, accounting for major roads, traffic patterns, and geography. Together, these two numbers tell you how close places really are and what to expect on the ground.

How to Use This Calculator

Start by entering two city names (or addresses for more precision). The calculator automatically retrieves the latitude and longitude for each location.

For straight-line distance, you'll see the great-circle distance, the shortest path if you could travel in a perfectly straight line across Earth's surface. This number never changes based on roads or routing; it's pure geography. It's useful for understanding how airlines route flights, and it often surprises people: Denver to Las Vegas is about 750 miles straight-line, but driving there is closer to 950 miles because roads don't go in perfectly straight lines.

For driving distance, the calculator uses routing data to show the fastest highway route. This number varies based on road types (interstate vs. local roads), terrain, and sometimes alternate routing options depending on traffic patterns or preferences (scenic vs. fastest).

Enter your two cities, and you'll instantly see both distances. Use the straight-line number to understand true geography; use the driving distance to plan fuel, time, and rest stops.

The Formula Behind the Math

Straight-line distance uses the Haversine formula:


a = sin²(Δlat/2) + cos(lat1) × cos(lat2) × sin²(Δlon/2)
c = 2 × atan2(√a, √(1−a))
d = R × c

Where:

Δlat and Δlon are the differences in latitude and longitude (in radians)
R is Earth's radius: 6,371 kilometers (3,959 miles)
The result d is the great-circle distance

Example: Boston (42.36°N, 71.06°W) to Miami (25.76°N, 80.19°W):

Δlat = 16.6° = 0.289 radians
Δlon = 9.13° = 0.159 radians
a = sin²(0.145) + cos(0.739) × cos(0.450) × sin²(0.0795) ≈ 0.0356
c = 2 × atan2(√0.0356, √0.9644) ≈ 0.361 radians
d = 6,371 × 0.361 ≈ 1,300 km (1,300 miles)

Driving distance is calculated using routing algorithms that find the fastest highway route and sum segment distances. There's no simple formula because routing depends on actual road networks, which vary by region and change over time. Our calculator does all of this instantly, but now you understand exactly what it's computing.

Straight-Line vs. Driving Distance: Why Roads Matter

The difference between great-circle distance and driving distance reveals how much Earth's geography constrains us. On a straight line, Denver to Las Vegas is 750 miles. But you can't drive through mountains and desert in a perfectly straight line; the actual highway route is 950 miles. That's 200 extra miles, or roughly 3 extra hours of driving. A distance calculator makes this clear before you commit to a road trip and pack your car.

For shorter distances (under 100 miles), straight-line and driving distances are usually similar; roads are abundant and direct. For longer distances, the gap widens. San Francisco to Los Angeles is about 280 miles straight-line but 380 miles by car (because the coast curves, and you follow I-5 inland). Understanding this difference prevents shock at the pump.

International Distances and Border Crossings

When calculating distances across borders, remember that driving routes must follow legal roads. A distance calculator might show the straight-line distance between Seattle and Vancouver as 140 miles, but the actual drive is 220+ miles because you have to follow highways and account for border crossings. If you're planning an international road trip, always use the driving distance and budget extra time for border procedures.

Comparing Road Trip Routing Options

Some routes offer choices. You might drive Los Angeles to San Francisco via I-5 (inland, fast, 380 miles) or US-1 (scenic coastal, longer, slower). A distance calculator shows you the fastest route by default, but if you know alternate routes exist, ask the calculator to show those options too. Scenic routes add 10–30% to distance but often offer views worth the extra time.

Tips and Things to Watch Out For

Straight-line distance is not driving distance. Maps often display straight-line distances, which mislead travelers. Always check the driving distance before planning fuel stops, rest breaks, or time estimates. A trip that looks "close" on a map might require 4+ extra hours by car.

Driving distance varies by route and season. Mountain passes may be closed in winter; flooding or construction can alter routes seasonally. Our calculator shows the current optimal route, but always check for current road conditions before departing on long drives.

Elevation and terrain slow you down. Driving distance assumes reasonable speed; mountains, winding roads, and unpaved sections slow you considerably. Budget extra time for mountain drives even if the distance looks modest.

International routes require passport and border planning. A distance calculator shows you the shortest route, but border crossings can add 1–2 hours (or more for busy crossings). Factor this into your travel time and have appropriate documents ready.

City-to-city distance ignores local navigation. The distance from downtown Boston to downtown Miami is one thing; factoring in local traffic, parking, and navigation within each city adds 30–60 minutes. Budget extra time for urban areas.

Frequently Asked Questions

Why is driving distance longer than straight-line distance?

Because roads don't go in straight lines. They follow geography, property boundaries, and established infrastructure. Straight-line distance is the shortest possible path; driving distance follows actual highways and roads.

How accurate is the driving distance calculator?

Driving distances are accurate to within 5–10 miles for most routes. Real conditions (traffic, detours, construction) can vary the actual distance you drive, but the calculator gives you a solid baseline for planning.

Can I see multiple route options in the distance calculator?

Some routes offer multiple options (e.g., scenic vs. fastest). When available, the calculator shows these; check if alternate routes are listed. You can also manually compute distances for alternative routes if they're significantly different.

Does the distance calculator account for tolls?

The distance calculator shows physical distance; toll costs are calculated separately. Use your distance result with fuel cost and toll road information to calculate total trip cost.

How do I plan a multi-stop road trip?

Calculate distance between each leg separately, then sum them. For a Boston-to-Miami trip with stops in Charlotte and Savannah, calculate Boston→Charlotte, Charlotte→Savannah, and Savannah→Miami separately, then add them together.

Is great-circle distance the same as flight distance?

Close, but not identical. Aircraft must follow airways and air traffic control routes, not perfect great-circle paths. But great-circle distance is an excellent approximation for flight distance and typically within 2–5% of actual flight routing.

What if I want to calculate distance between non-city locations?

Enter the address, coordinates, or landmark name. The calculator looks up the geographic position and computes distance from there. For precision, address-to-address calculations are more accurate than city names alone.

Related Calculators

Once you know the distance, use the road trip cost calculator to estimate fuel costs, the flight time calculator to compare flying versus driving, and the travel budget calculator to factor in accommodation and meals for multi-day drives. A distance calculator is often the first step in a complete trip plan.

Related Calculators