Home · Math · Plane Geometry · Great Circle Calculator

Great Circle Calculator

Great-circle (shortest surface) distance between two latitude/longitude points on a spherical Earth of radius 6,371 km.

Your figures

Example result — edit the figures to make it yours

10,007.5

Great-circle distance

Great-circle distance6,218.4 mi

What this calculator does

Great-circle (shortest surface) distance between two latitude/longitude points on a spherical Earth of radius 6,371 km. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

d = 2R asin( sqrt( sin^2(dlat/2) + cos(lat1) cos(lat2) sin^2(dlon/2) ) )

The haversine formula gives the central angle between the two points on a sphere; multiplying by Earth's mean radius R = 6,371 km gives the surface distance along the great circle, the shortest path over the surface. Latitudes and longitudes are entered in degrees, south and west negative. All angles are in degrees; trigonometric outputs use the degree-based functions so no radian conversion is needed.

Earth is treated as a sphere; the real ellipsoid makes results differ by up to about 0.3%. This is surface distance, not a flight time or route.

Worked example

With the example inputs this page opens with (latitude 1 (deg) 0, longitude 1 (deg) 0, latitude 2 (deg) 0, longitude 2 (deg) 90), the result is 10,007.5 — great-circle distance. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying latitude 1 (deg)
Latitude 1 (deg)Great-circle distance
010,007.5
110,007.5
210,007.5
510,007.5
1010,007.5

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Great Circle Calculator work?

Great-circle (shortest surface) distance between two latitude/longitude points on a spherical Earth of radius 6,371 km. Point 1 lat/lon - Point 2 lat/lon -> Distance (km). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Great Circle Calculator need?

Point 1 lat/lon - Point 2 lat/lon -> Distance (km). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Great Circle Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.