Distinguishing a face diagonal from a cuboid’s space diagonal
A face diagonal crosses one rectangle of a box, while the space diagonal runs corner to corner through the inside. This guide builds the second from the first with two right triangles.
Two diagonals, two different pairs of corners
A cuboid has eight corners, and the segment between two of them can take three forms: an edge, a face diagonal or a space diagonal. A face diagonal joins opposite corners of one rectangular face, so it uses only two of the three dimensions. The space diagonal joins corners that differ in all three directions and cuts through the inside of the box. Asking for the diagonal of a box without saying which corners are meant leaves the question open. Before you pick an output, decide which two points you are connecting, because the answers differ and the longer one is always the space diagonal.
Stage one: the face diagonal of the 3 by 4 face
Take a box with edges 3, 4 and 12. The face spanned by the 3 and the 4 is a rectangle, and its diagonal is the hypotenuse of a right triangle with legs 3 and 4. The Right Triangle Calculator returns c equal to 5, which is the hypotenuse computed as the square root of 9 plus 16. This diagonal lies entirely on one face and never enters the interior. It is the control for the first stage of the construction. Notice that nothing in this step involves the edge of 12, since that edge is perpendicular to the face and contributes nothing to a segment that stays on it.
Stage two: the face diagonal becomes a leg
Now stand the face diagonal upright in a vertical plane that also contains the edge of 12. That diagonal and the 12 edge are perpendicular, because the 12 edge is perpendicular to the whole 3 by 4 face. They form a second right triangle with legs 5 and 12, and the hypotenuse is the space diagonal. The Right Triangle Calculator with a equal to 5 and b equal to 12 returns 13. The Cuboid Calculator gives the same 13 for edges 3, 4 and 12, using its direct form, the square root of 9 plus 16 plus 144, which is the square root of 169.
The numbers the cuboid tool reports
For edges 3, 4 and 12 the Cuboid Calculator reports a diagonal of 13, a volume of 144 and a surface area of 192. The volume is 3 times 4 times 12. The surface area is twice the sum of the three face areas, which are 12, 36 and 48, so 2 times 96 gives 192. Only the diagonal comes from the two-stage triangle argument, but all three outputs describe the same box, and it is useful to see that the space diagonal, 13, is shorter than the sum of the edges, 19, and longer than any single face diagonal. The faces have diagonals 5, about 12.369 and about 12.649, all less than 13.
The pairing does not matter
Any order of the edges gives the same space diagonal, because the squares are simply added. Pair 3 with 12 first and the face diagonal is the square root of 153, about 12.369. Combine that with the edge of 4 and the result is the square root of 153 plus 16, which is the square root of 169, so 13 again. Only the intermediate face diagonal changes. This is why the space diagonal is a property of the box, while a face diagonal depends on the face you picked. A quick check for any box is that the squared space diagonal equals the sum of the three squared edges.
Another box with whole-number results
Edges 2, 3 and 6 are another set whose space diagonal is a whole number. The squares sum to 4 plus 9 plus 36, which is 49, so the diagonal is 7. The volume is 36 and the surface area is 2 times (6 plus 12 plus 18), or 72. A box of 1, 2 and 2 gives a diagonal of 3. These sets are handy for checking your own understanding by hand. Most boxes will not produce whole numbers, so the Cuboid Calculator is still the faster way to get the answer for edges such as 40, 30 and 20, where the diagonal is the square root of 2,900, about 53.852.
A practical use: will a long item fit
The space diagonal sets the longest straight object that can lie inside a closed box. For an illustrative storage box measuring 40 by 30 by 20 centimeters, the face diagonals are 50, 44.721 and 36.056 centimeters, and the space diagonal is 53.852. A straight rod of 52 centimeters fits only when laid corner to corner, while a 54 centimeter rod does not fit at all, however it is tilted. This ignores wall thickness, lids, padding and the thickness of the object, so a real packing decision needs margins. The geometry still gives the hard limit that no arrangement can beat.
Why the sum of squares works in three dimensions
The argument extends the familiar plane result one step. In the plane, the squared diagonal of a rectangle is the sum of the two squared sides. The space diagonal adds a third square because the vertical edge is perpendicular to the base rectangle, so the second triangle is right-angled. That is why the formula for the diagonal of a cuboid is the square root of a squared plus b squared plus c squared. The Cuboid Calculator computes it as the hypotenuse of all three edges at once. A cube with edge 1 therefore has a space diagonal of the square root of 3, about 1.732, and a cube with edge 10 has one of about 17.321, which is the edge times the same factor. Doubling every edge doubles the diagonal and multiplies volume by eight.
Choosing the output that matches the question
If you are laying a cable, a brace or a measuring tape across one face, use the face diagonal from the Right Triangle Calculator. If the line travels through the interior from one corner to the opposite corner, use the space diagonal from the Cuboid Calculator. If the box edges are given in different units, convert them to one unit first, since the formula adds squares of lengths. The result is a length in the same unit as the edges, while volume is in cubic units and surface area in square units. These are ideal geometric values for a perfect box with square corners, and they do not describe a real container's tolerances.
Reproduce the checks
Full cuboid
Open the Cuboid Calculator and enter:
- Side a
3- Side b
4- Side c
12
Expected output:
diagonal
13volume
144surface
192The space diagonal crosses all three dimensions.
Face control
Open the Right Triangle Calculator and enter:
- Side a
3- Side b
4
Expected output:
c
5This diagonal stays on one face.
Space-diagonal control
Open the Right Triangle Calculator and enter:
- Side a
5- Side b
12
Expected output:
c
13The face diagonal becomes a leg of the second triangle.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- MathWorld ↗ · 2026-10-08
- MathWorld ↗ · 2026-10-08