3D Pythagoras Calculator
Find the longest diagonal of a cuboid using Pythagoras in three dimensions, the angle it makes with the base, or a missing edge when you know the diagonal. Step-by-step working uses Pythagoras twice, exactly as in GCSE exams.
Space diagonal
Diagonal
13
Angle with the base
67.3801°
How it works
Diagonal of the base
Use Pythagoras on the bottom face first: length² + width² = 25.
Use Pythagoras again with the height
The space diagonal, the base diagonal and the height form a right-angled triangle. d = √(3² + 4² + 12²) = 13.
Result:d = 13Angle between the diagonal and the base
Opposite = height (12), adjacent = base diagonal (5). θ = 67.3801°.
3D Pythagoras
Example substitution
A 3 by 4 by 12 cuboid has a space diagonal of 13.
Worked examples
Find the diagonal of a 2 cm × 3 cm × 6 cm cuboid
- 1Square and add: 4 + 9 + 36 = 49
- 2Square root: √49 = 7
A cuboid has diagonal 13 cm and edges 3 cm and 4 cm. Find the third edge
- 1Rearrange: c² = 13² − 3² − 4² = 144
- 2Square root: c = 12
Frequently asked questions
What is 3D Pythagoras?+
Pythagoras’ theorem extended to three dimensions. The longest diagonal of a cuboid is d = √(a² + b² + c²), where a, b and c are the length, width and height.
How do you find the diagonal of a cuboid?+
Use Pythagoras twice: first find the diagonal of the base, then use it with the height. For a 3 × 4 × 12 cuboid: base diagonal = 5, space diagonal = √(5² + 12²) = 13.
How do you find the angle between the diagonal and the base?+
Use the right-angled triangle made by the height, the base diagonal and the space diagonal: tan θ = height ÷ base diagonal.
Does 3D Pythagoras work for other shapes?+
Yes — any right-angled triangle inside a 3D shape, such as the slant height of a pyramid or cone, can be solved with Pythagoras.