3D Distance Calculator (Interactive 3D Space View)

Find the 3D Euclidean distance and midpoint between two points (x₁, y₁, z₁) and (x₂, y₂, z₂) with a draggable 3D visualization and step-by-step math.

Input Parameters

ℹ️ Format: 3 real numbers (x, y, z) per point · e.g. 1, 2, 1 or (1, 2, 1)
Point A
Point B

💡 Tip: You can also paste (12, 13, 14) directly into any box.

3D Euclidean Distance
6.4031 units
Displacement (Δx, Δy, Δz)
(4, 4, 3)
3D Midpoint
(3, 4, 2.5)
XY Plane Projection
5.6569
Sum of Squares (d²)
41
🖱️ Drag to rotate 3D view

Formula & Step-by-Step Calculation

d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²)
  1. 1
    Compute coordinate differences
    Δx = 4, Δy = 4, Δz = 3
  2. 2
    Square each difference
    Δx² = 16, Δy² = 16, Δz² = 9
  3. 3
    Add squared values
    16 + 16 + 9 = 41
  4. 4
    Take the square root
    d = √41 = 6.403124
d = \sqrt{(5-1)^2 + (6-2)^2 + (4-1)^2} = \sqrt{41} \approx 6.4031

Embed This Calculator (Free)

Copy this HTML snippet to embed this interactive calculator on your blog, course, or website.

Worked Example

Sample inputs and verified result: Point A (x₁) = 1, Point A (y₁) = 2, Point A (z₁) = 1, Point B (x₂) = 5, Point B (y₂) = 6, Point B (z₂) = 4

3D Euclidean Distance: 6.4031 units

Frequently Asked Questions

What is the 3D distance formula?

It extends Pythagoras to three axes: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²).

Can I rotate the 3D coordinate graph?

Yes! Drag anywhere on the 3D visualizer with your mouse or finger to inspect the X, Y, and Z projections.