What is a hollow cuboid?
A hollow cuboid is a cuboid of length a, width b and height c with a rectangular hole running through its whole length a, so that the wall around the hole has the same thickness d on all four sides. Square and rectangular tubes and box beams have this shape. The hole is b − 2d wide and c − 2d high; its two ends are open.
This calculator finds the volume, the total surface area, the surface-to-volume ratio, the inner width and height of the hole, the outer side area, the inner side area (the four faces of the hole) and the area of one end face.
How to use it
Enter the length a (along the hole), the width b, the height c and the wall thickness d. The wall thickness must be less than half of the width and less than half of the height, so that a hole is left. Every measure is solved from the values you enter. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.
Derivation of the formulas
The solid is the cuboid a × b × c with a smaller cuboid a × (b − 2d) × (c − 2d) taken out, so its volume is the difference. Multiplying out, the terms bc cancel:
$$V = a \left[ b c - (b - 2d)(c - 2d) \right] = 2 a d \, (b + c - 2d)$$The surface has three parts: the four outer faces, 2a(b + c); the four faces of the hole, 2a((b − 2d) + (c − 2d)) = 2a(b + c − 4d); and the two end faces, each a rectangular frame of area bc − (b − 2d)(c − 2d) = 2d(b + c − 2d). Added up:
$$A = 2a(b + c) + 2a(b + c - 4d) + 4d(b + c - 2d) = 4 (a + d)(b + c - 2d)$$Both the volume and the surface carry the factor b + c − 2d, so the surface-to-volume ratio is
$$\frac{A}{V} = \frac{2 (a + d)}{a d}$$These formulas were checked when the page was built against the solid built from its corner points: its volume by the divergence theorem and its surface as the sum of its face areas.
Worked example
With the default length 10, width 6, height 4 and wall thickness 0.5 the hole is 5 wide and 3 high, the volume is 90 cubic units, the surface area 378 square units and the surface-to-volume ratio 4.2 per unit; each end face is a frame of area 9.
FAQ
Which inputs are refused?
A wall thickness d equal to or greater than half of the width b or half of the height c (no hole would be left), a length that is 0 or negative, text that is not a number and values outside the range.
Is the inside of the hole counted in the surface area?
Yes. The four faces of the hole are part of the surface; the open ends of the hole are not, so each end face is a frame around the hole.
Why does the surface-to-volume ratio not depend on b and c?
Both the volume and the surface are proportional to b + c − 2d, the half perimeter of the wall's centre line, so that factor cancels and only the length a and the wall thickness d are left.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Every result is rational in the values you enter, so the page computes each one exactly (sums, differences and products of the typed decimals, and one exact division for the surface-to-volume ratio) and rounds it once to the digits shown, a value exactly halfway being rounded up. Every digit shown is therefore correct.
Accuracy and input range
Every result is rational in the values you enter, so the page computes each one exactly (sums, differences and products of the typed decimals, and one exact division for the surface-to-volume ratio) and rounds it once to the digits shown, a value exactly halfway being rounded up. Every digit shown is therefore correct.
Enter each length from 0.000001 to 1,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (polyhedra, prisms, pyramids and frusta)