- Distance
- 5
How it works

Longitude wraps around the date line
Locations at 179° east and 179° west are only 2° apart in longitude across the date line. Enter hemisphere signs correctly; treating them as 358° apart gives the wrong intuition about their shortest surface separation.
Find the short way across the date line
- Longitude
- 179° E, 179° W
- Latitude
- 0°

| Quantity | Calculation | Angular distance |
|---|---|---|
| A Longitude difference | 179 − (−179) | 358° |
| B Shorter arc | 360 − 358 | 2° |
Choosing planar or geographic distance
Coordinate distance treats points in the selected mathematical space, while great-circle distance models locations on a curved Earth. Use latitude and longitude fields only with the geographic mode, and check signs and angle units. A geographic straight-line estimate is different from a road route. For travel mileage along roads, use the separate driving-route calculator and review its provider result.
Choose coordinate distance or distance along a spherical Earth
Coordinate distance uses √[(Δx)²+(Δy)²+(Δz)²] in a Cartesian system. Leave both z coordinates at zero for a flat two-dimensional calculation. Great-circle distance instead interprets latitude and longitude on a sphere.
Do not treat latitude and longitude in degrees as ordinary x and y lengths. Geographic degrees describe angles, and the distance represented by a longitude difference depends on latitude.
Work through a three-dimensional coordinate example
Between (1,2,3) and (4,6,15), the differences are 3, 4 and 12. The straight-line distance is √(9+16+144)=√169=13 units. This is the direct segment, not the total length of a path along three perpendicular axes.
| Coordinate | Second minus first | Squared difference |
|---|---|---|
| x | 4−1=3 | 9 |
| y | 6−2=4 | 16 |
| z | 15−3=12 | 144 |
| Total | 169; square root 13 |
Interpret the Earth-radius assumption and coordinate format
The great-circle model uses the entered sphere radius, initially 6,371 km. A quarter-circle from latitude 0°, longitude 0° to latitude 0°, longitude 90° is πR/2, approximately 10,007.54 km at that radius. It is a spherical reference, not an ellipsoidal survey result.
The DMS mode accepts degrees, minutes and seconds with directional letters, such as 40 30 0 N. Decimal degrees instead encode that coordinate as 40.5. Keep latitude and longitude in their correct fields and use the stated sign or hemisphere convention.
Separate geometric distance from a travel route
A great-circle arc does not follow roads, shipping lanes, air-traffic restrictions or terrain. Driving distance and travel time therefore need route information, while Cartesian distance needs a suitable coordinate system and common length units.
The geographic model does not include altitude changes. Its precision is limited by the chosen Earth model and coordinate accuracy; additional decimal places in the output do not turn it into a property survey.
Coordinate distance: formula and assumptions
d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²].
Coordinates must use the same linear unit. This is straight-line distance, not road distance.
Great-circle distance: formula and assumptions
h=sin²(Δφ/2)+cosφ₁ cosφ₂ sin²(Δλ/2); distance=2R atan2(√h,√(1−h)).
A spherical great-circle estimate is not a road route or a survey-grade ellipsoidal distance.
Latitude & longitude in DMS: formula and assumptions
Decimal angle=hemisphere sign×(degrees+minutes/60+seconds/3600), then apply the spherical great-circle formula.
Use nonnegative degree magnitudes with N/S for latitude and E/W for longitude. This is a spherical straight-line surface distance, not a road route.
Worked example
Using the Coordinate distance example:
- x₁
- 0
- y₁
- 0
- z₁ (0 for 2D)
- 0
- x₂
- 3
- y₂
- 4
- z₂ (0 for 2D)
- 0
d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²].
Example result
Distance: 5
These are illustrative inputs. Change the values to explore a different scenario.
Formula references
References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.
Common questions
Is great-circle distance the same as driving distance?
No. It estimates the shortest surface arc on a spherical Earth, without roads, terrain or route restrictions.
How do I enter southern or western DMS coordinates?
Type a nonnegative degree magnitude followed by minutes, seconds and the hemisphere letter. For example, enter 33 52 08 S for a southern latitude. Use W for a western longitude; the hemisphere letter supplies the sign.
Can I calculate a two-dimensional distance?
Yes. Enter the x and y coordinates and leave both z coordinates at zero.
Can I enter latitude and longitude as x and y?
Use the geographic modes for latitude and longitude. Those angular coordinates are not Cartesian lengths.
What does changing the Earth radius do?
It scales the modeled arc length directly while leaving the angular separation unchanged. The default is a spherical approximation, not a detailed ellipsoidal model.
See our methodology and editorial policy.
