Distance Calculator

Calculate the distance between two points in 2D, 3D space or between geographic locations with our free online distance calculator. Enter the coordinates and get accurate results instantly.

2D Distance Calculator

Use this calculator to find the distance between two points on a 2D coordinate plane.

Point 1:

Point 2:

calculator.scale: ±5 calculator.units(0,0)xy(1, 1)(4, 5)

3D Distance Calculator

Use this calculator to find the distance between two points in a 3D coordinate space.

Point 1:

Point 2:

xyz(0,0,0)(x₁,y₁,z₁)(x₂,y₂,z₂)
The 3D coordinate system with x, y, and z axes, showing the distance between two points.

Distance Based on Latitude and Longitude

Use this calculator to find the shortest distance (great circle/air distance) between two points on the Earth's surface.

Input Format

Point 1:

Point 2:

Earth distance
The great circle distance is the shortest path between two points on the Earth's surface.

What is Distance Calculator?

A distance calculator is a tool that calculates the straight-line distance (Euclidean distance) between two points in a coordinate system. This calculator works in both 2D (x,y) and 3D (x,y,z) coordinate spaces, and can also calculate the great circle distance between two geographic points.

The calculator uses different distance formulas depending on the coordinate system: the Pythagorean theorem for 2D and 3D spaces, and the Haversine formula for geographic coordinates to account for the Earth's curvature.

Distance Formulas

The distance between two points is calculated using the following formulas:

2D:

d = √[(x₂ - x₁)² + (y₂ - y₁)²]

3D:

d = √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²]

Geographic:

Haversine formula for great circle distance

Where (x₁, y₁, z₁) and (x₂, y₂, z₂) are the coordinates of the two points in space. For geographic coordinates, we use latitude and longitude values and account for the Earth's curvature.

How to Use the Distance Calculator

  1. Choose the appropriate calculator type: 2D, 3D, or Geographic.
  2. Enter the coordinates of the first point.
  3. Enter the coordinates of the second point.
  4. Click the 'Calculate' button to see the distance between the two points.

Applications of Distance Calculation

Distance calculation has many real-world applications:

  • Geography and Navigation: Calculating distances between locations on maps, GPS navigation
  • Physics: Determining the distance traveled by objects in various dimensions
  • Computer Graphics: Rendering 3D objects and scenes, collision detection
  • Architecture and Construction: Measuring distances in floor plans and building designs