Solvezi.com
Home
Tools
Blog
About
Contact
  1. Home
  2. Geometry
  3. Distance Calculator

Distance Calculator

Calculate the distance between two points using the distance formula. Supports coordinate inputs, step-by-step calculations, and visual interpretation of point distances in geometry.

Related Tools

More in Geometry

Triangle CalculatorGeometry CalculatorSlope CalculatorArea CalculatorCircle CalculatorSurface Area & Volume CalculatorRight Triangle CalculatorPythagorean Theorem CalculatorRight Angle Triangle Solver
Explore Other Categories

Share

https://www.solvezi.com/geometry-tools/distance-calculator

Solvezi.com

Solve Easy
Privacy PolicyTerms
© 2026 Solvezi.com. All rights reserved.

1. Select Calculation Mode

2D Distance
Between two points in a plane (x, y)
3D Distance
In three dimensions (x, y, z)
Geographic
Lat/Long (Haversine Formula)
Multiple Points
Path distance in 2D

2. Enter Dimensions

Point 1

Point 2

Visualization

P1P2

2D Plane (XY)

Results

Additional Information

Calculation Steps

Understanding the Distance Formulas

This calculator uses specific mathematical formulas tailored to the coordinate system you select, ensuring accuracy whether you're measuring a straight line in space or an arc on the Earth's surface.

2D 3D Geographic Multi-Point

2D Distance (Euclidean)

The shortest path between two points in a two-dimensional plane.

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

3D Distance

Extends the Euclidean formula to three-dimensional space.

d = √((Δx)² + (Δy)² + (Δz)²)

Geographic (Haversine)

Calculates the great-circle distance (shortest path on a sphere).

d = 2R · atan2(√a, √(1-a))

Multiple Points (Path)

Sums the 2D Euclidean distance of all sequential segments.

d_total = Σ d(Pᵢ, Pᵢ₊₁)

Key Mathematical Concepts

All distance calculations rely on the fundamental theorem derived from the Pythagorean Theorem (a² + b² = c²), which is used to find the length of the hypotenuse (the distance) between two points based on their change in coordinates (Δx and Δy).

The Haversine Formula (Geographic Mode)

When dealing with coordinates on a curved surface like the Earth, the straight-line Euclidean distance is inaccurate. The Haversine Formula calculates the distance along the great circle (the path with the shortest length connecting two points on a sphere). It takes into account the Earth's radius (R ≈ 6371 km) and uses the Haversine function to handle spherical geometry.

a = sin²(Δφ/2) + cos(φ₁) cos(φ₂) sin²(Δλ/2)
d = 2R · atan2(√a, √(1-a))

Where φ is latitude, λ is longitude, and Δ denotes the difference between the two points, all converted to radians.

Ready to calculate? Start using the Distance Calculator now!