Calculate great-circle distance, initial bearing, and midpoint between two latitude/longitude coordinates in km, miles, and nautical miles. Use it to test different inputs quickly, compare outcomes, and understand the main factors behind the result before moving on to related tools or deeper guidance.
Coordinates distance calculator: great-circle distance, bearing, and midpoint
Use the coordinates distance calculator to measure great-circle distance between two latitude and longitude points, then review the result in kilometres, miles, nautical miles, metres, and feet alongside the initial bearing and midpoint. It accepts ordinary decimal degrees as well as degree-minute-second style inputs, which makes it practical for route checks, mapping, and navigation homework.
What this calculator is measuring
This page measures the shortest path across the Earth's surface between two geographic coordinates. That path is called the great-circle distance. It is different from a road distance, flight timetable distance, or shipping route distance because those real routes may curve for infrastructure, airspace, weather, terrain, or legal constraints.
The calculator also returns the initial bearing and geographic midpoint. The initial bearing is the direction you would set out from the first point when following the great-circle path. The midpoint is the halfway coordinate on that same spherical route rather than the simple arithmetic average of the two latitude and longitude values.
How the Haversine method works
The core distance calculation uses the Haversine formula, a standard spherical-navigation method for estimating great-circle distance from latitude and longitude. The calculator converts both coordinate pairs into radians, finds the central angle between them, and multiplies that angle by an Earth-radius constant to obtain the distance.
That makes the page fast and reliable for everyday travel, mapping, and educational use. It is especially useful when you need a clean cross-check in km, miles, or nautical miles without pulling in a full routing engine.
a = sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2)
Intermediate Haversine term from latitude and longitude differences.
d = 2R atan2(√a, √(1-a))
Great-circle distance from the central angle and Earth radius R.
Decimal degrees and DMS inputs
You can enter plain decimal coordinates such as 40.7128 and -74.0060, or degree-minute-second values such as 41°52'41.2"N. The parser converts those formats into decimal degrees before running the distance calculation, which helps when one source uses map-style notation and another uses spreadsheet-style values.
Latitude must stay between -90 and 90 degrees, and longitude must stay between -180 and 180 degrees. If a coordinate falls outside those limits, the calculator correctly rejects it instead of producing a misleading distance.
What this page does not account for
This calculator uses a spherical-Earth approximation. For most practical consumer uses that is close enough, but it is not the same as a higher-precision ellipsoidal geodesic model used in specialist surveying or geodesy tools.
It also does not know anything about roads, airways, borders, currents, elevation, or no-go zones. Use it for geographic separation and heading estimates, not as a replacement for turn-by-turn navigation, dispatch planning, or regulated aviation and marine routing software.
Frequently asked questions
What is the difference between great-circle distance and driving distance?
Great-circle distance is the shortest path across the Earth's surface between two coordinates. Driving distance follows roads and usually ends up longer because roads curve, detour, and obey the built transport network.
Why does the calculator show nautical miles?
Because nautical miles are standard in marine and aviation navigation. They are directly tied to geographic coordinates, which makes them a natural output when working from latitude and longitude rather than from roads or rail routes.
Can I paste coordinates in DMS format?
Yes. The calculator accepts degree-minute-second entries such as 41°52'41.2"N as well as decimal degrees. It converts valid DMS inputs into decimal coordinates automatically before computing distance, bearing, and midpoint.
Why might a professional mapping system give a slightly different answer?
Many professional tools use an ellipsoidal Earth model or a different Earth-radius assumption, while this page uses the Haversine method on a sphere for speed and clarity. Small differences are therefore expected, especially on very long routes.