Distance Calculator

Calculate distances in 2D plane, 3D space, latitude and longitude, and points on a map with interactive visualizations and step-by-step solutions.

Distance Calculator

Calculate distances in 2D plane, 3D space, latitude and longitude, and points on a map.

2D Distance Calculator

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

2D Coordinate System
(1, 1)(4, 5)

3D Distance Calculator

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

3D Coordinate System
(1,1,1)(2,2,2)

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.

Great Circle Distance

About Distance Calculations

Distance calculations are fundamental in mathematics, physics, geography, and many other fields. Different formulas are used depending on the coordinate system and space dimensions.

2D Distance Formula:

d = √[(x₂-x₁)² + (y₂-y₁)²]
• Euclidean distance in plane
• Also called Pythagorean theorem
• Used for flat surfaces

3D Distance Formula:

d = √[(x₂-x₁)² + (y₂-y₁)² + (z₂-z₁)²]
• Euclidean distance in space
• Extension of 2D formula
• Used for 3D coordinates

Great Circle Distance:

Haversine formula
• Shortest distance on sphere
• Used for Earth's surface
• Accounts for curvature

Applications:

  • • Navigation and GPS
  • • Surveying and mapping
  • • Physics and engineering
  • • Computer graphics
  • • Astronomy
  • • Sports analytics