Map Distance Calculator

Interactive map tool

Use the Map Distance Calculator to measure the straight-line geographic distance between two points you select directly on a map.

Click your starting point, click the destination, then select Calculate Distance. The calculator shows the distance in miles and kilometers and displays the latitude and longitude of both selected points.

This tool measures direct geographic separation between the two map locations. It does not follow roads or calculate driving distance.

Click two pointsMiles & kilometresCoordinate results
Map Distance Calculator
Click two points on the map to measure the straight-line distance between them.

How to Use the Map Distance Calculator

The calculator works in four steps:

  1. Click the first location on the map.
  2. Click the second location.
  3. Select Calculate Distance.
  4. Read the distance and coordinates in the results.

A marker is added at each selected point, and a line is drawn between them so you can see which two positions are being measured.

If you select the wrong locations, use Reset Map and start again.

What Does the Map Distance Calculator Measure?

The calculator measures the great-circle distance between the two latitude and longitude points selected on the map.

This is a direct geographic distance rather than a road-route distance.

In practical terms, the result answers:

How far apart are these two map points geographically?

It does not answer:

How many miles would I drive between them?

For road mileage, use the Driving Distance Calculator.

For direct coordinate entry instead of map clicks, use the Distance Calculator.

How Does the Map Distance Calculator Work?

Each click on the map produces a geographic coordinate containing:

Latitude

and:

Longitude

After two points are selected, the calculator applies the Haversine formula to those coordinates.

The basic process is:

Map Point 1

Latitude₁, Longitude₁

and:

Map Point 2

Latitude₂, Longitude₂

then:

Haversine calculation

Distance in kilometers and miles

The calculator also draws a line between the selected points to make the measurement visually clear.

What Formula Does the Map Distance Calculator Use?

The calculator uses the Haversine formula with a spherical Earth model.

For:

Point 1 = (φ₁, λ₁)
Point 2 = (φ₂, λ₂)

calculate:

Δφ = φ₂ − φ₁

Δλ = λ₂ − λ₁

Then:

a = sin²(Δφ ÷ 2) + cos(φ₁) × cos(φ₂) × sin²(Δλ ÷ 2)

Distance = R × 2 × atan2(√a, √(1 − a))

The implementation uses:

R = 6,371 km

The result is then converted into miles.

For the detailed mathematics behind this calculation, see our Haversine Formula guide.

How Does the Calculator Convert Kilometers to Miles?

The calculator first calculates geographic distance in kilometers.

It then converts the result using:

Miles = Kilometers × 0.621371

For example:

100 km × 0.621371 = 62.1371 miles

The current map calculator displays both kilometers and miles to two decimal places.

What Coordinates Does the Calculator Show?

The result displays the latitude and longitude of each selected point.

For example:

Point 1:
40.71280, −74.00600

Point 2:
42.36010, −71.05890

The current implementation displays both coordinate pairs to five decimal places.

Those coordinates identify the geographic points actually used in the distance calculation.

Why Are Coordinates Useful on a Map?

A map provides a visual way to choose a location, but the distance calculation itself needs numerical positions.

Latitude and longitude convert the visual selections into mathematical geographic points.

That means:

Map click

becomes:

Latitude + Longitude

which then becomes:

Distance

This is why map-based distance measurement and coordinate-based distance calculation are closely related.

If you already know the coordinates, using the Distance Calculator is faster than locating the points manually.

What Is Straight-Line Map Distance?

Straight-line map distance is the direct geographic separation between the selected locations without following roads, trails, or travel routes.

For geographic coordinates, this is commonly represented as a great-circle distance.

It is similar to what people call:

  • direct distance;
  • air distance;
  • as-the-crow-flies distance;
  • geographic straight-line distance.

For a deeper explanation, see As the Crow Flies Distance.

Is the Line on the Map the Driving Route?

No.

The blue line drawn between the points is a visual connection between the selected locations, not a road route.

It does not:

  • follow highways;
  • avoid rivers;
  • follow streets;
  • account for bridges;
  • follow walking paths;
  • account for traffic.

The calculated distance comes from the geographic coordinates and Haversine formula.

If you need a real road route, use the Driving Distance Calculator.

Map Distance vs Driving Distance

These measurements answer different questions.

Measurement What it represents
Map straight-line distance Direct geographic separation
Driving distance Road-network route
Walking distance Pedestrian route
Radius distance Fixed distance from one center point

For example, two points may be:

12 miles apart directly

but:

17 miles apart by road

because the road network cannot follow the direct geographic path.

The difference is explained in detail in Driving Distance vs Straight-Line Distance.

Map Distance vs Distance Between Coordinates

The mathematical calculation can be identical.

The difference is how the points are selected.

Map Distance Calculator

You select two points visually on a map.

Distance Calculator

You enter the latitude and longitude values directly.

Both can calculate great-circle distance from geographic coordinates.

Use the Distance Calculator when you already know the coordinates.

Use this map tool when it is easier to identify the locations visually.

Can I Measure Distance Between Two Cities on a Map?

Yes.

Click a point representing the first city and then a point representing the second city.

The calculator measures the direct geographic distance between the exact map positions you selected.

However, a city covers a large area.

Clicking the city center will produce a different result from clicking:

  • an airport;
  • a neighborhood;
  • a specific building;
  • the city boundary.

For city-distance concepts, see Distance Between Two Locations.

Can I Measure Distance Between Two Addresses on the Map?

Yes, if you can locate the addresses visually.

However, if you already know the addresses, the Distance Between Addresses Calculator is more appropriate because it is designed to geocode address text directly.

That tool also provides:

  • straight-line distance;
  • driving distance;
  • estimated drive time.

The map calculator is better when you want to choose the points manually.

Can I Measure Distance Between Landmarks?

Yes.

You can click any visible positions on the map.

Examples include:

  • airports;
  • buildings;
  • parks;
  • monuments;
  • bridges;
  • stadiums;
  • trail locations;
  • geographic features.

The calculator uses the selected coordinates rather than the name of the landmark.

Can I Measure Distance Between GPS Locations?

Yes.

If you know where the GPS positions are located on the map, you can select those points visually.

If you already have their exact latitude and longitude values, use the Distance Calculator instead.

Both methods ultimately calculate distance between geographic coordinates.

Is This a Google Maps Distance Calculator?

The page targets the broader search intent around map distance calculators, including users who search for a "Google Maps distance calculator," but this calculator is not Google Maps.

It uses Leaflet for the interactive map interface and OpenStreetMap map tiles.

That distinction should remain clear.

Google Maps has its own built-in distance-measurement feature, which can measure straight-line distance between two or more points.

For instructions specifically about Google's tool, see How to Measure Distance on Google Maps.

What Is Leaflet?

Leaflet is a JavaScript library used to build interactive web maps.

On this page, Leaflet handles functions such as:

  • displaying the map;
  • registering map clicks;
  • adding markers;
  • drawing the line between selected points;
  • managing map layers.

The distance mathematics is handled separately in the calculator's JavaScript.

This distinction matters because:

Leaflet displays and interacts with the map

while:

the Haversine calculation determines the distance

What Map Data Does the Calculator Use?

The current map uses tiles from OpenStreetMap.

OpenStreetMap provides geographic map data that can be displayed through map applications such as Leaflet.

The map itself helps you identify and select the locations.

The distance calculation does not measure the visual length of pixels on the screen. It uses the actual latitude and longitude associated with each click.

Why Doesn't Map Zoom Change the Distance?

Zoom changes how the map is displayed, but it does not change the geographic coordinates of the selected points.

If two locations remain:

Point A

and:

Point B

their geographic separation remains the same whether you view them at:

  • national zoom;
  • city zoom;
  • street zoom.

Zoom can help you select the points more precisely, but it does not alter the distance once the coordinates are fixed.

Does the Map Projection Affect the Result?

The visual map is a projected representation of Earth's curved surface.

However, the calculator does not calculate distance by measuring the apparent line length on the screen.

Instead, it uses the latitude and longitude of the selected points with the Haversine formula.

That means the distance calculation is based on geographic coordinates rather than the visual distortion of the displayed map projection.

This is an important distinction for long-distance measurements.

Why Can a Straight Line Look Curved on Some Maps?

Earth is curved, while a web map is displayed on a flat screen.

Map projections transform the spherical or ellipsoidal Earth onto a two-dimensional surface.

As a result, the shortest geographic path between two distant locations may not behave visually like the straight line you might expect from ordinary flat-plane geometry.

The mathematical surface-distance concept is explained in As the Crow Flies Distance.

Can I Measure a Route With Multiple Points?

The current CalculatingDistance.com map tool is designed for exactly two points.

After the second point is selected, additional clicks are ignored until the map is reset.

That means the calculator measures:

Point A → Point B

It does not currently calculate:

A → B → C → D

as a multi-stop path.

This is an intentional distinction from competitors such as CalcMaps and Google Maps, which can support multiple distance-measurement points.

Can I Measure a Running or Hiking Route?

Not accurately with the current two-point tool if the route contains bends.

A running or hiking path usually needs several intermediate points to follow the shape of the route.

This calculator measures only the direct geographic distance between the two selected endpoints.

For a curved trail:

direct endpoint distance

can be much shorter than:

actual trail length

Do not use a two-point straight-line result as the distance of a winding path.

Can I Measure a Property Boundary?

The current tool is not designed to measure the perimeter of a property because it accepts only two points.

A property boundary normally requires several points around the perimeter.

Some competitors, such as CalcMaps, support multi-point measurement for fences, borders, and paths.

Our current calculator should remain positioned as a two-point geographic distance tool.

Can I Measure Area With This Tool?

No.

Distance measures length.

Area measures the size of a surface.

This tool selects two points and calculates the distance between them. It does not create a closed polygon or calculate square miles, acres, square feet, or square kilometers.

The Radius Calculator in the next cluster can show the approximate area of a circular radius, but that is a different calculation.

What Is the Difference Between Map Distance and Radius?

Map distance compares two selected points.

A radius starts with one center point and a specified distance extending outward in every direction.

For example:

Map distance:
How far is Point A from Point B?

Radius:
What area lies within 10 miles of Point A?

Use the Radius Calculator when you want to draw a fixed-distance circle around one location.

Can I Use a Map to Measure a 10-Mile Radius?

A two-point map distance tool can tell you whether a specific second point is approximately 10 miles from a center.

However, it cannot show every location within that distance at once.

A radius tool is better for that task because it draws a circle around a selected center.

Use the Radius Calculator for geographic radius visualization.

How Accurate Is the Map Distance Calculator?

The calculator consistently applies the Haversine formula to the coordinates produced by your two map clicks using a spherical Earth radius of 6,371 km.

Its practical accuracy depends on several factors.

Point Selection

The calculation uses exactly where you click.

A small difference in marker placement changes the coordinates and therefore the distance.

Earth Model

The Haversine calculation treats Earth as a sphere.

Earth is better represented by an oblate ellipsoid, so high-precision geodesic methods can produce slightly different results.

Map Interpretation

The tool measures between geographic points, not entire cities, properties, or landmarks.

Display Rounding

Distance is displayed to two decimal places and coordinates to five decimal places.

For general map measurement and geographic comparison, this is appropriate. For professional surveying or high-precision geodesy, use specialist tools and datasets.

Why Does Precise Clicking Matter?

Suppose you want to measure the distance between two buildings.

Clicking the center of each building may produce one result.

Clicking the edge of each property may produce another.

The calculator does not know what real-world feature you intended to select.

It simply measures between the two clicked coordinates.

Zoom in when the exact endpoints matter.

Can the Calculator Measure Across Water?

Yes.

Because it measures direct geographic distance, the line can cross:

  • lakes;
  • rivers;
  • oceans;
  • mountains;
  • buildings;
  • restricted land.

The presence of those features does not change the direct distance.

If your real question is how far you must travel around the obstacle, use a route-based calculator instead.

Can I Measure International Distances?

Yes.

The map and geographic formula are not restricted to the United States.

You can select points in different countries and calculate their direct great-circle distance.

However, the site is written primarily for a U.S. audience, so miles are an important output alongside kilometers.

Map Distance Example

Suppose you select approximate points for:

New York City:
40.7128, −74.0060

and:

Boston:
42.3601, −71.0589

Using the same spherical Haversine method as the map calculator gives approximately:

306.11 km

or:

190.21 miles

That result is the direct geographic separation between the selected coordinates, not the road mileage.

For driving mileage, use the Driving Distance Calculator.

Map Distance vs Google Maps Measurement

Both can be used to measure direct distance between map points, but the interfaces and capabilities differ.

Google Maps currently allows users to select two or more points and displays total distance in miles and kilometers.

The current CalculatingDistance.com tool:

  • uses Leaflet and OpenStreetMap;
  • accepts two clicked points;
  • calculates Haversine distance;
  • displays miles and kilometers;
  • shows both coordinate pairs;
  • draws a connecting line;
  • includes a reset function.

For a step-by-step Google Maps workflow, read How to Measure Distance on Google Maps.

Why Use This Map Measuring Tool?

A map-based tool is useful when you can identify locations visually but do not know their coordinates.

Examples include:

  • two landmarks;
  • two map features;
  • two points in rural areas;
  • two points without useful street addresses;
  • approximate positions along a coastline;
  • locations identified from satellite or street context.

The map becomes the input interface, while the coordinate calculation produces the result.

Which Distance Tool Should You Use?

Your task Best tool
Click two map points and measure direct distance Map Distance Calculator
Enter two latitude/longitude pairs Distance Calculator
Calculate road mileage Driving Distance Calculator
Compare two addresses Distance Between Addresses Calculator
Draw a fixed radius around one point Radius Calculator
Learn Google's measurement feature How to Measure Distance on Google Maps

Frequently Asked Questions

What is a map distance calculator?

A map distance calculator measures the geographic distance between points selected on an interactive map. This tool calculates great-circle distance between two clicked locations and displays the result in miles and kilometers.

How do I measure distance on a map?

Click the first location, click the second location, and select Calculate Distance. The calculator uses the two selected coordinates to calculate their direct geographic distance.

Does this map distance calculator measure driving distance?

No. It calculates straight-line great-circle distance. Use the Driving Distance Calculator for road mileage.

Can I measure more than two points?

Not with the current CalculatingDistance.com map tool. It is intentionally designed for two-point measurement.

Does the calculator show coordinates?

Yes. It displays the latitude and longitude of both selected points to five decimal places.

Is this Google Maps?

No. The tool uses Leaflet with OpenStreetMap tiles. Google Maps has a separate built-in distance-measurement feature.

Does map zoom affect the result?

Zoom does not change the distance between fixed coordinates. It can help you click more precise locations.

Can I measure distance across water?

Yes. The calculator measures direct geographic separation, so the line may cross water, terrain, buildings, or other obstacles.

What formula does the map calculator use?

It uses the Haversine formula with a spherical Earth radius of 6,371 kilometers.

How do I measure a radius instead of the distance between two points?

Use the Radius Calculator to select a center point and draw a fixed-distance circle around it.