📐 3D Distance Calculator

Calculate the straight-line distance between two points in three-dimensional Cartesian space.

5.0 out of 5 (1 rating)

Enter details

Two points in 3-D
d = √((x2 - x1)² + (y2 - y1)² + (z2 - z1)²)
A,,B,,
  • X₁ (first point)
  • Y₁ (first point)
  • Z₁ (first point)
  • X₂ (second point)
  • Y₂ (second point)
  • Z₂ (second point)

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Formula at a glance

3D Distance formula: d = sqrt(dx^2 + dy^2 + dz^2)
How the 3d distance works: d = sqrt(dx^2 + dy^2 + dz^2)

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the 3D Distance Calculator

In three dimensions the distance formula adds the z difference: d = √[(x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²].

It is used in physics, 3D graphics, engineering and navigation.

🧮 Formula

3D distance
d = sqrt(dx^2 + dy^2 + dz^2)

Where

  • x, y, z = Cartesian coordinates
d = sqrt((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2).

✏️ Worked example

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

You enter
X₁ (first point)1
Y₁ (first point)2
Z₁ (first point)3
X₂ (second point)4
Y₂ (second point)6
Z₂ (second point)9
You get
3D Distance7.81025

Distance 7.81025.

🧭 How to use this calculator

What you enter

  • X₁ (first point)
  • Y₁ (first point)
  • Z₁ (first point)
  • X₂ (second point)
  • Y₂ (second point)
  • Z₂ (second point)

What you get

  • 3D Distance

💡 Common uses

  • Coordinate geometry homework and revision
  • Analytic geometry calculations
  • Checking graph and line calculations

❓ Frequently asked questions

What is the 3D distance formula?

d = √[(Δx)² + (Δy)² + (Δz)²].

Distance between (1, 2, 3) and (4, 6, 9)?

√(9 + 16 + 36) = √61 ≈ 7.81.

What people are saying
★★★★★
Anonymous · 01 Oct 2026