Great Circle Calculator
Free Great circle Calculator for 3d geometry. Enter values to get step-by-step solutions with formulas and graphs. Enter your values for instant results.
Calculator
Adjust values & calculateFormula
Where a = sin^2(dLat/2) + cos(lat1) * cos(lat2) * sin^2(dLon/2), R is the sphere radius (6,371 km for Earth), and d is the great circle distance. This is the Haversine formula, which computes the central angle between two points and multiplies by the radius to get arc length.
Last reviewed: December 2025
Worked Examples
Example 1: New York to London Flight Distance
Example 2: Sydney to Santiago Transpacific Route
Background & Theory
The Great Circle Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.
History
The history behind the Great Circle Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.
Frequently Asked Questions
Formula
d = R * 2 * atan2(sqrt(a), sqrt(1-a))
Where a = sin^2(dLat/2) + cos(lat1) * cos(lat2) * sin^2(dLon/2), R is the sphere radius (6,371 km for Earth), and d is the great circle distance. This is the Haversine formula, which computes the central angle between two points and multiplies by the radius to get arc length.
Worked Examples
Example 1: New York to London Flight Distance
Problem: Calculate the great circle distance from New York (40.7128 N, 74.0060 W) to London (51.5074 N, 0.1278 W).
Solution: Using the Haversine formula with Earth radius = 6,371 km:\ndPhi = (51.5074 - 40.7128) = 10.7946 degrees\ndLambda = (-0.1278 - (-74.006)) = 73.8782 degrees\na = sin^2(5.3973) + cos(40.7128) x cos(51.5074) x sin^2(36.9391)\nc = 2 x atan2(sqrt(a), sqrt(1-a)) = 0.8676 radians\nDistance = 6371 x 0.8676 = 5,527.2 km\nBearing from NYC = approximately 51.2 degrees (northeast)
Result: Distance: 5,527.2 km (3,434.3 mi) | Initial bearing: 51.2 deg | Flight time: ~6.1 hrs
Example 2: Sydney to Santiago Transpacific Route
Problem: Find the great circle distance from Sydney (-33.8688, 151.2093) to Santiago (-33.4489, -70.6693).
Solution: Using Haversine with R = 6,371 km:\ndPhi = (-33.4489 - (-33.8688)) = 0.4199 degrees\ndLambda = (-70.6693 - 151.2093) = -221.8786 degrees (adjusted to 138.1214)\na = sin^2(0.2100) + cos(-33.8688) x cos(-33.4489) x sin^2(69.0607)\nc = 2 x atan2(sqrt(a), sqrt(1-a)) = 1.7505 radians\nDistance = 6371 x 1.7505 = 11,151.4 km
Result: Distance: 11,151.4 km (6,927.8 mi) | Flight time: ~12.4 hrs jet
Frequently Asked Questions
What is a great circle and why is it important?
A great circle is the largest possible circle that can be drawn on the surface of a sphere, formed by the intersection of the sphere with a plane that passes through the center of the sphere. The equator is a great circle on Earth, as are all lines of longitude (meridians). The great circle path between any two points on a sphere represents the shortest distance between those points along the surface, which is why airplanes and ships follow great circle routes for long-distance travel. This shortest path is called a geodesic. Unlike straight lines on a flat map, great circle routes often appear curved on common map projections like the Mercator projection. Understanding great circles is fundamental to navigation, aviation, telecommunications satellite coverage, and spherical geometry.
How does the Haversine formula calculate great circle distance?
The Haversine formula calculates the shortest distance between two points on a sphere using their latitude and longitude coordinates. The formula first computes the central angle between the two points using the haversine function, which is defined as hav(theta) = sin squared (theta/2). The specific formula is: a = sin squared((lat2-lat1)/2) + cos(lat1) times cos(lat2) times sin squared((lon2-lon1)/2), then c = 2 times atan2(sqrt(a), sqrt(1-a)), and finally d = R times c, where R is the sphere radius. The haversine formula is preferred over the law of cosines for small distances because it remains numerically stable even when the two points are very close together, avoiding the floating-point arithmetic problems that plague the cosine formula at short distances.
What is the initial bearing and why does it change along a great circle?
The initial bearing, also called the forward azimuth, is the compass direction you need to travel from the starting point to follow the great circle route. Unlike on a flat surface where direction remains constant along a straight line, the bearing continuously changes along a great circle path because of the curvature of the sphere. For example, a flight from London to New York starts heading roughly southwest but gradually shifts to a more westerly and then more westerly-to-southwesterly direction. The bearing formula uses arctangent of the ratio of east-west and north-south components, calculated from the coordinates of both points. This changing bearing is why navigators historically had to constantly adjust their heading during long ocean voyages. Modern autopilot systems continuously recalculate the bearing to maintain the great circle path.
How accurate is great circle distance for real Earth navigation?
Great circle calculations assuming a perfect sphere are accurate to within about 0.5 percent for most practical navigation purposes. The actual Earth is an oblate spheroid, slightly flattened at the poles with an equatorial radius of 6,378.137 km and a polar radius of 6,356.752 km. For higher precision, the Vincenty formula or Karney method use the WGS-84 ellipsoid model and achieve accuracy within 0.5 millimeters for any distance. For aviation, the spherical great circle calculation is more than adequate since winds, routing around restricted airspace, and altitude variations introduce far larger uncertainties than the spherical approximation error. For geodetic surveying and precision mapping, ellipsoidal calculations are essential. Great Circle Calculator uses the spherical model with a default radius of 6,371 km, which is the mean radius of Earth.
What is the difference between a great circle and a rhumb line?
A great circle is the shortest path between two points on a sphere, while a rhumb line, also called a loxodrome, is a path of constant bearing that crosses all meridians at the same angle. On a Mercator projection map, a rhumb line appears as a straight line, while a great circle appears curved. However, on the actual sphere, the rhumb line is longer than the great circle except when traveling along the equator or along a meridian, where both paths are identical. Historically, sailors preferred rhumb lines because maintaining a constant compass heading was much simpler than continuously adjusting course to follow a great circle. Modern GPS navigation makes following great circle routes trivial, so the fuel and time savings of the shorter path can be realized. For short distances, the difference between the two paths is negligible.
How do you find the midpoint of a great circle route?
The midpoint of a great circle route is calculated using vector mathematics on the sphere. The formula converts both endpoints from latitude and longitude to three-dimensional Cartesian coordinates, averages the vectors, and converts back to latitude and longitude. Specifically, the midpoint latitude is atan2(sin(lat1) + sin(lat2), sqrt((cos(lat1) + Bx)^2 + By^2)), and the midpoint longitude is lon1 + atan2(By, cos(lat1) + Bx), where Bx = cos(lat2) times cos(dLon) and By = cos(lat2) times sin(dLon). The midpoint is the point at which exactly half the great circle distance has been covered. This is useful for determining diversion airports for long-haul flights, finding the point where a cable or pipeline crosses a particular latitude, and for waypoint navigation. The midpoint on a great circle is not the same as the geographic midpoint on a map projection.
References
Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy