📏 Distance Calculator
Calculate distances between coordinates, geographic locations, and geometric elements with multiple methods and units
Distance Type
Distance Methods
- • Euclidean: Straight-line distance
- • Manhattan: Sum of absolute differences
- • Chebyshev: Maximum absolute difference
- • Haversine: Great circle distance on Earth
Coordinate Input
Point A Coordinates
Point B Coordinates
Distance Results
Enter coordinates to calculate distances
📚 Distance Formula Guide
📐 Euclidean Distance
2D: d = √[(x₂-x₁)² + (y₂-y₁)²]
3D: d = √[(x₂-x₁)² + (y₂-y₁)² + (z₂-z₁)²]
Most common distance measure, represents straight-line distance in space.
🏙️ Manhattan Distance
2D: d = |x₂-x₁| + |y₂-y₁|
3D: d = |x₂-x₁| + |y₂-y₁| + |z₂-z₁|
Also called taxicab distance, measures distance along grid lines.
♕ Chebyshev Distance
2D: d = max(|x₂-x₁|, |y₂-y₁|)
3D: d = max(|x₂-x₁|, |y₂-y₁|, |z₂-z₁|)
Maximum coordinate difference, like chess king movement.
🌍 Haversine Formula
a = sin²(Δφ/2) + cos(φ₁)cos(φ₂)sin²(Δλ/2)
d = 2R × atan2(√a, √(1−a))
Great circle distance between two points on Earth's surface.
📏 Point to Line
d = |Ax + By + C| / √(A² + B²)
Where line: Ax + By + C = 0
Perpendicular distance from point to line.
🎯 Applications
- • GPS navigation systems
- • Computer graphics & games
- • Machine learning algorithms
- • Robotics path planning
- • Image processing
- • Geographic information systems