Map Distance Calculator
Measure the straight-line distance along a multi-stop route.
Distance on Map
Click the map below to set two points on the map and find the shortest distance (great circle / air distance) between them. Once created, the markers can be repositioned by clicking and holding, then dragging them.
Click the map to drop the first point.
What does a map distance calculator do?
A map distance calculator measures the straight-line surface distance along a polyline of waypoints. You drop two or more points on a world map, and the tool sums the great-circle distance between every consecutive pair to give the total route length. Each individual leg is also reported with its length and compass bearing so you can see how the journey breaks down.
Unlike a road-routing service that follows a road network, a map distance calculator gives you the as-the-crow-flies length of a multi-stop trip. It is the right tool for hiking the line-of-sight between summits, planning a sailing route, comparing the geographic spread of office locations, or sanity-checking the perimeter of a region. For door-to-door driving distances, use a road-routing service in addition.
How the map tool works
Place waypoints
Click the map to add up to 10 waypoints, or paste latitude/longitude pairs into the coordinate list. Drag any point to fine-tune its position.
Read totals and per-leg breakdown
The result card shows the total straight-line distance, the per-leg distance and bearing, and rough travel-time estimates by walking, cycling, driving, and flight speeds.
Switch units
Toggle between km, miles, and nautical miles; every leg and the total update in place.
Share or export
Copy the waypoint list as tab-separated lat/lon values, or share the route via URL — every waypoint is encoded in the link.
Formulas inside this tool
Per-leg distance
dᵢ = Haversine(Pᵢ, Pᵢ₊₁)
Each leg uses the same Haversine formula as the lat/lng tab.
Total distance
D = Σ dᵢ
The straight-line route length is the sum of the leg distances.
Per-leg bearing
θᵢ = atan2(sin Δλ · cos φ₂, cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ)
The initial bearing of each leg, measured clockwise from north.
Travel-time estimate
t = D / v
Default speeds: walk 5 km/h, cycle 18 km/h, car 90 km/h, flight 800 km/h.
Real-world uses
Hiking and trekking
Estimate cross-country distance between summits or campsites before consulting a topo map for elevation profile.
Sailing and aviation
Plan the geographic legs of a multi-stop trip and read the bearings to set on the compass.
Field operations
Compute the rough distance between sample sites, sensors, or telecom towers for logistics planning.
Sport and racing
Measure the closed-loop distance of a course or relay leg from a GPS trace.
Why use this calculator?
Summing Haversine distances along a polyline is straightforward in theory but tedious to do for many legs by hand. The map view makes it natural to position waypoints visually instead of typing every pair, and the per-leg table makes it easy to spot the dominant section of the route — useful when the goal is not just total distance but also where the time will be spent.
Frequently Asked Questions
Related Calculators
More coordinate-geometry, trig, and unit tools that pair with distance calculations.
- Distance Calculator2D, 3D, lat/lng, map, vector, and geometry distance — six tools, step-by-step solutions, interactive visualisations.
- Pythagorean Theorem CalculatorSolve any side of a right triangle, plus area, perimeter, and angles.
- Slope CalculatorSlope, angle, distance, midpoint, intercepts, and the line equation with an interactive coordinate-plane graph.
- Triangle CalculatorSolve any triangle (SSS, SAS, ASA, AAS, SSA) for sides, angles, area, altitudes, medians, inradius, circumradius and centres.
- Circle CalculatorFind area, circumference, diameter, and radius from any one known value.
- Scientific CalculatorAdvanced trig, log, exponent, root, factorial, and memory functions.