On this page
Volume is just base times height
A rectangular prism — a box — has volume V = lwh. The reasoning is worth stating because it generalises well beyond boxes: the base is a rectangle of area lw, and that same rectangle continues unchanged all the way up through the height. Volume is base area times height.
Any solid whose cross-section stays constant follows the same rule, whatever the shape of that cross-section. A triangular prism, a hexagonal nut and a length of extruded aluminium channel are all handled by finding the area of the end face and multiplying by the length. The box is simply the case where the end face is a rectangle, which is why it is the one everybody meets first.
The space diagonal, and the pole-in-a-box problem
The space diagonal runs from one corner of the box to the corner diagonally opposite, passing through the interior. Its length is √(l² + w² + h²) — the Pythagorean theorem extended to three dimensions, and the reason this page reports it alongside the volume.
It comes from applying the familiar two-dimensional version twice. The diagonal across the base is √(l² + w²); treat that as one leg of a right triangle with the height as the other, and the hypotenuse is √(l² + w² + h²). Our 3D Pythagorean theorem calculator works the same relationship in the other direction.
The practical use is deciding whether something long will fit. A rigid pole, a curtain rail or a length of pipe goes into a box only if it is no longer than the space diagonal, and only if it can be angled corner to corner. For the worked example on this page — 8 by 5 by 12 — the diagonal is about 15.26, so a 15-unit rod fits diagonally though it is longer than any single edge.
Surface area: six faces in three pairs
A box has six rectangular faces that come in three matching pairs: two of l×w, two of l×h and two of w×h. Adding them gives A = 2(lw + lh + wh).
The split matters when only part of the surface is in play. Painting a room means the four walls and the ceiling but not the floor. Wrapping a parcel needs all six. A box with an open top needs five. The lateral area this calculator reports — 2h(l + w) — is the four upright sides alone, which is the figure you want for a label wrapping round a carton or for the sides of an open crate.
Shipping, packing and dimensional weight
Carriers charge by whichever is greater, actual weight or volumetric weight, because a van fills up before it reaches its weight limit. Volumetric weight is the box's volume divided by a published divisor — commonly 5,000 for centimetre measurements, giving kilograms. A 60×40×40 cm carton comes to 96,000 cm³, so 19.2 kg volumetric, and a consignment of pillows will be billed on that rather than its real weight.
This is why reducing a carton's dimensions pays more than it first appears. Trimming every side by a tenth cuts the volume by about 27%, since volume responds to the cube of the linear change. It is also why void fill is expensive: the air inside an oversized box is charged at the same rate as the goods.