What Is the Diagonal of a Cuboid?
The diagonal of a cuboid is a straight line segment that joins two opposite vertices (corners) and passes through the interior of the solid. Because it stretches across all three dimensions at once, it is the longest straight segment the cuboid contains. Its length depends only on the length $l$, the breadth $b$, and the height $h$ of the cuboid, through the formula $d = \sqrt{l^2 + b^2 + h^2}$.
A cuboid is a box-shaped solid with six rectangular faces, twelve edges, and eight vertices. Everyday cuboids are all around you: a brick, a matchbox, a room, a shipping container.
What Are the Two Types of Diagonals in a Cuboid?
Not every diagonal in a cuboid is the same. Students meet the word "diagonal" and picture a single line, but a cuboid holds two distinct kinds, and telling them apart is the first real step.
Face diagonal. A face diagonal joins two opposite corners of the same rectangular face. It lies flat on that face and uses only two of the three dimensions. Each of the six faces has two, so a cuboid has 12 face diagonals. For a face measuring $l \times b$, the face diagonal is $\sqrt{l^2 + b^2}$, exactly like the diagonal of a rectangle.
Body diagonal (space diagonal). A body diagonal joins two corners that do not share any face, so it drives straight through the interior. A cuboid has 4 body diagonals, and all four are equal in length. This is the one people mean by "the diagonal of a cuboid."
Why does the body diagonal matter more? Because it is the longest line the box can hold. The face diagonal only knows about a flat rectangle; the body diagonal knows about the whole three-dimensional space, which is why the courier problem in the opening depends on it.
How Do You Derive the Diagonal of a Cuboid Formula?
The formula is not something to memorise cold. It comes from applying the Pythagorean theorem twice. The Pythagorean theorem says that in a right-angled triangle, the square of the longest side (the hypotenuse) equals the sum of the squares of the other two sides.
Step 1 - find the face diagonal of the base.
Take the base rectangle with sides $l$ and $b$. Its diagonal $f$ is the hypotenuse of a right triangle with legs $l$ and $b$.
$$f^2 = l^2 + b^2$$
Step 2 - stand the height up on that diagonal.
The body diagonal $d$ is the hypotenuse of a second right triangle. Its two legs are the base diagonal $f$ (lying on the floor) and the vertical height $h$. These meet at a right angle because $h$ rises straight up from the base.
$$d^2 = f^2 + h^2$$
Step 3 - substitute and finish.
Replace $f^2$ with $l^2 + b^2$:
$$d^2 = l^2 + b^2 + h^2$$
$$d = \sqrt{l^2 + b^2 + h^2}$$
Here is the variable key so every symbol is accounted for.
Symbol | Meaning | Units |
|---|---|---|
$d$ | Length of the body diagonal | cm, m (length units) |
$l$ | Length of the cuboid | cm, m |
$b$ | Breadth (width) of the cuboid | cm, m |
$h$ | Height of the cuboid | cm, m |
For a cube, where $l = b = h = a$, the same formula collapses neatly to $d = \sqrt{3a^2} = a\sqrt{3}$, and the face diagonal becomes $a\sqrt{2}$. The link between the flat case and the solid case is the same reason the diagonal of a square is $a\sqrt{2}$: add one more squared dimension each time you step up.
Examples of the Diagonal of a Cuboid
The set below moves from a clean whole-number answer to a real packing decision. The problem statement is bold; the working is not.
Example 1
Find the body diagonal of a cuboid measuring 3 cm by 4 cm by 12 cm.
$$d = \sqrt{3^2 + 4^2 + 12^2}$$
$$d = \sqrt{9 + 16 + 144} = \sqrt{169}$$
Final answer: $d = 13$ cm.
Example 2
A student is asked for the body diagonal of a 6 cm by 8 cm by 10 cm cuboid and answers 10 cm. Check the reasoning.
The tempting move is to treat the longest edge, 10 cm, as the diagonal. Take a second. The diagonal has to be longer than every edge, because it spans all three directions, not just one. So 10 cm cannot be right; it is only the height.
Now do it correctly:
$$d = \sqrt{6^2 + 8^2 + 10^2}$$
$$d = \sqrt{36 + 64 + 100} = \sqrt{200}$$
Final answer: $d = 10\sqrt{2} \approx 14.14$ cm, comfortably longer than the 10 cm edge, as it must be.
Example 3
A cube has an edge of 5 cm. Find its body diagonal.
$$d = a\sqrt{3} = 5\sqrt{3}$$
Final answer: $d = 5\sqrt{3} \approx 8.66$ cm.
Example 4
A cuboid has l = 2 m, b = 3 m, and body diagonal 7 m. Find its height.
Start from the formula and solve for $h$:
$$7^2 = 2^2 + 3^2 + h^2$$
$$49 = 4 + 9 + h^2$$
$$h^2 = 36$$
Final answer: $h = 6$ m.
Example 5
A packing crate is 40 cm by 30 cm by 120 cm. Will a straight 130 cm curtain rod fit inside?
The longest object that fits is the body diagonal.
$$d = \sqrt{40^2 + 30^2 + 120^2}$$
$$d = \sqrt{1600 + 900 + 14400} = \sqrt{16900}$$
$$d = 130 \text{ cm}$$
Final answer: the diagonal is exactly 130 cm, so a 130 cm rod fits corner to corner, but only just, and only if laid along the diagonal.
Example 6
Find the ratio of the body diagonal to the face diagonal of the largest face for a cuboid measuring 1 by 2 by 2.
Body diagonal: $\sqrt{1 + 4 + 4} = \sqrt{9} = 3$.
Largest face is $2 \times 2$, so its face diagonal is $\sqrt{4 + 4} = \sqrt{8} = 2\sqrt{2}$.
Final answer: the ratio is $\dfrac{3}{2\sqrt{2}} = \dfrac{3\sqrt{2}}{4} \approx 1.06$. The body diagonal edges out even the largest face diagonal, every time.
Students often sail through Examples 1 to 3 and then stall on Example 4, because working backwards to a missing side means rearranging the square-root equation rather than plugging straight in. That reversal is where the formula is genuinely tested.
Why Does the Diagonal of a Cuboid Matter?
"The shortest line across three dimensions at once." That single idea is why the body diagonal shows up far outside a geometry worksheet.
Shipping and logistics. Whether a long, rigid object fits inside a box is decided by the body diagonal, not the longest edge. Freight companies size crates around it.
Architecture and construction. Diagonal bracing across a rectangular frame follows the space-diagonal length; getting it wrong leaves a structure that racks and leans.
3D graphics and games. Engines wrap objects in a cuboid "bounding box" and use its diagonal as the object's radius for fast collision and visibility checks.
The idea also generalises. The body diagonal is the three-dimensional cousin of the two-dimensional distance between two points, and the pattern (sum the squares of each dimension, take the root) is exactly the distance formula extended into space. You can read more about the flat version in the space diagonal entry, which places the cuboid case inside the wider family of diagonals across any box-shaped region.
What Are the Most Common Mistakes With the Diagonal of a Cuboid?
Mistake 1: Using only two dimensions
Where it slips in: Right after learning the face diagonal, when the body diagonal looks like "the same thing with one more step."
Don't do this: Writing $d = \sqrt{l^2 + b^2}$ and stopping. That is a face diagonal, and it ignores the height entirely.
The correct way: Always include all three: $d = \sqrt{l^2 + b^2 + h^2}$. The body diagonal is the only diagonal that touches every dimension.
Mistake 2: Adding the sides instead of their squares
Where it slips in: Under time pressure, when the square root looks like extra work.
Don't do this: Writing $d = l + b + h$ or $d = \sqrt{l + b + h}$.
The correct way: Square each side first, add the squares, then take one square root of the total. The habit that fixes this is writing the three squares out on separate lines before combining them, so the squaring never gets skipped.
Mistake 3: Forgetting to square-root the final total
Where it slips in: In multi-step problems, where $d^2$ is found and then reported as $d$.
Don't do this: Reading $d^2 = 169$ off the page and answering "169 cm."
The correct way: Take the root of the whole sum. $\sqrt{169} = 13$ cm is the diagonal; 169 is its square.
Conclusion
The diagonal of a cuboid usually means the body diagonal, the longest line inside the solid.
Its length is $d = \sqrt{l^2 + b^2 + h^2}$, using length, breadth, and height together.
The formula comes from applying the Pythagorean theorem twice: base diagonal first, then height.
A face diagonal $\sqrt{l^2 + b^2}$ uses only two dimensions; the body diagonal uses all three.
For a cube of side $a$, the body diagonal simplifies to $a\sqrt{3}$.
To build this with a teacher, explore Bhanzu's geometry tutor or a high school math tutor, and for broader support you can look at math classes online.
Where Should You Practice the Diagonal of a Cuboid Next?
Work through these three to lock the method in.
Find the body diagonal of a cuboid measuring 9 cm by 12 cm by 8 cm.
A cube has a body diagonal of $6\sqrt{3}$ cm. Find its edge length.
A box is 24 cm by 32 cm by 30 cm. Find the longest straight rod that fits inside.
Set up each with the squares on separate lines before combining. If you want a live trainer to walk through the two-triangle derivation with you, you can book a free demo class with Bhanzu.
Read More
Was this article helpful?
Your feedback helps us write better content
