Calculate distance between two points on a map, using coordinates, latitude & longitude, or speed and time. Get results in km, miles, meters & nautical miles.
Enter coordinates of two locations. Use decimal degrees (e.g. 33.7215, 73.0433).
💡 Example: Islamabad (33.7215, 73.0433) → Karachi (24.8607, 67.0011)
Four modes — each designed for a different scenario. Pick the one that fits your need and get your answer in seconds.
Select Lat/Long for real-world locations, 2D for coordinate geometry, Speed–Time for travel, or Converter for unit conversion.
Type coordinates, points, or distance values. For real cities, use Google Maps to get exact lat/long coordinates.
Press the Calculate Distance button. The Haversine formula runs instantly in your browser — no waiting, no loading.
Get your result in km, miles, meters, feet, yards, and nautical miles — all at once, in one instant result.
Common distance unit conversions — the same values used internally by our distance calculator.
📌 Suggested Image: World map with two distance markers or GPS coordinate pins
Alt text: "Distance calculator showing straight line distance between two GPS coordinates on a world map"
Image suggestion: World map with distance arc between two cities — showing "as the crow flies" calculation.
| Unit | Abbreviation | = 1 Kilometer | = 1 Mile | = 1 Meter |
|---|---|---|---|---|
| Kilometer | km | 1 km | 1.60934 km | 0.001 km |
| Mile | mi | 0.62137 mi | 1 mi | 0.000621 mi |
| Meter | m | 1,000 m | 1,609.34 m | 1 m |
| Foot | ft | 3,280.84 ft | 5,280 ft | 3.28084 ft |
| Yard | yd | 1,093.61 yd | 1,760 yd | 1.09361 yd |
| Nautical Mile | nmi | 0.539957 nmi | 0.868976 nmi | 0.000540 nmi |
| Centimeter | cm | 100,000 cm | 160,934 cm | 100 cm |
From road trips to scientific research — our free distance calculator handles it all.
Estimate the straight-line distance between cities to plan routes, fuel costs, and travel times before you drive.
Pilots and sailors use great-circle (straight-line) distance to plan the most efficient flight and maritime routes.
Businesses calculate delivery zone distances, estimate fuel costs, and optimize delivery route planning.
Students and researchers use lat/long distance calculation for mapping, spatial analysis, and geographic studies.
Runners, cyclists, and triathletes calculate race course distances using GPS coordinates for training analysis.
Measure the proximity of properties to schools, hospitals, and transport hubs to assess location value.
A distance calculator is a free online tool that computes the distance between two locations or points using mathematical formulas. Depending on your use case, you can calculate the straight-line distance between two GPS coordinates (using the Haversine formula), the geometric distance between two points on a coordinate plane, or convert distance values between different units like kilometers, miles, and nautical miles.
Our distance calculator offers four powerful modes in one tool — making it far more useful than most single-mode calculators you'll find online.
📌 Suggested Image: Map with route or GPS pins on two cities
Alt text: "Distance calculator showing km and miles between two locations on a map"
Image suggestion: GPS map interface showing distance measurement between two pins.
For real-world locations on Earth, the most accurate method for calculating straight-line ("as the crow flies") distance is the Haversine formula. This formula accounts for the Earth's curvature, giving you the shortest path along the Earth's surface between two coordinates.
Formula: d = 2R × arcsin(√(sin²(Δlat/2) + cos(lat1)×cos(lat2)×sin²(Δlon/2)))
Where R = 6,371 km (Earth's mean radius), and all angles are in radians. Our calculator does all of this automatically — just enter the decimal degree coordinates.
Islamabad: Lat 33.7215°N, Long 73.0433°E
Karachi: Lat 24.8607°N, Long 67.0011°E
Using the Haversine formula, the straight-line distance is approximately 1,168 km (726 miles).
Note: Actual driving distance is longer (~1,450 km) due to road routes.
For points on a flat plane (math problems, maps, graphs), the standard distance formula is:
d = √((x₂-x₁)² + (y₂-y₁)²)
For 3D space, add the Z-axis: d = √((x₂-x₁)² + (y₂-y₁)² + (z₂-z₁)²)
d = √((3-0)² + (4-0)²) = √(9 + 16) = √25 = 5 units
This is the classic "3-4-5" right triangle — a perfect example of the Pythagorean theorem in action.
One of the most common questions about distance calculators is the difference between straight-line and driving distance:
For air travel planning, navigation, and geographical analysis, straight-line distance is the correct measurement. For road trip planning, always estimate driving distance to be 20–40% longer than the straight-line distance.
Pro Tip: To find the latitude and longitude of any city or address, simply search for it on Google Maps, right-click the location, and the coordinates will appear at the top of the context menu. Copy them directly into our Lat/Long calculator.
📌 Suggested Image: Two city icons connected by a distance arc or airplane route
Alt text: "Straight line distance calculation between two major cities using lat-long coordinates"
Image suggestion: Flight route arc or distance line between two GPS pins on a globe.
Use our Unit Converter tab to convert any distance to all other units simultaneously. Here are the key conversions to remember:
For 2D coordinate geometry, use: d = √((x₂−x₁)² + (y₂−y₁)²). For real-world GPS locations, use the Haversine formula which accounts for Earth's curvature. Our calculator handles both automatically — just choose the right tab.
Enter decimal degree coordinates for both locations in the Lat/Long tab. Our calculator uses the Haversine formula to compute the great-circle distance — the shortest path on Earth's surface. To find coordinates of any location, right-click on Google Maps and the lat/long will appear.
1 mile = 1.60934 kilometers. Conversely, 1 kilometer = 0.62137 miles. Use our Unit Converter tab to instantly convert any distance value between km, miles, meters, feet, yards, and nautical miles.
Straight-line distance (as the crow flies) is the shortest possible path between two points on Earth's surface, calculated using the Haversine formula. Driving distance follows actual roads and is always longer — typically 20–40% more than the straight-line distance, depending on terrain and road layout.
A nautical mile (nmi) equals 1.852 km or 1.15078 miles. It is the standard unit of distance in maritime navigation and aviation, based on the circumference of the Earth. Speeds at sea are measured in knots (1 knot = 1 nautical mile per hour).