Distance Calculator
Calculate distance between two points using 2D coordinates, 3D coordinates, GPS latitude and longitude, or an interactive world map. Get clear distance results in kilometers, miles, meters, feet, and nautical miles.
Calculate Distance Between Two Points
Use this distance calculator to calculate the distance between two points in a 2D coordinate system, 3D space, between GPS coordinates, or on a world map. Choose the method that matches the information you have.
Tip: For a map or GPS location, use straight-line geographic distance. For 2D or 3D coordinates, the calculator uses Euclidean distance.
Distance Between Two Points Calculator
Enter X and Y coordinates to calculate the straight-line distance between two points on a 2D plane.
3D Distance Between Two Points
Use X, Y and Z coordinates to find the straight-line distance between points in three-dimensional space.
GPS Distance Calculator
Enter the latitude and longitude of two locations to calculate GPS distance using the Haversine formula.
Map Distance Calculator
Click the world map to add waypoints and calculate map distance. Drag markers to fine-tune them. The tool calculates the total great-circle distance across the points you add.
Distance Between Two Points
The 2D distance between two coordinate points is calculated with the Euclidean distance formula. This is useful in geometry, coordinate systems, graphics, engineering, surveying, and mathematics.
Formula: d = √[(x₂ − x₁)² + (y₂ − y₁)²]
GPS Distance Calculator
For two places on Earth, latitude and longitude identify their positions. This calculator uses the Haversine formula to estimate the shortest great-circle distance over the Earth’s surface. It is often described as straight-line, aerial, or “as the crow flies” distance.
Map Distance Calculator
Use the interactive map to place two or more waypoints anywhere in the world. The total is calculated from each segment and updates as you add or move points. This is useful for comparing locations, planning approximate paths, measuring geographic distance, and checking distances between cities.
- Add multiple points, not just two.
- Drag markers to fine-tune their positions.
- Switch between km, miles, metres, feet, and nautical miles.
- Copy or share the current result.
World Map Distance Calculator
Need to calculate distance on a world map? Add two or more locations to the interactive map above to measure the geographic distance between them. This is useful for comparing cities, checking approximate air distance, and measuring a multi-point path.
This is geographic or straight-line distance, not driving or road distance.
2D, 3D, GPS and Map Distance: What’s the Difference?
| Calculator | Best for | Method |
|---|---|---|
| 2D Distance | Coordinate geometry and flat-plane problems | Euclidean distance |
| 3D Distance | Points with X, Y and Z coordinates | 3D Euclidean distance |
| GPS / Lat-Long | Two locations on Earth | Haversine great-circle distance |
| Map Distance | Two or more points on a world map | Great-circle distance per segment |
Which Distance Calculator Should You Use?
Choose the calculator based on the type of points you have:
- 2D Distance: X and Y coordinates on a flat plane.
- 3D Distance: X, Y and Z coordinates.
- GPS Distance: latitude and longitude for two locations.
- Map Distance: locations selected directly on the world map.
How to Calculate Distance Between Two Points
- Choose the calculation type: 2D, 3D, GPS/latitude-longitude, or map.
- Enter the required coordinates or place points on the map.
- Select the output unit when available.
- Click Calculate Distance and review the result, conversions, formula, and related information.
Distance Units
The calculator can express geographic results in several common units.
| Unit | Useful for |
|---|---|
| Kilometers (km) | General geographic and travel-distance estimates |
| Miles (mi) | Everyday and road-distance comparisons |
| Metres (m) | Short-distance and technical measurements |
| Feet (ft) | Property, building and US customary measurements |
| Nautical miles (nm) | Marine and aviation contexts |
Frequently Asked Questions
How do I calculate the distance between two points?
For 2D coordinates, use the Euclidean distance formula. For latitude/longitude coordinates, use a geographic-distance formula such as Haversine. The calculator above handles both.
What is a GPS distance calculator?
A GPS distance calculator uses latitude and longitude coordinates to estimate the geographic distance between two locations.
What is the Haversine formula?
The Haversine formula estimates great-circle distance between two points given their latitudes and longitudes on a spherical Earth model.
Does the map calculator show driving distance?
No. The map mode on this page measures geographic/straight-line distance between the points you select. Driving distance needs road-routing data.
Can I calculate distance in miles and kilometers?
Yes. Geographic/map results can be viewed in kilometers, miles, metres, feet, and nautical miles.
Can I measure more than two points on the map?
Yes. Add multiple waypoints to see segment distances and the cumulative total.
Related Calculators
Replace these example URLs with the exact URLs of your existing calculator pages if your slugs differ.
About This Distance Calculator
This 5iTech Distance Calculator combines coordinate geometry, geographic distance and interactive map measurement in one browser-based tool. Calculations are performed in your browser; map tiles are loaded from OpenStreetMap when Map Distance mode is used.
For map display, OpenStreetMap data is provided under its applicable terms and attribution requirements.