Distance Calculator CalculatorScale.com
Spatial Geometry & Geodesy 4 Solvers: 2D, 3D, Geodesic & Interactive Map

Distance Calculator

Calculate Euclidean distances on a 2D Cartesian plane, 3D coordinate space, and find spherical geodesic (great-circle) flight distances between latitude/longitude points on Earth.

Modify the values and click the Calculate button to use

• Tool 1 (2D Distance): Calculates Euclidean distance d = √[(ΔX)² + (ΔY)²] and line slope m.

• Tool 2 (3D Distance): Calculates 3D space diagonal d = √[(ΔX)² + (ΔY)² + (ΔZ)²].

• Tool 3 (Lat/Lon Geodesic): Computes shortest great-circle distance on Earth using the Haversine formula.

• Tool 4 (Interactive Map): Click anywhere on the world map to measure distances and initial bearing.

2D Cartesian Coordinates

Use this calculator to find the distance between two points on a 2D coordinate plane.

Point 1 Coordinates (X₁, Y₁):
Point 2 Coordinates (X₂, Y₂):

Awaiting 2D Calculation

Enter coordinates for Point 1 and Point 2 on the left and click "Calculate" to view Euclidean distance and line slope.

Comprehensive Guide to Distance & Spatial Calculations

Understanding Euclidean flat geometry, 3D space vectors, the Haversine great-circle formula, and unit conversions.

1Euclidean Geometry vs. Spherical Planetary Geometry

In traditional Euclidean geometry, the shortest distance between two points is a straight line segment. However, across large distances on Earth, straight lines through the planet's mantle are physically impossible for travel. Instead, navigation relies on Spherical Geodesics (great-circle routes), which represent the shortest path along the curved surface of a sphere.

2Mathematical Formulations & Derivations

2D Euclidean Formula
d = √[(Δx)² + (Δy)²]

Derived from the Pythagorean Theorem (a² + b² = c²).

3D Space Diagonal
d = √[(Δx)² + (Δy)² + (Δz)²]

Calculates true line-of-sight distance in 3D coordinate space.

Haversine Geodesic
d = 2R · arcsin(√a)

Computes flight and maritime shortest-path distances on Earth.

3Distance Unit Conversion Factors

UnitEquivalent in KilometersEquivalent in MilesPrimary Usage
Kilometer (km)1.0000 km0.62137 miMetric road and geographic navigation
Statute Mile (mi)1.60934 km1.0000 miUS & UK customary road transport
Nautical Mile (NM)1.85200 km1.15078 miAviation flight plans and maritime voyages

Frequently Asked Questions

What is a great-circle distance in aviation and maritime shipping?

A great circle is any circle that divides the Earth into two equal hemispheres. The shortest distance between any two points on a sphere lies along the arc of a great circle, which is why transatlantic aircraft fly curved flight paths on flat map projections.

Why is a nautical mile different from a regular statute mile?

A nautical mile is historically defined as one minute of arc (1/60th of a degree) along a meridian of the Earth, equal to exactly 1,852 meters (~1.1508 statute miles). It is universally used in aviation and marine navigation.

How does 3D distance differ from 2D distance?

2D distance accounts only for horizontal (X) and vertical (Y) coordinates. 3D distance adds altitude or depth (Z) via Pythagoras: d = √[(X₂-X₁)² + (Y₂-Y₁)² + (Z₂-Z₁)²].

What is an initial forward bearing (azimuth)?

Because great circles cross meridians at changing angles, the compass direction needed to start flying directly toward your destination is the initial forward bearing.