Distance Calculator
Find the distance between two points in 2D or 3D space, or the great-circle distance and bearing between two latitude/longitude coordinates.
Use decimal degrees (e.g. 40.7128, −74.0060). The result is the straight-line great-circle distance.
About Distance Calculator
The distance calculator measures the gap between two points in three settings: 2D coordinates, 3D coordinates or geographic latitude/longitude pairs. In 2D and 3D it returns the straight-line Euclidean distance along with the midpoint and, in 2D, the slope of the connecting line.
Geographic mode computes the great-circle distance — the shortest path over the Earth’s surface — using the haversine formula on a sphere of radius 6,371 km, with an orthodromy variant available. Results come in kilometers, miles and nautical miles, together with the initial bearing in degrees and its compass direction.
Coordinates go in as decimal degrees (for example 40.7128, −74.0060 for New York), and angles can be entered in degrees or radians. It is a free tool for geometry homework, mapping projects, flight-planning curiosity and any “how far is it between these coordinates” question.
How to use Distance Calculator
- Choose the mode: 2D points, 3D points or geographic.
- Enter the coordinates of point 1 and point 2 — decimal degrees for latitude/longitude.
- For geographic mode, pick the formula and the result unit: kilometers, miles or nautical miles.
- Read the distance, plus the midpoint and slope (2D) or the initial bearing and compass direction (geographic).