OnlineMapMaker logo

Globe Distance Calculator — Measure Distance on a Real 3D Earth

Search two places or click directly on a spinning 3D globe to drop two pins, and watch the great-circle distance appear as a glowing arc between them. Free, no sign-up, works in any modern browser. Open fullscreen ↗

Rate this tool:
Advertisement
Advertisement
Loading globe…
Need assistance with your GIS project?Explore Our Services

What Is a Globe Distance Calculator?

Most distance tools show you a flat map. That is useful, but a flat map always bends the truth a little, because the Earth is not flat. This tool skips that problem completely: it draws a real 3D sphere, lets you place two points anywhere on it, and measures the distance the same way a plane or a ship actually has to travel.

Set your two points in any of three ways:

  • Search — type two place names or addresses into the From and To boxes.
  • Use GPS — set your current location as the starting point with one tap.
  • Click the globe — drop a pin anywhere on the sphere by clicking it directly.

The tool then draws the shortest path between your two points as an arc rising above the surface, and shows you the exact distance in kilometres, miles, and nautical miles.

How the Great-Circle Distance Is Calculated

The tool uses the Haversine formula, the same method used across this site's other distance tools, to calculate the great-circle distance between your two points using the Earth's average radius. The glowing arc you see on the globe is not just decoration: it follows the same curved path the formula measures, rising higher above the surface the further apart your two points are, so you can see at a glance whether you are measuring a short hop or a trip halfway around the world.

Who Uses a Globe Distance Calculator?

🌍
General Curiosity
Just want to know how far it really is from your city to the other side of the planet? Drop two pins and find out.
🏃
Endurance Sports & Records
Compare a planned ocean row, swim, or circumnavigation route against the true great-circle distance.
🚢
Shipping & Logistics
Estimate great-circle shipping distances between ports before diving into a full routing service.
🎓
Geography Education
Teachers and students can see exactly why a flat map distorts distance near the poles, using a shape that cannot lie: an actual sphere.
📡
Radio & Satellite Planning
Check the line-of-sight distance between two ground stations or antenna sites anywhere on the globe.
✈️
Flight & Travel Planning
Get a quick, honest sense of how far a flight actually is, since airlines fly great-circle routes, not the straight line you would draw on a flat map.

Frequently Asked Questions

What is a great-circle distance?
A great-circle distance is the shortest path between two points on the surface of a sphere. It follows the curve of the Earth rather than a straight line on a flat map, which is why it is also called "as the crow flies" distance measured correctly. This is the same calculation used by pilots and ship navigators.
Does this tool work on mobile?
Yes. Drag to rotate and pinch to zoom both work with touch, and the layout adjusts to fit smaller screens automatically.
What is the difference between this and the flat Measure Distance tool?
The flat Measure Distance tool also shows road driving distance, which only makes sense on a 2D map with real roads. This globe tool focuses purely on the great-circle distance and gives you a true 3D sense of scale, which is especially useful for long international distances where a flat map badly distorts the picture.
Is my searched location stored anywhere?
No. Address searches are sent to OpenStreetMap's Nominatim service only to find coordinates, and your GPS location never leaves your device except when you explicitly use the "My location" button. Nothing is saved on our servers.
Can I measure the distance to a place on the exact opposite side of the Earth?
Yes, though the arc between two antipodal points (exact opposites) can take infinitely many equally short paths, so the tool draws one of them. The distance shown is still correct: it will be close to the Earth's half-circumference, about 20,000 km.
Can I click directly on the globe instead of typing an address?
Yes. Click the "Click globe" button next to either the From or To field, then click anywhere on the sphere to drop that pin at the exact coordinates you clicked.
Why does the arc bulge above the globe instead of following the surface?
The bulge is a visual choice, not a measurement. Lifting the arc above the surface makes long-distance paths far easier to see and follow with your eye, especially when the two points are on opposite sides of the planet. The distance number itself is always calculated along the true surface of the sphere, not the visual arc.
How accurate is the distance shown?
The tool uses the Haversine formula with the Earth's average radius, which is accurate to within about 0.5% for almost any two points on Earth. For most planning purposes, that level of accuracy is more than enough.
Advertisement
Advertisement

Why Measure Distance on a Globe Instead of a Flat Map?

Flat maps use a projection, and every projection distorts something.

Two distortions show up again and again on flat maps:

  • Poles look oversized — countries near the poles appear far bigger than they really are.
  • Edges stretch distances — areas near the edge of a flat projection get pulled out of proportion.

A globe has no projection to worry about, because it is already the right shape. The distance you see here is the true great-circle distance: the shortest path between two points on the surface of a sphere, which is exactly how airlines and ships actually plan routes.

Watch: Globe Distance Calculator in About 2 Minutes

Prefer to watch instead of read? This short walkthrough covers dropping two pins on a real 3D globe and reading the great-circle distance between them.

Advertisement
Advertisement

Straight-Line Distance vs. Globe Distance: Why They Are Not the Same Number

Ask someone the distance between London and Tokyo, and most people picture a single straight line stretched across a map. But there are actually two different "straight" answers, and for two cities this far apart they differ by hundreds of kilometres: the straight-line distance through the Earth, and the globe distance along its curved surface, which is what this tool calculates.

The Straight Line: A Tunnel Through the Earth

The straight-line distance is the shortest possible path connecting two points in three-dimensional space, drawn as a perfectly straight rod. For any two points on a sphere, that rod cuts directly through the interior — tunnelling beneath the crust, through the mantle, and in extreme cases close to the core. Nobody can travel this way, but the number is still mathematically real. Geometers call it the chord distance, and because a straight line is always the shortest distance between two points in flat space, the chord distance is always shorter than any path measured along the surface.

chord = 2R × sin(θ/2)

R = Earth's radius · θ = angular separation between the two points, as seen from Earth's centre

The Globe Distance: The Path That Actually Matters

The globe distance, also called the great-circle distance, is the shortest path a traveller confined to the Earth's surface can take. It is the arc formed by slicing the globe with a plane that passes through both points and the planet's centre. This is the number pilots, ship navigators, and this tool all care about, because it reflects a route someone can actually fly, sail, or walk.

arc = R × θ

Same radius, same angle — but measured along the curve instead of straight through it

The Math Behind the Gap, and Why It Grows With Distance

For two points that are close together, the straight-line distance and the globe distance are almost identical, because for a small angle θ, sin(θ/2) is nearly equal to θ/2. Earth's curvature simply does not have room to bend much over a short hop. But as θ grows, the two numbers pull apart, because the straight line increasingly "cuts the corner" while the arc has to follow the curve all the way around.

See how the gap grows with distance:

  • London to Paris (~344 km) — virtually identical either way; the difference only shows up several decimal places in.
  • New York to Sydney — about a third of the way around the planet, the gap is already a few hundred kilometres.
  • Antipodal points (opposite sides of Earth) — straight-line ≈ 12,742 km (Earth's diameter), globe distance ≈ 20,015 km (half the circumference): a gap of about 7,273 km.

Mathematically, the ratio between the two never drops below 2/π, or about 63.7%, no matter how far apart the points are. That is the absolute floor: the straight-line distance can never fall below about two-thirds of the globe distance, even at the most extreme possible separation.

Why This Tool Reports the Globe Distance

Given a choice between two valid numbers, this tool always shows the globe distance rather than the straight-line chord. The chord distance, while mathematically correct, describes a path nothing can travel: no flight, ship, or cable route runs straight through the Earth's mantle. The globe distance describes the real shortest path along the surface, the same geometry airlines use to plan long-haul routes and the same one drawn as the arc on the globe in this tool.

The Haversine Formula, Explained

Where the Formula Comes From

The name comes from the haversine function itself: hav(θ) = sin²(θ/2), a quantity that dates back to 19th-century navigation manuals, long before calculators or computers existed. Sailors and surveyors needed a version of spherical trigonometry that stayed well-behaved when computed by hand with logarithm tables, and the haversine form of the spherical law of cosines does exactly that. It is mathematically equivalent to the more familiar cosine-based formula, just rearranged into a form that is far more forgiving of small rounding errors, which matters just as much on a modern computer's floating-point arithmetic as it once did on paper.

The Formula, Step by Step

Given two points by latitude and longitude, in radians, the calculation runs in four steps:

Δφ = φ₂ − φ₁
Δλ = λ₂ − λ₁
a = sin²(Δφ/2) + cos(φ₁) · cos(φ₂) · sin²(Δλ/2)
c = 2 · atan2(√a, √(1 − a))
d = R · c

φ = latitude · λ = longitude · R = Earth's mean radius (6,371 km) · d = great-circle distance

The variable a is the square of half the chord length between the two points, expressed as a fraction of the sphere's radius. Taking its square root and running it through atan2 converts that chord fraction into the actual central angle c, in radians, and multiplying by Earth's radius R turns that angle into a real-world distance.

Why atan2 Instead of a Simple Arcsine

An older, shorter version of this formula uses c = 2 · asin(√a) instead of atan2(√a, √(1−a)). Both give the same answer for the vast majority of cases, but asin becomes numerically unreliable as √a approaches 1, which happens when the two points are close to antipodal, on opposite sides of the planet. The atan2 form stays accurate across the entire range, from two points a metre apart to two points on exact opposite sides of the Earth, which is why this tool uses it.

Why Haversine Beats the Naive Spherical Law of Cosines

The spherical law of cosines calculates the same distance as cos(c) = sin(φ₁)sin(φ₂) + cos(φ₁)cos(φ₂)cos(Δλ), then takes c = acos(...) directly. This is shorter to write, but it has a serious weak point: for two points that are close together, cos(c) comes out very close to 1, and the acos function is extremely sensitive to tiny errors near that value, so a floating-point rounding error of a few parts in 10¹⁵ can turn into a distance error of several metres or more. The haversine formula sidesteps this entirely because it works with sin² near zero, where floating-point arithmetic is well-behaved, rather than acos near 1, where it is not. For two nearby cities, that is the difference between a distance accurate to millimetres and one that can be off by a city block.

A Worked Example: London to Paris

Plugging in real coordinates makes the formula concrete. London sits at 51.5074°N, 0.1278°W; Paris sits at 48.8566°N, 2.3522°E. Converting to radians and working through the four steps above gives a ≈ 0.000727, c ≈ 0.0539 radians, and d = 6,371 km × 0.0539 ≈ 344 km along the great circle, matching the figure used earlier on this page.

What the Formula Assumes, and Where It Falls Short

The Haversine formula assumes Earth is a perfect sphere, but it is not. Earth is an oblate spheroid, bulging very slightly at the equator and flattened at the poles: its equatorial diameter is about 42.8 km larger than its pole-to-pole diameter, a flattening of roughly 1 part in 298. Because of this, the spherical Haversine formula can be off by up to about 0.5% depending on the direction and location of the two points measured, compared with a full ellipsoidal calculation. Geodesists have more precise alternatives, most notably Vincenty's formulae, which model Earth as the WGS84 reference ellipsoid rather than a sphere and get accuracy down to millimetres. Full ellipsoidal geodesy is what professional surveying and aviation-grade GIS systems use. For a browser-based distance calculator like this one, though, the extra complexity is rarely worth it: a 0.5% error on a 10,000 km flight is about 50 km, small enough that it does not change any practical decision, and the Haversine formula runs instantly with none of the edge-case convergence issues that iterative ellipsoidal methods can hit near antipodal points.

How to Use the Globe Distance Calculator

Step 1: Wait for the Globe to Load
1
Step 1
Wait for the Globe to Load
The tool loads a real map onto a 3D sphere. This takes a moment on first load while the base map tiles are fetched, and then the globe is ready to use.
Step 2: Set Your From Point
2
Step 2
Set Your From Point
Type an address, city, or place name in the From box and press Go, click "Use my location" for GPS, or simply click anywhere on the globe to drop your first pin.
Step 3: Set Your To Point
3
Step 3
Set Your To Point
Do the same for the To box, or click a second spot on the globe. The camera glides in to frame each point as soon as you set it.
Step 4: Read the Distance
4
Step 4
Read the Distance
As soon as both points are set, a glowing arc appears between them and the distance panel shows the result in kilometres, miles, and nautical miles.
Step 5: Rotate and Zoom
5
Step 5
Rotate and Zoom
Drag anywhere on the globe to spin it, and scroll or pinch to zoom in and out, so you can see both points clearly from any angle.
Step 6: Export the Result
6
Step 6
Export the Result
Click Export GeoJSON to download both points and the distance as a GeoJSON file you can open in QGIS, Mapbox, or any GIS software.
Advertisement
Advertisement

Related Tools

Rendered with three.js entirely in your browser. No location you search or click is ever stored on our servers.

Muhammad Gulraiz Khan, GIS Expert and Founder of KONAKTIVE and OnlineMapMaker.com

About the Author

Muhammad Gulraiz Khan

GIS Expert & Consultant · Founder, KONAKTIVE

Muhammad Gulraiz Khan is a GIS expert with over a decade of professional experience delivering geospatial solutions for the energy sector, including projects for the World Bank, the International Finance Corporation (IFC), and USAID. He built OnlineMapMaker.com to make professional-grade mapping tools free and accessible to everyone.

Advertisement
Advertisement