What does this calculator do?
Calculates the Euclidean distance between two points in three-dimensional space.
Formula
Extension of the 2D distance formula to three dimensions.
d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)
How to use it
Enter the coordinates of both points (x, y, z).
Worked example
(0,0,0) to (1,2,2) → distance = 3.
Formula version1.0.0
Formulad = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)
Precision4 decimals
Frequently asked questions
How is this different from 2D distance?
It adds the z-coordinate difference squared under the square root.
Sources
- Coordinate geometry in the Euclidean plane: the distance formula follows from the Pythagorean theorem; the midpoint is the coordinate-wise average of the endpoints.
- OpenStax — Algebra and Trigonometry 2e (the rectangular coordinate system, distance and midpoint formulas)
- Khan Academy — Distance and midpoints (accessible explainer)
- Reviewed: 2026-08-05
Related calculators
Distance Between Two Points
Straight-line distance and midpoint between two points on the plane.
Midpoint Calculator
Calculate the midpoint between two 2D points.
Triangle Calculator
Area, perimeter, angles and classification of a triangle from its three sides.
Pythagorean Theorem Calculator
Find the missing side of a right triangle with a² + b² = c², steps included.
Circle Calculator
All four circle measurements from any single one — r, d, C or A.
Slope Calculator
Find the slope and equation of a line through two points.
Cylinder Calculator
Volume and surface areas of a cylinder from its radius (or diameter) and height.
Right Triangle Calculator
Complete a right triangle from two known values — sides, angles, area and perimeter.
Last updated: 2026-08-05 · v1.0.0 · Report an error