Bearing and Distance Calculator

Point A Coordinates
°
°
Point B Coordinates
°
°
Calculating…

Calculation Results

Initial Bearing:
Final Bearing:
Distance:
Midpoint:
Parameter Value
Point A Coordinates
Point B Coordinates
Initial Bearing
Final Bearing
Distance
Midpoint

This calculator uses the Haversine formula to calculate the great-circle distance between two points on a sphere given their longitudes and latitudes.

Formula

The Haversine formula:

a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)

c = 2 ⋅ atan2(√a, √(1−a))

d = R ⋅ c

Where:
φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)
Δφ = φ₂ – φ₁, Δλ = λ₂ – λ₁

For bearing calculation, we use:

θ = atan2(sin Δλ ⋅ cos φ2, cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ)

The initial bearing is then normalized to a compass bearing (0-360°).

Share this Calculation

Paste this link in email, text or social media with copy link option

Cite this content, page or calculator as:

Zaheer, Ahmed. Bearing and Distance Calculator. Available at: [page URL]. Accessed: [current date].
<p>Zaheer, Ahmed. <a href=”[page URL]”>Bearing and Distance Calculator</a>. Accessed: [current date].</p>
@misc{bearing_distance_calculator, author = {Zaheer, Ahmed}, title = {Bearing and Distance Calculator}, url = {[page URL]}, note = {Accessed: [current date]} }
Appreciate our scientific content creators and cite this page. Your support matters and keeps us motivated!
Citation copied to clipboard!