3D Geometry & Distance (AI SL)

Before you can work with solids in three dimensions, you need two simple coordinate tools: the distance between two points, and the point exactly halfway between them. These formulas are the same ones you met with straight lines, just extended with a third coordinate - and they turn up constantly inside larger geometry problems, from finding a perpendicular bisector to locating the centre of a solid. It's part of the broader Volume & Surface Area topic.

24 questions on this sub-topic.

Practise distance & geometry → Try exam-style questions

The two formulas

Covered under IB syllabus reference SL3.1: the distance between two points in three-dimensional space, and their midpoint. Both formulas are in the formula booklet with a \(z\)-coordinate included - drop that term and they're identical to the 2D versions you already know.

Distance

\(d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}\)

Use when you need a length - the straight-line distance between two given points. Drop the \(z\)-term for a 2D problem.

Midpoint

\(\left(\dfrac{x_1+x_2}{2},\ \dfrac{y_1+y_2}{2},\ \dfrac{z_1+z_2}{2}\right)\)

Use when you need the point exactly halfway between two others - just average each coordinate. Drop the \(z\)-term for a 2D problem.

Need the full syllabus wording and formula-booklet reference table? See Volume & Surface Area, or the calculator steps at using your GDC.

Worked examples

1
Medium
No calc
[3 marks]

Find the distance between \((1,2)\) and \((4,6)\).

Worked solution

\(d=\sqrt{(4-1)^2+(6-2)^2}.\) M1
\(=\sqrt{9+16}=\sqrt{25}.\) A1
\(=5.\) A1

M1 Distance formula A1 \(\sqrt{25}\) A1 \(d=5\)
2
Hard
Calculator
[3 marks]

Find the perpendicular bisector of \(A(1,1)\) and \(B(5,3)\).

(a)(i) State the gradient.
(a)(ii) State the y-intercept.

Worked solution

(a)(i) Midpoint \((3,2);\) gradient \(\tfrac12,\) perp \(-2;\) \(y\) M1

(a)(ii) \(=-2x+8.\) A1
\(y=-2x+8.\) A1

M1 Attempt to find the midpoint of \(AB\), the gradient of \(AB\), and the perpendicular gradient A1 Correct gradient of the perpendicular bisector, \(-2\) A1 Correct \(y\)-intercept from substituting the midpoint into the perpendicular line, \(8\)
3
Medium
Calculator
[4 marks]

Points \(P(2,3)\) and \(Q(8,11).\)

(a) Find the midpoint of \(PQ.\)

(b) Find the length \(PQ.\)

Worked solution

(a) Midpoint. Average the coordinates: \(\left(\frac{2+8}{2}, \frac{3+11}{2}\right)\) M1
\(= (5, 7).\) A1

(b) Length. Use the distance formula (Pythagoras): \(PQ = \sqrt{(8-2)^2 + (11-3)^2} = \sqrt{36 + 64} = \sqrt{100}\) M1
\(= 10.\) A1

M1 Method A1 (a) midpoint M1 Method A1 (b) distance

Common mistakes

Ready to practise properly?

24 distance-and-geometry questions, marked instantly like the real exam.

Quick answers

What is the distance formula between two points?

For two points \((x_1,y_1)\) and \((x_2,y_2)\), the distance between them is \(d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\). In three dimensions a \((z_2-z_1)^2\) term is added under the square root.

What is the midpoint formula?

The midpoint of \((x_1,y_1)\) and \((x_2,y_2)\) is \(\left(\tfrac{x_1+x_2}{2},\tfrac{y_1+y_2}{2}\right)\) - simply average the \(x\)-coordinates and average the \(y\)-coordinates. A \(z\)-coordinate in 3D is averaged the same way.

← Back to Applications & Interpretation SL topics