Box Packing Calculator

Find how many identical items fit in a box or carton, in which orientation, with clearance, weight limits and a to-scale 3D packing view.

3D packing view
60 cm40 cm40 cm
Packed itemBox

Drag the round handle to turn the box. Tap a layer to inspect it, or tap the empty drawing to show every layer.

Drag the round handle to turn the box. Tap a layer to inspect it, or tap the empty drawing to show every layer.

View
Length units
Weight units
Box, inside size
Each item
Arrangement
Turning allowed
Weight limit (optional)
Items packed32 items
Space used100%
Volume used96 L
Volume left0 L
Arrangement
4 along × 2 across × 4 high
Items per layer
8 items
Layers
4
Volume of one item
3 L
Inside volume of the box
96 L

Proven maximum: the items fill all the room they can use, so no other arrangement holds more.

A geometric fit. Leave room for packing material, bulging cartons and how the box will be handled.

How to work out how many items fit in a box

How to use it

  1. Under Box, inside size, enter the space inside the box, then the size of one item.
  2. Choose which ways an item may turn, and add a clearance or a weight limit if you need one.
  3. 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.

  1. As entered⌊60 ÷ 20⌋ × ⌊40 ÷ 15⌋ × ⌊40 ÷ 10⌋ = 3 × 2 × 424 boxes
  2. Turned a quarter⌊60 ÷ 15⌋ × ⌊40 ÷ 20⌋ × ⌊40 ÷ 10⌋ = 4 × 2 × 432 boxes
  3. 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.

  1. Turned a quarter⌊24 ÷ 4⌋ × ⌊18 ÷ 6⌋ × ⌊18 ÷ 3⌋ = 6 × 3 × 6108 items
  2. 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.