Distance Calculator
Calculate the straight-line distance between two locations using latitude and longitude coordinates, with results in multiple units.
Distance Calculator
Enter the latitude and longitude of two locations to calculate the distance between them.
What Is a Distance Calculator?
A distance calculator determines how far apart two locations or points are. This calculator uses latitude and longitude coordinates to calculate the approximate straight-line distance between two points on the Earth's surface.
It can be useful for comparing locations, checking approximate geographical distances, planning journeys, working with mapping data, or performing calculations where the distance between two coordinates is required.
Why Use the Distance Calculator?
This free distance calculator provides a quick way to calculate geographical distance without requiring specialist mapping software or manual mathematical calculations.
Coordinate Based
Calculate distance directly from latitude and longitude coordinates.
Kilometres
View the calculated distance in kilometres for convenient metric measurements.
Miles
See the equivalent distance in miles for imperial measurements.
Metres and Feet
Get smaller-unit measurements in metres and feet for additional precision.
Instant Results
Calculate the result immediately in your browser without submitting data to a server.
Free to Use
Use the distance calculator as often as needed without registration or payment.
How to Use the Distance Calculator
Enter the coordinates for the two locations and the calculator will determine the approximate straight-line distance between them.
- Enter Location 1 — Enter the latitude and longitude of the first point.
- Enter Location 2 — Enter the latitude and longitude of the second point.
- Check the coordinates — Make sure each latitude is between -90 and 90 and each longitude is between -180 and 180.
- Calculate the distance — Select Calculate Distance to display the result in kilometres, miles, metres and feet.
How to Calculate Distance Between Two Points
The distance between two geographical coordinates can be calculated using the Haversine formula. This formula takes the latitude and longitude of each point into account and calculates the approximate great-circle distance between them across the Earth's surface.
Distance calculations based on coordinates are useful when you know the exact geographical positions of two points but do not need a road route. For example, they can be used to estimate the separation between cities, landmarks, GPS coordinates, or other geographical points.
What Is the Haversine Formula?
The Haversine formula calculates the great-circle distance between two points on a sphere from their latitudes and longitudes. It accounts for the curvature of the Earth rather than treating the coordinates as points on a flat surface.
Straight-Line Distance vs Driving Distance
Straight-line distance is the shortest geographical distance between two coordinates, whereas driving distance follows available roads. A driving route can therefore be significantly longer because of road layouts, junctions, geographical obstacles, restricted roads and the selected route.
Distance Calculator Accuracy and Limitations
The result is an approximate great-circle distance based on the latitude and longitude coordinates entered. The accuracy therefore depends on the accuracy of the coordinates. The calculation does not account for roads, traffic, terrain, borders, travel restrictions or the route a vehicle would need to take.
For travel planning, the straight-line result should not be treated as a driving, cycling or walking distance. A route-based mapping service is more appropriate when the actual distance travelled along roads or paths is required.
James William Steven Parker
Creator & Developer of YesTools
James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.
Learn more about James and YesToolsFrequently Asked Questions
Explore More Free Tools
Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.
Browse All Categories

