Find how many items fit in a carton or on a shelf. Enter product and box or shelf sizes to get the best orientation, layout, shelf facings and unused space.
Enter the item's length, width and height and the inside size of the carton, or the width, depth and clear height of the shelf. The tool tests every way the item can be turned: 6 orientations, or only the 2 upright ones when you tick keep this side up. For each orientation it counts how many whole units fit along each side (the side length divided by the item length, rounded down) and multiplies rows by columns by layers. It keeps the best of these as the uniform layout.
It then tries a mixed layout: the space is cut once along the length, width or height into two blocks, and each block is filled with its own best orientation. This is the standard guillotine improvement used in pallet and carton planning, and it often fits a few more units when one orientation leaves a strip of wasted space. The result shows the item count, rows x columns x layers, unused space, total weight against your limit and a top view of the bottom layer. In shelf mode it also gives facings across the front, units deep behind each facing and stack height.
Turning an item on its side can fit more units, but some products cannot travel or sit that way: liquids, glass, cakes, and retail packs whose label must face the shopper. Tick keep this side up and the item only turns around its vertical axis. On a shelf, the gap per item adds clearance between neighbouring units across the front and front to back, so staff and shoppers can pick a unit without dragging the next one.
The count assumes rigid items with exact sizes packed edge to edge. Real cartons lose space to dunnage (bubble wrap, air pillows, dividers), inner packs and flaps, and corrugated walls of roughly 3 to 7 mm per side if you entered outer dimensions. Soft goods and pouches bulge, so a stack can grow taller than units x height. Measure the item at its widest point, use the carton's inner size and keep a few millimetres of tolerance.
An item of 17.1 x 10.6 x 7 cm weighing 0.4 kg, in a carton with an inner size of 60 x 40 x 40 cm, all orientations allowed. The best single orientation stands the item with its 17.1 cm side along the carton width: 2 rows x 5 columns x 5 layers = 50 units. The mixed layout does better: a front strip of 1 row x 5 columns x 2 layers with the item standing on end (10 units), plus 3 rows x 8 columns x 2 layers behind it (48 units), for 58 units. That uses about 77% of the carton, leaving around 23% unused, and weighs 23.2 kg, inside a 25 kg limit. On a shelf 120 cm wide, 45 cm deep and 30 cm clear, a 41.5 x 10 x 24 cm upright item gives 12 facings, 1 deep and 1 high; adding a 5 mm gap per item drops it to 11 facings.
Next, check the shipping side: use the box size calculator to size a box for a set quantity, the volumetric weight calculator to see the chargeable weight of the packed carton, and the shipping cost calculator to compare courier rates. For shelf and stock planning, the inventory days calculator and the reorder point calculator tell you how many units the shelf and the stockroom need to hold.
Divide each carton inner dimension by the matching item dimension, round each result down to a whole number and multiply the three. Repeat for every way the item can be turned (up to 6) and keep the highest count. This calculator does that for you and also tests mixed layouts where part of the carton uses a different orientation.
Always use the inner dimensions. Corrugated walls are usually 3 to 7 mm thick per side, so a carton sold as 60 x 40 x 40 cm outside can be about 1 cm smaller inside on each axis, which is often enough to lose a whole row of units.
A master pack (or case pack) is the fixed number of units a supplier ships in one outer carton, for example 24 or 48 per case. Use Carton mode to find a case quantity that fills the carton well and stays under the weight limit, then set it as the pack size on purchase orders so receiving and reordering happen in whole cartons.
Facings are the units visible across the front of the shelf. In Shelf mode, enter the shelf width, depth and clear height to the shelf above, tick keep this side up so labels face the shopper, and add a small gap per item for easy picking. The result gives facings across the front, units deep behind each facing and how high you can stack, which together give the shelf capacity for that SKU.
The calculator assumes rigid, exactly measured items packed edge to edge. In practice dunnage such as bubble wrap or dividers, inner packs, flaps, bulging soft goods and measuring error all take space. Measure the largest point of the item, round up and leave a few millimetres of tolerance.
With it ticked, the item is only turned around its vertical axis, so its height always stays vertical. This matters for liquids, fragile goods and retail packs that must face the shopper, and it usually lowers the count compared with allowing all 6 orientations.
Commmerce tracks inventory across your stores and warehouses, so you know what each shelf and stockroom holds.
See Inventory Management