Distance Between Cities

The calculator computes the straight-line distance between two cities from the list. The distance between Warsaw and Kraków is 252 km. This is not a road route and not travel time.

The result is a straight line. Time from a distance is on travel time. Kilometers and miles alone are on kilometers and miles.

Inputs

Result

Enter two cities from the list. The result will appear here.

How it works

The calculator uses the coordinates of two cities from the list and computes a haversine distance with a 6371 km radius. The distance between Warsaw and Kraków is 252 km.

The distance between Gdansk and Wroclaw is 376.6 km. The distance between Poznan and Lublin is 408.6 km. That is a straight line, not a highway.

A name that is not on the list is not accepted. Warsaw and Warszawa are the same record. Krakow and Cracow point to Kraków.

This is not a map, not GPS, and not travel time. To get hours, enter that distance on the travel-time page.

The second result is miles. The international mile is 1.609344 km. Warsaw to Krakow is 156.6 miles.

The same name in both fields gives 0 km, because the coordinates match.

Formula

d = 2R arcsin(√(sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2))), R = 6371 km

φ and λ are latitude and longitude in radians. The result is a straight line.

How to use

  1. In City A enter Warsaw or Warszawa.
  2. In City B enter Krakow or Kraków.
  3. Calculate. The result is 252 km and 156.6 miles.
  4. To get 376.6 km, enter Gdansk and Wroclaw.

252 km from Warsaw to Krakow

A straight line is shorter than a road. 252 km is haversine, not the A4.

252 km
Warsaw to Krakow in a straight line.
376,6 km
Gdansk to Wroclaw in a straight line.
R
6371 km. The mean Earth radius in this formula.

Examples

Example 1

  • City A: Warsaw
  • City B: Krakow

156.6 mi

How far is Warsaw from Krakow? 156.6 miles in a straight line.

Example 2

  • City A: New York
  • City B: Los Angeles

2445.6 mi

How far is New York from Los Angeles? 2445.6 miles in a straight line, 3935.7 km.

Example 3

  • City A: London
  • City B: Paris

213.5 mi

How far is London from Paris? 213.5 miles in a straight line.

Related calculators

Frequently asked questions

How far is Warsaw from Krakow?

252 km in a straight line. That is haversine with a 6371 km radius, not the A4 road.

How far is Gdansk from Wroclaw?

376.6 km in a straight line. A road route is often longer, because the calculator does not build a route.

Is this driving distance?

No. The result is a straight line. Travel time and fuel use are on other pages and need a distance you enter yourself.

Where do the cities come from?

From the list in the calculator: cities in Poland and larger cities worldwide. A name that is not on the list is not accepted.

Can I type Warsaw instead of Warszawa?

Yes. The alias is the same record. Krakow and Cracow also point to Kraków.

What if I pick the same city twice?

The result is 0 km. It is the same pair of coordinates.

Is a comma in the result an error?

No. The Polish page writes 376,6 km for 376.6 km. Miles are in the second field.

Which Earth radius is in the formula?

6371 km. That is a mean radius, not the WGS 84 ellipsoid.

Is this a map or GPS?

No. The calculator does not draw a route and does not use live traffic.

How many miles is Warsaw to Krakow?

156.6 miles. The international mile is 1.609344 km.

Sources

Haversine distance uses a mean Earth radius. This is not a highway table.

Page updated in 2026.