Distance Calculator

Calculate the distance between two points in 2D or 3D space, or between two locations on a map. Supports multiple units including meters, kilometers, miles, and feet.

2D Distance
3D Distance
Map Distance
Metric
Imperial

First Point

Second Point

Metric
Imperial

First Point

Second Point

Kilometers
Miles

First Location

Second Location

Distance: 0 meters

Point A
Point B

Distance in Different Units

Unit Distance
Meters 0
Kilometers 0
Centimeters 0
Miles 0
Feet 0
Inches 0

About Distance Calculator

The Distance Calculator helps you find the straight-line distance between two points in 2D or 3D space, or between two geographic locations on Earth. It uses mathematical formulas to compute distances based on the coordinates you provide.

How to Calculate Distance

Distance is calculated differently depending on the coordinate system:

2D Distance (Euclidean Distance):

distance = √((x₂ - x₁)² + (y₂ - y₁)²)

3D Distance:

distance = √((x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²)

Geographic Distance (Haversine Formula):

The calculator uses the Haversine formula to calculate the great-circle distance between two points on the Earth's surface given their latitude and longitude coordinates.

Supported Units

The calculator supports multiple units of measurement including:

Applications

Distance calculations are used in many fields including: