Course contentsShow
← Mathematics
Lesson 909 of 3,12122. Coordinate Geometry and TransformationsFree lesson

Distance in Three Dimensions

Extend the distance formula to 3D space to find distances between points with x, y, and z coordinates.

Distance in Three Dimensions

What You'll Learn

You'll learn how to find the straight-line distance between any two points in 3D space using x, y, and z coordinates.

From 2D to 3D: Adding the Third Dimension

You already know the distance formula in the coordinate plane:

  • Between points (x₁, y₁) and (x₂, y₂), the distance is √[(x₂ - x₁)² + (y₂ - y₁)²]

Now imagine adding a third dimension—height or depth—represented by a z-coordinate. Every point in 3D space looks like (x, y, z), such as (2, 3, 5).

The 3D Distance Formula

To find the distance between two points in three-dimensional space, we extend the Pythagorean theorem one more time:

Distance = √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²]

Think of it this way: you're finding differences in three perpendicular directions (left-right, forward-back, up-down), squaring each difference, adding them together, and taking the square root—just like before, but with one extra piece.

Example

Find the distance between points A(1, 2, 3) and B(4, 6, 7):

  • Difference in x: 4 - 1 = 3
  • Difference in y: 6 - 2 = 4
  • Difference in z: 7 - 3 = 4

Distance = √[3² + 4² + 4²] = √[9 + 16 + 16] = √41 ≈ 6.4 units

Why It Works

Imagine a rectangular box with opposite corners at your two points. The distance formula finds the length of the diagonal through the box—the shortest path through 3D space.

Key Takeaway: The 3D distance formula √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²] extends the 2D formula by adding the squared difference of z-coordinates, letting you measure straight-line distances through space.