Skip to content
Math Calculators

3D Distance Calculator

Verified formula Updated Jun 2026 Private — runs on your device

Enter details
Verified formula Private

Distance

7.071068

For general information only — not financial, tax, legal or medical advice. Verify before you rely on it.

How to use the 3D Distance Calculator

The 3D Distance Calculator works out your distance in an instant. Enter point 1 — x, point 1 — y and point 1 — z and the result updates as you type — it is free, needs no sign-up, and runs entirely in your browser so your figures stay private.

  1. Enter the point 1 — x.
  2. Enter the point 1 — y.
  3. Enter the point 1 — z.
  4. Enter the point 2 — x.
  5. Enter the point 2 — y.
  6. Enter the point 2 — z.
  7. Read off your distance — the calculator updates automatically, with no button to press.

Formula

The 3D Distance Calculator uses the formula:

Distance = √((Point 2 — x - Point 1 — x) ^ 2 + (Point 2 — y - Point 1 — y) ^ 2 + (Point 2 — z - Point 1 — z) ^ 2)

Worked example

For example, with point 1 — x of 1, point 1 — y of 2, point 1 — z of 3 and point 2 — x of 4 and the other inputs, the distance is 7.071068.

Inputs used
Point 1 — x 1
Point 1 — y 2
Point 1 — z 3
Point 2 — x 4
Point 2 — y 6
Point 2 — z 8
Results
Distance 7.071068

Results are estimates for educational use, not professional advice.

Frequently asked questions

Take the square root of the summed squared differences in x, y and z. From (1,2,3) to (4,6,8) the distance is about 7.07.

Yes. The distance formula extends the Pythagorean theorem to three perpendicular axes.

The z term becomes zero and the result matches the 2D distance between the points.

The same units as the coordinates you enter, as long as all axes use the same units.

The 3D Distance Calculator uses the formula: Distance = √((Point 2 — x - Point 1 — x) ^ 2 + (Point 2 — y - Point 1 — y) ^ 2 + (Point 2 — z - Point 1 — z) ^ 2). For example, with point 1 — x of 1, point 1 — y of 2, point 1 — z of 3 and point 2 — x of 4 and the other inputs, the distance is 7.071068.

Enter the point 1 — x. Enter the point 1 — y. Enter the point 1 — z. Enter the point 2 — x. Enter the point 2 — y. Enter the point 2 — z. Read off your distance — the calculator updates automatically, with no button to press.

Related calculators