Rectangular Prism Space Diagonal

Also known as space diagonal of a box · will it fit diagonally

d=l2+w2+h2d = \sqrt{l^2 + w^2 + h^2}
sig figs

Worked example: 2 m cube → space diagonal 2 sqrt(3) m. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Change any unit and the answer follows.

See also

Rectangular Prism Surface Area: Both use cuboid length and cuboid width.Rectangular Prism Volume: Both use cuboid length and cuboid width.
Learning zone

Rectangular Prism Space Diagonal explained

dlhw

Two applications of Pythagoras give the space diagonal of a box. First across the floor, l2+w2\sqrt{l^2 + w^2}, then up to the far top corner, which folds into the tidy d=l2+w2+h2d = \sqrt{l^2 + w^2 + h^2}. The pattern continues into any number of dimensions, which is why this is really the Euclidean distance formula wearing a cardboard costume.

Movers and shippers use it constantly. A carton 12 in × 12 in × 30 in will take a rod up to 144+144+900=34.4\sqrt{144 + 144 + 900} = 34.4 in long, and airlines quoting a "linear inches" limit are measuring something different again, so do not confuse the two. Note the one real trap: the diagonal is not the sum of the edges and it is not the sum of the face diagonals. It is always shorter than you would guess by adding.

There are integer cases, called Pythagorean quadruples: 1-2-2 gives 3, and 3-4-12 gives exactly 13. They are handy for checking your arithmetic, and rarer than the familiar 3-4-5 triples of the plane.

Rectangular Prism Space Diagonal formula

d=l2+w2+h2d = \sqrt{l^2 + w^2 + h^2}
Where
  • dd= Space diagonal (m)
  • ll= Length (m)
  • ww= Width (m)
  • hh= Height (m)
Revised 16 October 2026
Cite this page

formula.expert. (2026, October 16). Rectangular Prism Space Diagonal Formula & Calculator. https://formula.expert/solvers/rectangular-prism-diagonal