Home / IGCSE Mathematics 0580 / Pythagoras’ theorem and trigonometry in 3D
Cambridge IGCSE Mathematics 0580 · Trigonometry

Pythagoras' theorem and trigonometry in 3D

Lengths and angles inside solids: the diagonal of a cuboid, the angle between a line and a plane, and problems with pyramids, cones and prisms. The method is always the same: find a flat triangle inside the solid, draw it on its own, and use Pythagoras, SOH CAH TOA or the sine and cosine rules.

E6.6Extended onlyFree lesson
What the syllabus says

E6.6 (Extended)

  • Carry out calculations and solve problems in three dimensions using Pythagoras’ theorem and trigonometry, including calculating the angle between a line and a plane.

Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.

Finding a flat triangle inside a solid Extended

Every 3D question is solved in 2D. The skill is spotting a triangle that lies in one flat plane inside the solid, and that contains the length or angle you want.

A good routine:

  1. Mark on the diagram the line or angle you are asked for.
  2. Look for a triangle that contains it. Prefer a right-angled triangle: vertical edges meet horizontal lines at right angles, and so do the edges at each corner of a cuboid.
  3. If you do not know enough sides of that triangle, find one first from another triangle, often one lying flat in the base.
  4. Draw the triangle again on its own, flat, with the right angle marked and the lengths you know written on. Perspective drawings distort angles: a right angle on a 3D sketch rarely looks like one.
  5. Use Pythagoras or trigonometry on the flat triangle.

Keep full calculator values between steps. In 3D problems you often use one answer to get the next, and rounding early makes the final answer wrong.

The diagonal of a cuboid Extended

In the cuboid ABCDEFGH below, G is vertically above C. The space diagonal AG goes through the inside of the cuboid from one corner to the opposite corner.

It takes Pythagoras twice:

  • in the base, triangle ABC has a right angle at B, so AC2=AB2+BC2;
  • then triangle ACG has a right angle at C, because the edge CG is vertical and AC is horizontal, so AG2=AC2+CG2.

Putting the two together gives a formula for any cuboid with length l, width w and height h:

d2=l2+w2+h2

You do not need to find AC itself first unless the question asks for it: AG=62+42+2.52 in one line. The space diagonal is the longest straight rod that fits inside the box.

θABCDEFGH6 cm4 cm2.5 cmNOT TO SCALE

Worked example 1 Extended

The cuboid in the diagram has AB=6 cm, BC=4 cm and CG=2.5 cm. Calculate (a) the length of the base diagonal AC and (b) the length of the space diagonal AG.

  1. (a) Triangle ABC is right-angled at B: AC2=62+42=52.

  2. AC=52=7.2111=7.21 cm.

  3. (b) Triangle ACG is right-angled at C: AG2=AC2+CG2=52+6.25=58.25.

  4. AG=58.25=7.6322=7.63 cm.

  5. Check with the formula: 62+42+2.52=58.25. The same.

Answer: (a) 7.21 cm (b) 7.63 cm

The angle between a line and a plane Extended

A line that meets a flat surface (a plane) at a slant makes an angle with it. To find that angle:

  1. From the top end of the line, drop a perpendicular onto the plane. Where it lands is the foot of the perpendicular.
  2. Join the point where the line meets the plane to the foot. This is the projection of the line on the plane: its shadow if the light were directly overhead.
  3. The angle between the line and the plane is the angle between the line and its projection.

So the angle is always inside a right-angled triangle: the line is the hypotenuse, the projection lies in the plane, and the perpendicular is the third side.

For the space diagonal AG and the base ABCD: G is directly above C, so the foot of the perpendicular from G is C, and the projection of AG on the base is AC. The angle between AG and the base is angle GAC, labelled θ in the diagrams.

Name the angle with three letters, the middle letter being where the line meets the plane. A common mistake is to use an angle between the line and some other line in the plane, such as angle GAB; that is not the angle with the plane, because AB is not the projection of AG.

θACG√52 cm2.5 cmNOT TO SCALE

Worked example 2 Extended

For the same cuboid (AB=6 cm, BC=4 cm, CG=2.5 cm), calculate the angle between the diagonal AG and the base ABCD.

  1. The projection of AG on the base is AC, so the angle is GAC, in triangle ACG with the right angle at C.

  2. Opposite =CG=2.5; adjacent =AC=52.

  3. tanθ=2.552=0.3467

  4. θ=19.12°=19.1°.

Answer: 19.1°

Check yourself Extended

A cuboid measures 5 cm by 4 cm by 3 cm. Calculate the length of its space diagonal, correct to 3 significant figures.

Answer it in the portal, where your answer is checked as you type →

Pyramids and cones Extended

In a right pyramid the vertex V is directly above the centre M of the base. In a cone the vertex is directly above the centre of the circular base. So VM, the vertical height, is perpendicular to every line in the base through M, and you get right-angled triangles such as VMA for free.

For a pyramid on a square or rectangular base:

  • M is where the diagonals cross, so AM is half the diagonal AC;
  • triangle VMA has the right angle at M, linking the height VM, the half diagonal AM and the sloping edge VA;
  • the angle between the edge VA and the base is angle VAM, because M is the foot of the perpendicular from V;
  • the distance from M to the middle of a side, N, is half the length of the other side, and angle VNM is the angle between the line VN (up the middle of a face) and the base.

For a cone with radius r, vertical height h and slant height l, the triangle is r, h, l with the right angle at the centre: l2=r2+h2, and the angle between the slant edge and the base has cos=rl.

αABCDMV8 cm8 cm11 cmNOT TO SCALE

Worked example 3 Extended

The pyramid VABCD has a square base of side 8 cm and a vertical height VM=11 cm. Calculate (a) the length of the edge VA and (b) the angle between VA and the base.

  1. (a) Base diagonal: AC=82+82=128, so AM=12128=5.6569 cm.

  2. Triangle VMA is right-angled at M: VA2=AM2+VM2=32+121=153.

  3. VA=153=12.3693=12.4 cm.

  4. (b) The angle between VA and the base is angle VAM: tanα=VMAM=115.6569.

  5. α=62.79°=62.8°.

Answer: (a) 12.4 cm (b) 62.8°

Check yourself Extended

A cone has a base radius of 3 cm and a slant height of 8 cm. Calculate the angle between the slant edge and the base, correct to 1 decimal place.

Answer it in the portal, where your answer is checked as you type →

Triangles that are not right-angled Extended

Sometimes the triangle you need inside a solid has no right angle: for example the triangle formed by three face diagonals of a cuboid. Then:

  1. Find each of its sides with Pythagoras, using the faces they lie on.
  2. Use the cosine rule (three sides, want an angle) or the sine rule, as in any other triangle.
  3. The area of the triangle comes from 12absinC.

The planning is the same: draw the triangle flat with its three sides written on before you start.

θABCDEFGH5 cm4 cm3 cmNOT TO SCALE

Worked example 4 Extended

A cuboid has AB=5 cm, BC=4 cm and BF=3 cm, as in the diagram. Calculate angle CAF.

  1. AC lies in the base: AC2=52+42=41.

  2. AF lies in the front face: AF2=52+32=34.

  3. CF lies in the side face: CF2=42+32=25, so CF=5.

  4. Triangle ACF has no right angle, so use the cosine rule for the angle at A, opposite CF:

  5. cosθ=AC2+AF2−CF22×AC×AF=41+34−2524134=5074.6726=0.6696

  6. θ=47.96°=48.0°.

Answer: 48.0°

Worked example 5 Extended

A vertical flagpole PT stands at one corner P of a horizontal rectangular courtyard PQRS, with PQ=24 m and QR=18 m. The angle of elevation of the top T from R is 28°. Calculate the height of the flagpole, and the angle of elevation of T from Q.

  1. R is the corner diagonally opposite P. In the courtyard, PR2=242+182=900, so PR=30 m.

  2. Triangle TPR is vertical, with the right angle at P. The angle of elevation from R is angle TRP=28°.

  3. PT=30tan28°=15.9513, so the height is 16.0 m.

  4. From Q: triangle TPQ is right-angled at P with PQ=24, so tan(angle TQP)=15.951324=0.6646.

  5. Angle of elevation =33.61°=33.6°. It is larger than from R, because Q is nearer the pole.

Answer: Height 16.0 m; angle 33.6°

Check yourself Extended

Without a calculator, find the exact length of the space diagonal of a cube with edges of 2 cm.

Answer it in the portal, where your answer is checked as you type →

Key points

  • Solve every 3D problem in a flat triangle: find it, draw it on its own, then use Pythagoras or trigonometry.

  • Space diagonal of a cuboid: d2=l2+w2+h2.

  • The angle between a line and a plane is the angle between the line and its projection on the plane (from the foot of the perpendicular).

  • In a right pyramid or cone the vertex is above the centre of the base; AM is half the base diagonal.

  • A vertical line is at right angles to every horizontal line through its foot.

  • If the triangle has no right angle, find its sides first and use the cosine or sine rule.

  • Keep full accuracy between steps; give lengths to 3 s.f. and angles to 1 d.p.

Where marks are lost

  • Taking the angle between a line and a plane with the wrong line in the plane, such as angle GAB instead of angle GAC.

  • Using the whole base diagonal instead of half of it for a pyramid whose vertex is above the centre.

  • Assuming an angle is 90° because it looks square on the 3D drawing, or missing a right angle because it does not.

  • Using the slant height of a cone as the vertical height in the volume formula.

  • Rounding an intermediate length (for example AC=7.2) and then getting the final angle wrong in the first decimal place.

  • Using sine or cosine where tangent is needed: label the flat triangle opposite, adjacent and hypotenuse before choosing.

Related IGCSE Mathematics 0580 lessons

All IGCSE Mathematics 0580 lessons →

An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.