CCalclabhub

Geometry

Space diagonal of a rectangular prism

Square each of the three perpendicular edges, add the squares and take the square root. This is Pythagoras' theorem applied twice, once across the base and once from the base diagonal up to the opposite corner.

Last updated

The Formula

d = sqrt(l^2 + w^2 + h^2)

Square each of the three perpendicular edges, add the squares and take the square root. This is Pythagoras' theorem applied twice, once across the base and once from the base diagonal up to the opposite corner.

SymbolMeaning
lLength
wWidth
hHeight

What Each Symbol Means

llength

Length

One horizontal edge of the prism, measured along the base.

wlength

Width

The other horizontal edge of the prism, at right angles to the length.

hlength

Height

The vertical edge, perpendicular to both length and width.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate the diagonal of a rectangular prism page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate The Diagonal Of A Rectangular Prism, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Space diagonal of a rectangular prism?

The formula for Space diagonal of a rectangular prism is d = sqrt(l^2 + w^2 + h^2). Square each of the three perpendicular edges, add the squares and take the square root. This is Pythagoras' theorem applied twice, once across the base and once from the base diagonal up to the opposite corner.

What units should I use with Space diagonal of a rectangular prism?

Substitute l in length, w in length, h in length. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Space diagonal of a rectangular prism?

Adding the edges instead of their squares. Pythagoras' theorem adds squared lengths, not the raw edges. Adding 3, 4 and 12 gives 19, which is not a diagonal of anything. Always square each edge first, then add, then take the square root.