Distance Calculator

Calculate the distance between two points in 2D or 3D space.

Point 1 (x₁, y₁)

Point 2 (x₂, y₂)

Distance
Midpoint

Distance Formula

The distance between two points (x₁, y₁) and (x₂, y₂) is:

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

3D Distance

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

Midpoint Formula

M = [(x₁ + x₂)/2, (y₁ + y₂)/2]