How to work out how many items fit in a box
How to use it
- Under Box, inside size, enter the space inside the box, then the size of one item.
- Choose which ways an item may turn, and add a clearance or a weight limit if you need one.
- Read how many fit and whether that is proven to be the maximum. Switch between the 3D, top and side views, or inspect one layer at a time.
Formulas
- Items along an edge
(L − c) ÷ (l + c)Rounded down, for box edge L, item edge l and clearance c, left between items and at both walls.- Layers
H ÷ (h + c)Rounded down. The clearance sits above each layer, including the top one.- Plain grid
along the length × across the width × layersWith every item turned the same way.- Upper bound
usable volume ÷ item volume with clearanceRounded down, or tighter when every allowed turn has the same height. No arrangement can exceed it.- Space used
items × l × w × h ÷ (L × W × H)- Weight limit
weight limit ÷ weight of one itemRounded down. The box holds the smaller of this and the number that fits by size.
Worked examples
A 60 × 40 × 40 cm carton filled with 20 × 15 × 10 cm product boxes kept upright.
- As entered⌊60 ÷ 20⌋ × ⌊40 ÷ 15⌋ × ⌊40 ÷ 10⌋ = 3 × 2 × 424 boxes
- Turned a quarter⌊60 ÷ 15⌋ × ⌊40 ÷ 20⌋ × ⌊40 ÷ 10⌋ = 4 × 2 × 432 boxes
- Upper bound96,000 ÷ 3,00032 boxes
32 boxes, turned a quarter. They reach the upper bound, so 32 is the proven maximum and the carton is 100% full.
Other cases
- With 0.5 cm clearance all round, 15 fit: 5 per layer in a mix of both turns, 3 layers high. No arrangement could hold more than 22.
- At 0.8 kg each with a 20 kg limit, the weight allows ⌊20 ÷ 0.8⌋ = 25 boxes, fewer than the 32 that fit.
A 24 × 18 × 18 in box with 6 × 4 × 3 in items kept upright.
- Turned a quarter⌊24 ÷ 4⌋ × ⌊18 ÷ 6⌋ × ⌊18 ÷ 3⌋ = 6 × 3 × 6108 items
- Upper bound7,776 ÷ 72108 items
108 items, the proven maximum.
Assumptions and limits
- Every item is a rigid rectangular box of exactly the size entered. Real cartons bulge, and soft or irregular items pack differently.
- Arrangements are built from layers, sections or rows of one or two turns. Some sizes pack better in patterns this does not try, which is why an unproven result shows its upper bound.
- Clearance is kept on every side of every item. Packing material, dividers and wall thickness are not added, so measure the inside of the box.
- A fit on paper does not mean the box is safe to carry or ship. Check that the bottom layers can bear the weight above them and that the box is rated for the total weight.
How the best arrangement is found
The calculator tries each allowed turn in a plain grid, then mixes of two turns in each layer, and layers, sections or rows of different heights, and keeps the arrangement that holds the most.
Every result is checked against the upper bound: the most items that could fit if every bit of usable space were filled. When the arrangement reaches it, the answer is proven to be the maximum. When it falls short, the calculator says so, because a cleverer arrangement might still hold a few more.