James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout

3D geometry

Distance and midpoint in three dimensions, volume and surface area of solids, and angles between lines and planes.

SL 3.1SL + HL extensionPaper 1Paper 2≈ 50 min to work through
Before you start: Pythagoras and right-angled trigonometry. See Before you start SL › Trigonometry.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Find the distance between two points in 3D and the midpointSL 3.1
  • Find the volume and surface area of prisms, pyramids, cylinders, cones and spheresSL 3.1
  • Find volumes and surface areas of combined solidsSL 3.1
  • Find the angle between two lines, or between a line and a planeSL 3.1

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Three-dimensional problems use the same tools as two-dimensional ones (Pythagoras, trigonometry, area) with one extra coordinate. The key skill is finding a flat, right-angled triangle inside the solid and working in that.

2.1 Distance and midpoint

A point in 3D needs three coordinates (x,y,z): across, along and up. The distance formula is Pythagoras used twice.

Why does this work?

Go from A to B in two stages. First move across the floor: by Pythagoras, that horizontal distance squared is (x1−x2)2+(y1−y2)2. Then go straight up by z1−z2. The horizontal distance and the vertical rise form another right angle, so Pythagoras again gives d2=(x1−x2)2+(y1−y2)2+(z1−z2)2. The midpoint is simply the average of each coordinate.

Formulae In formula booklet
d=(x1−x2)2+(y1−y2)2+(z1−z2)2(x1+x22,y1+y22,z1+z22)
Worked example 1Paper 1
Find the distance between A(1,−2,3) and B(4,2,15), and the midpoint of AB.
d=32+42+122=169=13
Midpoint (52,0,9)

2.2 Volume and surface area

Volume measures how much space a solid takes up (in cm³ or m³); surface area measures how much material covers its outside (in cm² or m²). For prisms and cylinders, volume is the area of the cross-section times the length. A cone or pyramid has exactly one third of the volume of the prism or cylinder with the same base and height.

Key formulae In formula booklet
SolidVolumeSurface area
Pyramid13Ahadd the faces
Cone13πr2hcurved: πrl
Sphere43πr34πr2
Cylinderπr2hcurved: 2πrh

l is the slant height. Prism volume = cross-section area × length.

Worked example 2Paper 2
A cone has radius 5 cm and height 12 cm. Find its volume and total surface area.
Slant height l=52+122=13
Volume =13π(25)(12)=100π=314 cm³
Total surface area =π(5)(13)+π(52)=90π=283 cm²
Include the base when asked for the total surface area.
Worked example 3Paper 2
A grain silo is a cylinder of radius 2 m and height 5 m with a hemisphere on top. Find its volume.
Cylinder: π(4)(5)=20π
Hemisphere: 12×43π(8)=16π3
Total =76π3=79.6 m³

2.3 Angles in 3D

To find the angle between a line and a plane, drop a perpendicular from the line to the plane to make a right-angled triangle, then use trigonometry.

Picture a pencil leaning against a table. Its shadow, with a light directly above, lies on the table. The angle between the pencil and the table is the angle between the pencil and its shadow. Sketch the right-angled triangle formed by the line, its shadow and the vertical drop, label the lengths you know, and work out any missing lengths first (often with Pythagoras).

Worked example 4Paper 2
A cuboid measures 6 cm by 4 cm by 3 cm. Find the angle between a space diagonal and the base.
Diagonal of the base: 62+42=52
The height 3 is opposite the angle: tanθ=352
θ=22.6∘

A strategy for any 3D problem. (1) Draw the solid and mark the points you need. (2) Find a right-angled triangle that contains the length or angle you want; it is often "slanting" through the solid. (3) Redraw that triangle flat, on its own. (4) Find any missing sides, usually with Pythagoras on the base first. (5) Use trigonometry. Most errors come from using the wrong triangle, so the flat redraw is worth the time.

Worked example 5 (faded)Paper 1
Find the volume of a sphere of radius 3 cm, in terms of π.
V=43π(33)= 36π cm³  ← you work this out
On your TI-Nspire Calculator tricks →

Keep π exact until the end: on the CX II-T, exact arithmetic gives answers such as 36π. Press ctrl enter for a decimal approximation.

3Explore it

Change the radius and height of a cone. The cross-section shows the right-angled triangle that links r, h and the slant height l.

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

At HL, 3D problems often need the angle between two planes (for example two faces of a pyramid), and the cleanest method is to place the solid on coordinate axes and use vectors. See Planes and Intersections and angles.

The angle between a face and the base

For a pyramid whose apex is above the centre of the base, the angle between a triangular face and the base is found in the right-angled triangle formed by the height and the perpendicular from the centre to the edge of the base, not the half-diagonal.

Worked example H1Paper 2
A pyramid has a square base of side 6 cm and height 4 cm, with its apex above the centre of the base. Find the angle between a triangular face and the base.
The centre is 3 cm from the midpoint of a base edge.
Use the distance to the midpoint of the edge, not to a corner.
tanθ=43⇒θ=53.1°

The angle between two faces: use vectors

Put the base on the xy-plane with its centre at the origin. Find a normal to each face with the vector product. The angle between the normals gives the angle between the planes; for the interior angle between two faces of a convex solid, use outward normals and take 180° minus that angle.

Worked example H2Paper 1
For the pyramid in H1, find the exact cosine of the angle between two adjacent triangular faces.
Vertices (±3,±3,0), apex V(0,0,4).
Face through (3,−3,0), (3,3,0), V: (060)×(−334)=(24018), so 𝐧1=(403). By symmetry 𝐧2=(043).
cosα=925 between the outward normals
Interior angle between the faces: cosθ=−925, θ=111.1°
The faces meet at an obtuse angle, as a sketch confirms.

HL exam-style questions

Question 1Paper 2[6 marks]

A pyramid VABCD has a rectangular base with AB=8 cm and BC=6 cm. The apex V is 5 cm vertically above the centre of the base.

  • (a)Find the length of a sloping edge.[2]
  • (b)Find the angle between the face VAB and the base.[2]
  • (c)Find the angle between the face VBC and the base.[2]
(a)
half-diagonal 5A1
50=7.07 cmA1
(b)
distance from centre to AB is 3: tan−153M1
59.0°A1
(c)
tan−154M1
51.3°A1
Question 2Paper 1[6 marks]

A pyramid has a square base with vertices (±3,±3,0) and apex V(0,0,4).

  • (a)Show that (403) is normal to the face containing (3,−3,0), (3,3,0) and V.[3]
  • (b)Hence find the exact value of the cosine of the obtuse angle between two adjacent triangular faces.[3]
(a)
two vectors in the face, e.g. (060), (−334)A1
dot products with (403) are 0 and −12+12=0M1A1
(b)
other normal (043)A1
cos=925M1
obtuse angle: −925A1

4Common mistakes & exam tips

Common mistakes

  • Using the vertical height h in πrl: l is the slant height.
  • Forgetting the base (or the flat face of a hemisphere) in a total surface area.
  • Halving the wrong thing for a hemisphere: half the volume, half the curved area, plus a circle.
  • Using the side of the base instead of the base diagonal for the angle with the base.

Exam tips

  • Draw the right-angled triangle you are using for every 3D angle.
  • Units: cm³ for volume, cm² for area. Convert before calculating if units are mixed.
  • Keep answers in terms of π when the question says "exact".

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find the distance between (0,0,0) and (2,3,6).
4+9+36=7
FluencyP2
Find the midpoint of (−1,4,2) and (5,0,−6).
(2,2,−2)
FluencyP3
Find the volume of a cylinder with radius 3 and height 10.
90π=283
FluencyP4
Find the surface area of a sphere of radius 5.
100π=314
Problem solvingP5
A square-based pyramid has base 8 cm and height 3 cm. Find its volume and total surface area.
Volume =13(64)(3)=64 cm³. Slant height of a face =32+42=5, so the area is 64+4×12(8)(5)=144 cm².
Problem solvingP6
For the pyramid in question 5, find the angle between a slant edge and the base.
Half the base diagonal =42. tanθ=342, so θ=27.9∘.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[5 marks]

The points A(2,−1,4) and B(6,3,k) are 9 units apart.

  • (a)Find the possible values of k.[3]
  • (b)For k>0, find the midpoint of AB.[2]
(a)
16+16+(k−4)2=81M1
(k−4)2=49A1
k=11 or k=−3A1
(b)
(4,1,152)A2
Question 2Paper 2[6 marks]

An ice cream is modelled as a cone of radius 3 cm and height 10 cm, topped with a hemisphere of radius 3 cm.

  • (a)Find the total volume.[3]
  • (b)Find the total outer surface area.[3]
(a)
Cone 30πA1
Hemisphere 18πA1
48π=151 cm³A1
(b)
l=109A1
π(3)109+2π(9)M1
155 cm²A1
Question 3Paper 2[5 marks]

A cuboid ABCDEFGH has AB=8 cm, BC=6 cm and height CG=5 cm. ABCD is the base.

  • (a)Find the length AG.[2]
  • (b)Find the angle between AG and the base ABCD.[3]
(a)
82+62+52M1
11.2 cmA1
(b)
AC=10A1
tanθ=510M1
26.6∘A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2025 · TZ1 · Paper 2Q1Find sector area and radius of cone formed from the sector★☆☆
May 2024 · TZ1 · Paper 2Q2Angle of elevation to a cone vertex★☆☆
SL · May 2025 · TZ3 · Paper 2Q1Radius from 3D coordinates, then total surface area of hemisphere★☆☆
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake