Measure the distance between two pins

Drag two pins anywhere on Earth and read the straight-line distance. Free, no sign-up, nothing leaves your browser.

Straight-line distance only, not driving distance. Map tiles load from an external provider as you pan and zoom. This page never asks for your location.

The two pins

Clicking the map moves the active pin. Both pins are also draggable.

Distance

54.8 km

34.1 miles · 54,818 m · 179,848 ft

Bearing A to B: 277 deg (west). Midpoint: 48.179, 16.741.

How the distance is calculated

The tool uses the haversine formula, the standard way to measure a great-circle distance between two latitude and longitude pairs. It treats the Earth as a sphere with a mean radius of 6,371 km, converts both points to radians, and returns the shortest path along the surface. The same formula powers the worked examples in our location guides.

Everything runs in your browser. No coordinates are sent to LocateKit, no account is needed, and the share link is just the numbers written into the URL so the same view can be reopened later.

What this tool cannot do

It cannot plan a route. The line between the pins ignores roads, one-way streets, ferries, border crossings, and terrain. A 60 km straight line can easily be an 80 km drive. For travel planning, measure here first, then check a routing service for the road version.

It also cannot find coordinates for you. If you only know a street address, look it up on a map first, then paste the coordinates here. And if sub-metre precision matters (property boundaries, construction), hire a surveyor instead of trusting any browser tool.

Draw a radius map

Create a precise circle in miles or kilometres, then share or download it.

Live location

Share a changing location for a short time and stop it whenever you need.

Distance questions

Is this driving distance or straight-line distance?
Straight-line distance only, measured along the surface of the Earth (great-circle distance). It does not follow roads, so a real drive or walk between the same two points is almost always longer. Use a routing app when you need travel distance or time.
How accurate is the measurement?
The tool uses the haversine formula on a spherical Earth model with a mean radius of 6,371 km. That model is accurate to about 0.3% for everyday distances. Pin placement matters more than the math: at high zoom one careless drag can shift a pin by tens of metres.
Do I need to type coordinates, or can I just drag the pins?
Both work. Drag either pin on the map, click the map to move the selected pin, or type decimal coordinates into the boxes. Every method updates the same distance instantly.
Can I share my measurement with someone?
Yes. Copy share link encodes both pins, the unit, and the map zoom into the URL. Anyone opening it sees the same two pins and the same distance. Nothing is stored on a server, so the link never expires.
Does the tool track my location?
No. The page never asks your browser for your location and never uploads anything. Both pins start at fixed default cities, and coordinates stay in your tab unless you copy a share link.
The map did not load. Can I still measure?
Yes. The coordinate boxes and the distance readout work without the map. If map tiles fail to load (offline, blocked CDN, strict firewall), type both coordinate pairs and read the result below them.