Calculate the distance between two points in 3D space. Visualize points and distance with interactive 3D graph.
The distance between two points in three-dimensional space is calculated using the 3D extension of the Pythagorean theorem. This is known as the Euclidean distance, which represents the straight-line distance between the points.
Mathematical Formula:
For points P₁(x₁, y₁, z₁) and P₂(x₂, y₂, z₂) in 3D space:
d = √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²]
This formula works for any two points in ℝ³ (3D Euclidean space).
| Case | Condition | Simplified Formula | Example |
|---|---|---|---|
| Same Point | P₁ = P₂ | d = 0 | Distance from (2,3,4) to itself is 0 |
| XY Plane | z₁ = z₂ | d = √[(x₂-x₁)² + (y₂-y₁)²] | Distance in a flat surface |
| X Axis | y₁=y₂, z₁=z₂ | d = |x₂ - x₁| | Distance along x-axis |
| Distance from Origin | P₁ = (0,0,0) | d = √[x² + y² + z²] | Magnitude of vector from origin |
| Unit Distance | d = 1 | Points on unit sphere | (1,0,0) to (0,1,0) = √2 |
| Opposite Cube Corners | Cube side length s | d = s√3 | Cube with side 2: d = 2√3 ≈ 3.464 |
Pythagorean Theorem in 3D: The 3D distance formula extends the Pythagorean theorem to three dimensions. The distance is the length of the space diagonal of a rectangular box with sides Δx, Δy, and Δz.
Vector Magnitude: The distance between two points equals the magnitude of the vector from P₁ to P₂: d = ||P₂ - P₁||.
Coordinate Geometry: In a Cartesian coordinate system, the distance formula provides a way to measure the separation between any two points, regardless of their position.
Calculator Features:
(0,0,0)
Origin
(1,0,0)
Unit X
(0,1,0)
Unit Y
(0,0,1)
Unit Z
(1,1,1)
Cube corner
(3,4,12)
Distance 13