Learn & Understand

There Is No Single Answer to How Far Apart Two Points Are

In a hurry? Skip straight to the numbers.

Open the Distance Calculator →

The distance calculator offers three different formulas, straight-line in a plane, straight-line in three dimensions, and great-circle across a curved Earth, because the honest answer to "how far apart are two points?" is that it depends on the space they live in. This is a deeper idea than it first appears: distance is not a single fixed notion but a rule that can differ from one setting to another. Understanding that distance depends on the geometry of the space illuminates why the calculator must switch formulas at all.

Distance Is a Rule, Not a Constant

We tend to think of distance as an absolute, given fact, but mathematically it is a rule for assigning a number to any pair of points, and different rules are possible. A rule for measuring distance must satisfy some sensible requirements, that the distance from a point to itself is zero, that distance does not depend on direction of travel, and that a detour is never shorter than a direct route. Any rule meeting these conditions counts as a legitimate way to measure distance, and there is more than one.

Flat Space and the Straight Line

In flat space, whether a two-dimensional plane or three-dimensional space, the natural distance is the straight-line distance, the length of the direct segment between two points. This is computed by an extension of the familiar right-triangle relationship, combining the differences along each axis. Adding a third dimension simply adds another axis to combine. This straight-line rule matches our everyday intuition of distance as the length of the shortest direct path, and it is the right measure whenever space behaves flatly, like points on a graph or objects in a model.

Distance depends on the space
SpaceThe right distance
Flat plane or 3DStraight-line distance
Curved surface (Earth)Great-circle distance

Curved Space Changes the Rule

On the surface of a sphere like the Earth, the straight-line rule no longer applies, because you cannot travel in a straight line through the planet; you must move along its curved surface. The shortest path between two points on a sphere follows a great circle, and its length is found by a different formula that accounts for the curvature. Treating latitude and longitude as if they were flat grid coordinates would give a wrong answer, sometimes badly wrong over long distances. The curved space demands its own distance rule.

One Question, Many Geometries

This is why the calculator is really three tools in one, each embodying a different geometry. The choice of formula is a choice of the space the points inhabit, and that choice determines what "distance" even means. Far from being a limitation, this reflects a rich mathematical truth: distance is a concept flexible enough to be defined in many settings, and getting an answer requires first deciding which space you are measuring in. The calculator makes that decision explicit, reminding us that how far apart two points are is a question whose answer begins with where they live.

For grid-based distance where you move only along axes, see the Manhattan Distance Calculator; for straight-line distance in a plane, the Euclidean Distance Calculator.

Ready to Put This Into Practice?

Now that you understand how it works, plug in your own numbers and get an instant, accurate result.

Use the Distance Calculator Now →