Microdeck.tools 100% In-Browser

Haversine Distance Calculator

New

Calculate the great-circle distance between two latitude/longitude points in km, miles or nautical miles, with initial bearing, compass direction and midpoint.

100% In-Browser No Server Storage Instant Results

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

How It Works Under the Hood

The haversine formula gives the shortest distance over a sphere: a = sin²(Δφ/2) + cos φ1 cos φ2 sin²(Δλ/2), d = 2R·asin(√a), using the mean Earth radius 6,371.0088 km. Initial bearing and the midpoint use standard spherical trigonometry.

Step-by-Step Instructions

1

Enter latitude and longitude of point A and point B in decimal degrees.

2

Choose the distance unit.

3

Read distance, initial bearing, compass direction and midpoint.

Key Features & Performance

  • km, miles and nautical miles
  • Bearing and 16-point compass
  • Midpoint coordinates
  • Validates ranges

Worked Examples & Edge Cases

London to Paris

Input
51.5074, -0.1278 to 48.8566, 2.3522
Output
About 343.5 km

Limitations, Scope & Accuracy Notes

  • • Treats Earth as a sphere, so results can differ from ellipsoidal methods by up to about 0.5%.
  • • It is straight-line distance, not road distance.

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. Haversine Distance Calculator runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

How accurate is it?

Usually within a fraction of a percent for most routes; for survey-grade work use an ellipsoidal formula such as Vincenty.

Do I need decimal degrees?

Yes. Use the GPS Coordinate Converter to convert from degrees-minutes-seconds.

Is data stored?

No.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.