You find the distance between two points in 3D space by calculating the differences in their -, -, and -coordinates, squaring them, adding them, and taking the square root.
The Distance Formula
For points and , the 3D distance formula is
Each coordinate difference represents displacement along one mutually perpendicular axis. Squaring makes every contribution non-negative, so a negative change in still increases the total distance. The final square root converts the sum of squared changes back into the original coordinate units.
This formula is an extension of Pythagoras' theorem. First, the horizontal distance in the (xy)-plane is
This horizontal distance and the vertical change form another right-angled triangle. Therefore,
which produces the 3D distance formula. Equivalently, use Pythagoras' theorem in the (xy)-plane, then use it again with the -change. This explains why there are three squared terms rather than a direct sum.
Worked Example
Find the distance between and .
Calculate each coordinate difference:
Substitute into the formula:
Using a GDC, . The distance is therefore units, correct to three significant figures. The order of subtraction does not matter because each difference is squared. If the coordinates were measured in metres, the answer would be .
Quick Checks
If one coordinate is unchanged, its squared difference is zero; the same formula still applies. If all three coordinates match, the distance is zero. Keep the exact form unless a decimal is requested. Never round coordinate differences, and check that the answer is non-negative and has linear, not squared, units.
Exam Technique
This is SL 3.1: 3D space, volume, angles and midpoints, common to AI SL and HL. Show the substituted formula before giving the GDC value, enter the complete square-root expression, retain full precision until the end, and include units. A common misconception is adding the coordinate differences directly; distance requires their squares followed by a square root.
