NumerSpace

Categories

Finance & InvestmentHealth & FitnessWork & CareerTime & DateMarketing & AnalyticsMath & ConvertersEducation & ProductivityHome & LivingClothing & SizingPetsVehicle & TravelFaithAstrologyTax & BillsUnit Converters
Blog
Cars & Travel

Distance Calculator

Pick a country and city for the start and the end to see the straight-line distance in km and miles.

From
To

Why Distance Matters in Travel Planning

Straight-line distance gives you a quick way to compare how far apart two cities are. For planning a trip, the actual route, time and cost matter; the road distance is always equal to or longer than the straight-line distance.

Well-Known Routes Worldwide: Straight-Line Distance

RouteStraight line
New York–Los Angeles~3,940 km
London–Paris~340 km
Tokyo–Osaka~400 km
Sydney–Melbourne~710 km
Dubai–Abu Dhabi~100 km
Berlin–Munich~500 km
Madrid–Barcelona~500 km
Cairo–Alexandria~180 km
Mumbai–Delhi~1,150 km
São Paulo–Rio de Janeiro~350 km

Convert Distance to Fuel Cost

Once you know the distance, use the Fuel Consumption Calculator to see how many litres you'll need and what the trip will cost. Enter the distance and your vehicle's average consumption.

What Is the Haversine Formula?

The Haversine formula calculates straight-line (as-the-crow-flies) distance. It treats Earth as a sphere and returns the arc length between two coordinate points. This is more accurate than measuring on a flat map, and the gap grows over long distances. The line between New York and London looks horizontal on a flat map, but in reality it arcs northward over the North Atlantic.

How Is the Distance Between Two Locations Calculated?

The calculator takes the latitude and longitude of the two cities you pick and uses the Haversine formula to find the shortest surface distance between them: d = 2R × arcsin(√(sin²(Δφ/2) + cos φ₁ × cos φ₂ × sin²(Δλ/2))). Here φ is latitude, λ is longitude and R is Earth's mean radius (6,371 km). The result is in km; dividing by 1.609344 gives miles.

How to Use the Distance Calculator?

In the "From" section pick the country and city or town for the start, then do the same for the end in the "To" section. The result appears in km and miles as soon as you choose. Use the ↕ icon in the middle to swap the two locations.

What Is the Difference Between Flight Distance and Driving Distance?

Flight distance (as the crow flies) is the length of the straight line between two points. It ignores obstacles such as mountains, rivers or buildings. Driving distance is usually longer because it follows the actual road network, bridges and passes. For example, with the calculator's data Istanbul–Ankara is about 340 km as the crow flies; the road distance is longer.

Frequently Asked Questions

No. For each end you pick a country and then a city or town from the list, and the two ends can be in different countries. There is no address search. The calculation uses the stored coordinates of the place you pick. City data is missing for a few small countries.

Related Tools