3D Distance Calculator

In three dimensions, the distance formula adds the gap in height (z) to the gaps in x and y.

Results update as you type.

Distance

13

Midpoint
(2.5, 4, 9)

About this calculator

Enter the x, y and z of both points.

How to use it

  1. Enter point 1.
  2. Enter point 2.
  3. Read the distance.

The formula

d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²)
z
the third coordinate

Worked example

(1, 2, 3) to (4, 6, 15)

  1. Gaps 3, 4 and 12.
  2. d = √(9 + 16 + 144) = 13.

What the result means

The same formula gives the space diagonal of a box.

Assumptions

  • All lengths in the same unit.

Limitations

  • Results are rounded to 10 significant figures.

Frequently asked questions

What is the 3D distance formula?

√(Δx² + Δy² + Δz²).

What is the midpoint in 3D?

The average of each coordinate.

Where is it used?

In physics, graphics, engineering and data analysis.

Last reviewed on 3 October 2026. Found a mistake? Tell us.