Distance Formula

2D: d = √((x₂-x₁)² + (y₂-y₁)²) · 3D: d = √((x₂-x₁)² + (y₂-y₁)² + (z₂-z₁)²). The midpoint is the average of the coordinates of both points.

Coordinates

Mode

Point 1

x₁
y₁

Point 2

x₂
y₂

Result

Distance
5
Midpoint
(1.5, 2)

d = √(3² + 4²) = √25 = 5