Distance Calculator
Find the straight-line distance between two points in 2D or 3D, with the midpoint, axis deltas, and a full step-by-step solution shown alongside the result.
√(Δx²+Δy²)
2D FORMULA
√(Δx²+Δy²+Δz²)
3D FORMULA
Instant
STEP-BY-STEP
2D Distance Between Two Points
Distance
7.2111
units (Euclidean)
7.2111
Distance
(3, 5)
Midpoint
Δx=4 Δy=6
Deltas
52
d² (Squared)
📝 Step-by-Step Solution
1. Distance formula
d = √((x₂−x₁)² + (y₂−y₁)²)
= √((4)² + (6)²)
= √(52)
= 7.2111
2. Midpoint
M = ((x₁+x₂)/2, (y₁+y₂)/2) = (3, 5)
📈 Coordinate Plane
The Distance Formula
The distance formula is the Pythagorean theorem in disguise. Plot two points on a coordinate plane and draw the horizontal and vertical gap between them — those two gaps are the legs of a right triangle, and the straight-line distance you want is its hypotenuse. That's why d = √(Δx² + Δy²) and a² + b² = c² are really the same statement. Working through the mechanics of that triangle on its own is covered on our Pythagorean theorem calculator.
Key Formulas
2D Distance: d = √((x₂−x₁)² + (y₂−y₁)²)3D Distance: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)Midpoint (2D): M = ((x₁+x₂)/2, (y₁+y₂)/2) | Midpoint (3D): M = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2)Manhattan Distance: |x₂−x₁| + |y₂−y₁| (+ |z₂−z₁| in 3D)Note: the midpoint shown alongside your result is a natural companion stat — the single point exactly halfway between P₁ and P₂ along the straight line that connects them. This page focuses purely on length and position between two points; for the slope, angle, and line equation through the same two points, see our slope calculator.
— FAQ