Distance Calculator

Straight-line (Euclidean) distance between two points in the plane or in 3D.

Result

Distance

Δx

Δy

Δz

The formula

2D:

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

3D:

d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²)

This is the Pythagorean theorem generalized: each delta is a perpendicular leg, the distance is the hypotenuse.