Distance Calculator

Distance between two points in 2D or 3D.

Your numbers

Distance 5
Midpoint
(1.5, 2, 0)

About the Distance Calculator

The straight-line distance between two points comes from the Pythagorean theorem. Leave z at 0 for a flat (2D) problem.

Formula

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

Questions

Frequently asked

How does the Distance Calculator work?

d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²). Results update as you type.

Is this Distance Calculator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way