Geometry

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

  1. Diagonal of the base

    32+42=25\sqrt{3^2 + 4^2} = \sqrt{25}

    Use Pythagoras on the bottom face first: length² + width² = 25.

  2. Use Pythagoras again with the height

    d=25+122=169=13d = \sqrt{25 + 12^2} = \sqrt{169} = 13

    The space diagonal, the base diagonal and the height form a right-angled triangle. d = √(3² + 4² + 12²) = 13.

    Result:d = 13
  3. Angle between the diagonal and the base

    tan⁡θ=1225⇒θ=67.3801°\tan\theta = \frac{12}{\sqrt{25}} \Rightarrow \theta = 67.3801°

    Opposite = height (12), adjacent = base diagonal (5). θ = 67.3801°.

3D Pythagoras

d=a2+b2+c2d = \sqrt{a^2 + b^2 + c^2}
a,b,ca, b, cLength, width and height of the cuboid
ddThe space diagonal (longest straight line inside)

Example substitution

d=32+42+122=169=13d = \sqrt{3^2 + 4^2 + 12^2} = \sqrt{169} = 13

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

  1. 1
    Square and add: 4 + 9 + 36 = 49
  2. 2
    Square root: √49 = 7
Answer: 7 cm

A cuboid has diagonal 13 cm and edges 3 cm and 4 cm. Find the third edge

  1. 1
    Rearrange: c² = 13² − 3² − 4² = 144
  2. 2
    Square root: c = 12
Answer: 12 cm

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.

Related calculators