Math Last updated: July 2026

Great Circle Calculator

The Great Circle Calculator computes the shortest distance and initial bearing between any two points on Earth using the Haversine formula. Enter latitude/longitude coordinates to find the great circle distance in kilometers, miles, or nautical miles.

How to Use the Great Circle Calculator

Interactive calculator available after JavaScript loads.

Loading calculator...

Written by Calculator Archive Team

Math & Finance Experts — Verified Formulas, Peer-Reviewed Sources, Expert Analysis

Looking for a deeper explanation?

Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.

Read Blog Guide ›

Mathematical Formula & Logic

d = 2R × arcsin(√(sin²((φ₂—φ₁)/2) + cos(φ₁)cos(φ₂)sin²((λ₂—λ₁)/2)))
Variable Glossary
d Great circle distance between the two points
R Earth's radius (6,371 km or 3,958.8 mi)
φ₁, φ₂ Latitudes of the two points (in radians)
λ₁, λ₂ Longitudes of the two points (in radians)
θ Initial bearing (forward azimuth) from Point A to Point B

Step-by-Step Worked Calculation

Scenario: Example: New York to London

Calculate the great circle distance from New York City (40.7128°N, 74.0060°W) to London (51.5074°N, 0.1278°W).

1

Step 1: Convert coordinates to decimal degrees: NY = (40.7128, —74.0060), London = (51.5074, —0.1278).

2

Step 2: Convert to radians: φ₁ = 0.7105, λ₁ = —1.2918, φ₂ = 0.8989, λ₂ = —0.0022.

3

Step 3: Calculate —φ = 0.8989 — 0.7105 = 0.1884, —λ = —0.0022 — (—1.2918) = 1.2896.

4

Step 4: Apply Haversine: a = sin²(0.0942) + cos(0.7105) × cos(0.8989) × sin²(0.6448) ≈ 0.01948.

5

Step 5: d = 2 × 6371 × arcsin(√0.01948) ≈ 2 × 6371 × 0.1397 ≈ 5,555 km ≈ 3,452 miles.

How to Use the Great Circle Calculator

  1. 1. Enter the latitude of Point A (in decimal degrees, -90 to 90).
  2. 2. Enter the longitude of Point A (in decimal degrees, -180 to 180).
  3. 3. Enter the latitude of Point B.
  4. 4. Enter the longitude of Point B.
  5. 5. Click "Calculate" to find the distance and initial bearing.

What Is a Great Circle Calculator?

A great circle is the largest possible circle that can be drawn on a sphere, created by passing a plane through the sphere's center. The shortest path between any two points on a sphere follows the great circle connecting them. On Earth, this is the path airplanes and ships follow for optimal routing.

Why This Calculation Matters

Great circle calculations are essential for aviation (flight route planning), maritime navigation, telecommunications (satellite positioning), GPS systems, GIS mapping, and any application involving distances on a spherical surface.

Historical Background

The concept dates back to ancient Greek geometry. Claudius Ptolemy used great circle principles in his Almagest (150 CE). The Haversine formula, preferred for numerical stability, was popularized by Sinnott in 1984 but was known to early navigators.

Common Mistakes to Avoid

  • Using degrees instead of radians in trigonometric functions
  • Confusing latitude and longitude order (lat first, then long)
  • Using planar distance formulas (Pythagorean theorem) for spherical geometry
  • Forgetting that west longitudes are negative in decimal degrees

Frequently Asked Questions

Complete indexable directory of answers (22 questions)

What is a great circle?

A great circle is the largest circle that can be drawn on a sphere. It is formed by the intersection of the sphere and a plane passing through its center. On Earth, the equator and all lines of longitude are great circles, but lines of latitude (except the equator) are not.

Why use the Haversine formula instead of simple Pythagorean distance?

The Pythagorean theorem gives correct results only on flat surfaces. On a sphere, the shortest path curves along the surface (great circle arc), not a straight line through the interior. The Haversine formula accounts for Earth's curvature.

How accurate is the Haversine formula?

The Haversine formula assumes a perfect sphere with radius 6,371 km. Earth is actually an oblate spheroid, so the formula has up to 0.5% error (about 0.5 km per 100 km). For most applications, this is sufficient. For surveying-grade accuracy, use Vincenty's formula.

What is the difference between great circle and rhumb line?

A great circle is the shortest path but changes bearing constantly. A rhumb line (loxodrome) follows a constant compass bearing but is a longer path. For long distances, great circle routes save significant distance.

How do I convert decimal degrees to radians?

Multiply degrees by π/180. For example, 40.7128° = 40.7128 × π/180 ≈ 0.7105 radians. Negative values (west/south) remain negative in radians.

What Earth radius should I use?

The standard mean radius is 6,371 km (3,958.8 mi or 3,440.1 nmi). For higher precision at specific latitudes, the WGS-84 ellipsoid provides radius values from 6,357 km (poles) to 6,378 km (equator).

How do I find the bearing between two points?

The initial bearing θ = atan2(sin(—λ)cos(φ₂), cos(φ₁)sin(φ₂) — sin(φ₁)cos(φ₂)cos(—λ)). Convert the result from radians to degrees and normalize to 0°—360° (add 360° if negative).

Can I use this calculator for any celestial body?

Yes, by changing the radius R. For Mars, use R ≈ 3,389.5 km. For the Moon, R ≈ 1,737.4 km. For any spherical body, substitute the appropriate radius into the Haversine formula.

Why is the great circle route not a straight line on flat maps?

Flat maps (like Mercator projection) distort the sphere onto a plane. Great circles appear as curves on most projections. On a Mercator map, a great circle route looks curved, while a straight line (rhumb line) is actually longer.

What is the maximum possible great circle distance?

The maximum distance is half the circumference: π × R ≈ 20,004 km ≈ 12,427 miles. This occurs between antipodal points (directly opposite on the sphere, like the North and South Poles).

How do airlines use great circle routes?

Airlines plan routes along great circle paths because they are the shortest distance, saving fuel and time. However, they also consider jet streams, weather, political airspace restrictions, and emergency diversion airports.

What is the difference between nautical miles and regular miles?

One nautical mile (nmi) equals exactly 1,852 meters and corresponds to one arcminute of latitude. It is the standard unit in navigation. One nmi ≈ 1.151 statute miles ≈ 1.852 km.

How does altitude affect great circle distance?

The standard formula uses Earth's mean radius. At altitude h above the surface, the effective radius becomes R + h. For aircraft at 35,000 ft (10.7 km), the correction is about 0.17%, which is usually negligible.

Can the great circle pass over the poles?

Yes. Routes between cities at similar longitudes but different hemispheres (e.g., New York to Bogotá) often pass near or over the North/South Pole. This is why polar routes are common for transpolar flights.

How do I handle longitude wrapping at ±180°?

When the longitude difference exceeds 180°, subtract from 360° to get the shorter arc. For example, if —λ = 350°, use —λ = 360° — 350° = 10° instead, as the shorter path crosses the antimeridian.

What is the great circle distance across the equator?

For points on the equator, the great circle follows the equator itself. The distance is simply —λ × R, where —λ is the longitude difference in radians. For example, 90° along the equator ≈ 10,008 km.

How accurate does my coordinate input need to be?

Decimal degrees with 4-5 decimal places provide accuracy to about 1 meter (0.00001° ≈ 1.1 m). For most distance calculations, 2 decimal places (≈ 1 km accuracy) is sufficient. GPS coordinates typically have 6-8 decimal places.

Is the great circle always shorter than the rhumb line?

Yes, the great circle is always the shortest path on a sphere. The only exception is when both paths have the same length, which happens when the rhumb line follows a great circle (e.g., along the equator or a meridian).

How do I calculate distance on an ellipsoid instead of a sphere?

For higher accuracy on Earth's oblate spheroid, use Vincenty's formulae or the Karney algorithm. These account for Earth's equatorial bulge and provide accuracy to within millimeters. The Haversine formula is sufficient for most purposes.

What mathematical formula does the Great Circle Calculator use?

The Great Circle Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.

How can I verify the Great Circle Calculator results manually?

Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.

What types of inputs does the Great Circle Calculator accept?

The Great Circle Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.