Distance Calculator
Calculate the great-circle distance between two coordinates, or solve distance, speed, or time from the other two.
📏 Distance Calculator
How to Use
- Choose a mode: "Coordinates (Lat/Long)" or "Speed & Time".
- Coordinates: enter the latitude and longitude of Point A and Point B (decimal degrees, e.g. 28.6139, 77.2090) to get the straight-line distance between them.
- Speed & Time: choose what to solve for — Distance, Speed, or Time — then fill in the other two values and units.
- Results update instantly as you type — no need to click Calculate.
Frequently Asked Questions
QWhat is great-circle distance?
Great-circle distance is the shortest path between two points on the surface of a sphere — in this case, the Earth. It follows the curve of the Earth rather than a straight line through it, which is why it's the standard way to measure distance between two geographic coordinates (e.g. flight distance between two cities).
QHow accurate is the coordinate distance calculation?
This tool uses the Haversine formula with Earth's mean radius (6,371 km), which is accurate to within about 0.5% for most points — more than sufficient for general use. It doesn't account for the Earth's slight ellipsoidal shape, which more precise formulas (like Vincenty's) correct for.
QWhere do I find a location's latitude and longitude?
Most map applications show coordinates when you long-press or right-click a location — look for a "What's here?" option or similar, or check a location's share/details panel.
QCan I solve for speed or time instead of distance?
Yes — in "Speed & Time" mode, choose which quantity you want to solve for (Distance, Speed, or Time), and fill in the other two. The tool rearranges the distance = speed × time formula automatically.
QIs my data sent to a server?
No. All calculations happen locally in your browser using JavaScript. Nothing is sent to or stored on any server.
About This Calculator
The Haversine formula computes great-circle distance from two points' latitude and longitude using spherical trigonometry, assuming Earth is a perfect sphere of radius 6,371 km. The Speed & Time mode rearranges the classic distance = speed × time formula to solve for whichever of the three quantities is missing, converting between common units (km, miles, meters; km/h, mph, m/s; hours, minutes, seconds) as needed.