Calculate Euclidean distance from 2D and 3D points, coordinate lists, or differences with units in mm, cm, m, km, inches, and more.

Euclidean Distance Calculator

Choose the form that matches the values you already have.

2D points
3D points
Coordinate lists
Differences
Euclidean distance

Euclidean Distance Formula

The calculator uses the Pythagorean form of distance, extended to any number of dimensions.

d = √[ (x₂ − x₁)² + (y₂ − y₁)² + ... + (n₂ − n₁)² ]
  • d = Euclidean distance between the two points
  • x₁, y₁, ... = coordinates of point A
  • x₂, y₂, ... = coordinates of point B

For the Differences tab, you supply the deltas directly and the formula reduces to d = √(Δx₁² + Δx₂² + ... + Δxₙ²). Both points must use the same unit, and both must have the same number of dimensions. The result is always non-negative.

Reference Tables

Common 2D and 3D check values you can use to verify the calculator or sanity-check your own work.

Point A Point B Distance
(0, 0)(3, 4)5
(1, 1)(4, 5)5
(−2, 3)(4, −5)10
(0, 0, 0)(2, 3, 6)7
(1, 2, 2)(4, 6, 14)13

Quick unit conversion for the most common length units. The calculator handles these automatically when you pick a unit other than "unitless."

From To meters
1 mm0.001 m
1 cm0.01 m
1 in0.0254 m
1 ft0.3048 m
1 yd0.9144 m
1 km1000 m
1 mi1609.344 m

Worked Examples

2D example. Find the distance between (1, 2) and (4, 6).

Δx = 3, Δy = 4. d = √(9 + 16) = √25 = 5.

3D example. Find the distance between (0, 0, 0) and (2, 3, 6).

Δx = 2, Δy = 3, Δz = 6. d = √(4 + 9 + 36) = √49 = 7.

n-dimensional example. For A = (1, 2, 3, 4) and B = (5, 6, 7, 8), each squared difference is 16. d = √(16 × 4) = √64 = 8.

Why squaring matters. Squaring removes negative signs so direction does not affect the result. Distance from A to B equals distance from B to A.

Euclidean vs. Manhattan. Euclidean distance is the straight-line path. Manhattan distance sums the absolute differences (|Δx| + |Δy| + ...) and is always greater than or equal to the Euclidean value.