The distance formula in 3D is “Pythagoras applied twice”. Drop a perpendicular from the high point to the floor, find the floor distance with 2D Pythagoras (the legs dx, dy), then use that floor distance plus the rise dz as the legs of a second Pythagoras to get the full 3D distance.
3D Pythagorean quadruples: (1, 2, 2)→3 Β· (2, 3, 6)→7 Β· (3, 4, 12)→13 Β· (1, 4, 8)→9 Β· (4, 4, 7)→9. Recognising these makes the distance instant — no calculator needed.
Worked examples
WE 1Midpoint between two warehouses
A drone-delivery system has two warehouses at P(1, 4, 7) and Q(5, −2, 3) (coordinates in km, including altitude). A relay station is to be placed at the midpoint of [PQ]. Find its coordinates.
Average each coordinate
Mₓ = (1 + 5)/2 = 3
Mᵢ = (4 + (β2))/2 = 1
Mẑ = (7 + 3)/2 = 5
M = (3, 1, 5)
exactly the same idea as 2D β just three averages instead of two. The negative y stays as a negative inside the sum: 4 + (β2) = 2.
WE 2Distance — drone flight to a mountain peak
A drone flies in a straight line from base camp B(2, 3, 5) to peak P(5, 7, 17), coordinates in km (third entry = altitude). Find the straight-line distance flown.
Step 1 β find the three differences
dx = 5 β 2 = 3
dy = 7 β 3 = 4
dz = 17 β 5 = 12
Step 2 β Pythagoras
d = β(3Β² + 4Β² + 12Β²)
= β(9 + 16 + 144)
= β169 = 13
d = 13 km
(3, 4, 12, 13) is a Pythagorean quadruple β the answer comes out as a whole number. Spotting it saves you reaching for the calculator.
WE 3Midpoint of two satellites
Two satellites are tracked at positions S1(−3, 2, −1) and S2(5, −6, 7) (coordinates in 100 km from Earth’s centre). Find the midpoint of [S1S2].
Average each coordinate, careful with signs
Mₓ = (β3 + 5)/2 = 2/2 = 1
Mᵢ = (2 + (β6))/2 = β4/2 = β2
Mẑ = (β1 + 7)/2 = 6/2 = 3
M = (1, β2, 3)
three negative-positive pairs to average. Brackets help: (2 + (β6))/2 = β4/2 = β2 is much clearer than 2 + β6 / 2.
WE 4Both formulae — helicopter pair
Two helicopters are at H1(2, 1, 3) and H2(6, 4, 15) (coordinates in km, altitude is the third entry). Find (a) the midpoint of [H1H2] and (b) the distance between them.
(a) midpoint
Mₓ = (2 + 6)/2 = 4
Mᵢ = (1 + 4)/2 = 2.5
Mẑ = (3 + 15)/2 = 9
M = (4, 2.5, 9)
(b) distance
dx = 4, dy = 3, dz = 12
d = β(16 + 9 + 144) = β169 = 13
(a) M = (4, 2.5, 9) Β· (b) d = 13 km
midpoint coordinates may come out as decimals or fractions β that’s fine. The (3, 4, 12, 13) quadruple appears again β common in IB problems.
WE 5Working backwards — find missing endpoint
The midpoint of [PQ] is M(2, 5, −1) and one endpoint is P(7, 3, 4). Find the other endpoint Q.
Use Q = 2M β P for each coordinate
Qₓ = 2(2) β 7 = 4 β 7 = β3
Qᵢ = 2(5) β 3 = 10 β 3 = 7
Qẑ = 2(β1) β 4 = β2 β 4 = β6
Check: midpoint of P and Q
((7 + (β3))/2, (3 + 7)/2, (4 + (β6))/2)
= (2, 5, β1) β
Q = (β3, 7, β6)
the shortcut Q = 2M β P works coordinate-by-coordinate. Always verify by averaging P and Q β should give M back.
WE 6Space diagonal of a warehouse
A rectangular warehouse has internal dimensions 12 m × 8 m × 9 m (length × width × height). A wire is run from one floor corner to the opposite top corner. Find the length of the wire.
Set up: place one corner at the origin
corner A = (0, 0, 0)
opposite corner B = (12, 8, 9)
Apply the 3D distance formula
d = β(12Β² + 8Β² + 9Β²)
= β(144 + 64 + 81)
= β289
= 17 m
d = 17 m
the space diagonal of a cuboid = β(lengthΒ² + widthΒ² + heightΒ²). Placing one corner at the origin turns it into a 3D distance question instantly.
π‘ Top tips
- Treat 3D like 2D with one extra term: same Pythagoras structure, plus a (z1−z2)² on the inside.
- Label (x1, y1, z1) above each point: especially helpful with negatives.
- Spot Pythagorean quadruples: (3, 4, 12, 13) and (2, 3, 6, 7) are common in exam questions β answer is a clean integer.
- For “space diagonal of a box”: place one corner at the origin, the opposite at (length, width, height), and use the 3D distance formula.
- Sketch a rough 3D box if it helps: draw the three legs dx, dy, dz as box edges and the diagonal as the line through the box.
β Common mistakes
- Forgetting the z term: an easy slip when copying the 2D formula. Always check you have three squared differences inside the root.
- Squaring then taking the root of just one piece: β(dx²) + β(dy²) + β(dz²) is NOT the same as β(dx² + dy² + dz²). Add first, then root.
- Sign mistakes with negatives: (−1 + 7)/2 = 3, not 4. Use brackets to keep the signs visible.
- Midpoint coordinates left unsimplified: 5/2 is fine but write it as 2.5 if the question wants decimals. Mixing forms looks careless.
- Confusing dimensions and coordinates for the space-diagonal question. A box with sides 12, 8, 9 has corners at (0,0,0) and (12, 8, 9), not at (12, 8, 9) and (24, 16, 18).
Up next: Volume & Surface Area — the formulae for prisms, cylinders, pyramids, cones and spheres. Most are in the formula booklet; the trick is recognising the shape, identifying r and h, and combining shapes (cone + sphere, prism − cylinder, etc.) for richer problems.
Need help with AI SL 3D Geometry?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.
Book Free Session →